[pypy-svn] r64068 - pypy/branch/pyjitpl5-simplify/pypy/jit/backend/llgraph

antocuni at codespeak.net antocuni at codespeak.net
Tue Apr 14 16:18:32 CEST 2009


Author: antocuni
Date: Tue Apr 14 16:18:32 2009
New Revision: 64068

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/backend/llgraph/runner.py
Log:
s/cpu/self


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/backend/llgraph/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/backend/llgraph/runner.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/backend/llgraph/runner.py	Tue Apr 14 16:18:32 2009
@@ -392,7 +392,7 @@
     def methdescrof(METH, methname):
         return MethDescr(METH, methname)
 
-    def do_oosend(cpu, args, descr=None):
+    def do_oosend(self, args, descr=None):
         assert isinstance(descr, MethDescr)
         selfbox = args[0]
         argboxes = args[1:]
@@ -400,15 +400,13 @@
         # XXX: return None if METH.RESULT is Void
         return x
 
-    def do_oostring(cpu, args, descr=None):
-        assert cpu.has_ootype
+    def do_oostring(self, args, descr=None):
         obj = args[0].getint() # XXX what about other types?
         base = args[1].getint()
         res = ootype.cast_to_object(ootype.oostring(obj, base))
         return history.ConstObj(res)
 
-    def do_oounicode(cpu, args, descr=None):
-        assert cpu.has_ootype
+    def do_oounicode(self, args, descr=None):
         obj = args[0].getint() # XXX what about other types?
         base = args[1].getint()
         res = ootype.cast_to_object(ootype.oounicode(obj, base))



More information about the Pypy-commit mailing list