[pypy-svn] r22684 - in pypy/branch/jit-refactoring/pypy: jit rpython

pedronis at codespeak.net pedronis at codespeak.net
Thu Jan 26 14:12:21 CET 2006


Author: pedronis
Date: Thu Jan 26 14:12:19 2006
New Revision: 22684

Modified:
   pypy/branch/jit-refactoring/pypy/jit/llabstractinterp.py
   pypy/branch/jit-refactoring/pypy/rpython/rgenop.py
Log:
more consistent naming: gengraphconst -> gencallableconst. rgenop API doesn't expose the notion of a graph.



Modified: pypy/branch/jit-refactoring/pypy/jit/llabstractinterp.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/llabstractinterp.py	(original)
+++ pypy/branch/jit-refactoring/pypy/jit/llabstractinterp.py	Thu Jan 26 14:12:19 2006
@@ -583,10 +583,10 @@
 
     def residual_direct_call(self, FUNCTYPE, name, target, args_a):
         T = FUNCTYPE.RESULT
-        gen_fn_const = rgenop.gengraphconst(self.newblock,
-                                            name,
-                                            target,
-                                            FUNCTYPE)
+        gen_fn_const = rgenop.gencallableconst(self.newblock,
+                                               name,
+                                               target,
+                                               FUNCTYPE)
         retvar = self.genop('direct_call', [gen_fn_const] +
                               [a.forcegenvarorconst(self) for a in args_a],
                               T)

Modified: pypy/branch/jit-refactoring/pypy/rpython/rgenop.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/rpython/rgenop.py	(original)
+++ pypy/branch/jit-refactoring/pypy/rpython/rgenop.py	Thu Jan 26 14:12:19 2006
@@ -28,7 +28,7 @@
     block.operations.append(op)
     return v
 
-def gengraphconst(block, name, target, FUNCTYPE):
+def gencallableconst(block, name, target, FUNCTYPE):
     fptr = lltype.functionptr(FUNCTYPE, name,
                               graph=buildgraph(target))
     return genconst(block, fptr)



More information about the Pypy-commit mailing list