[pypy-svn] r62620 - pypy/branch/pyjitpl5/pypy/module/pypyjit

fijal at codespeak.net fijal at codespeak.net
Fri Mar 6 00:41:39 CET 2009


Author: fijal
Date: Fri Mar  6 00:41:39 2009
New Revision: 62620

Modified:
   pypy/branch/pyjitpl5/pypy/module/pypyjit/portal.py
Log:
look a bit at RangeIter, not yet enough


Modified: pypy/branch/pyjitpl5/pypy/module/pypyjit/portal.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/module/pypyjit/portal.py	(original)
+++ pypy/branch/pyjitpl5/pypy/module/pypyjit/portal.py	Fri Mar  6 00:41:39 2009
@@ -31,9 +31,6 @@
         return super(PyPyJitPolicy, self).look_inside_function(func)
 
     def seebinary(self, opname):
-        def fc(o):
-            return [i[1] for i in find_calls_from(self.translator, o)]
-
         name2 = name1 = opname[:3].lower()
         if name1 in ('and', 'or'):
             name1 += '_'
@@ -78,6 +75,9 @@
 
     def fill_seen_graphs(self):
         import pypy
+        def fc(o):
+            return [i[1] for i in find_calls_from(self.translator, o)]
+
 
         # --------------------
         for binop in 'MODULO ADD SUBTRACT MULTIPLY AND OR XOR'.split():
@@ -112,7 +112,10 @@
                      pypy.objspace.std.intobject.nonzero__Int)
         self.seepath(pypy.interpreter.pyframe.PyFrame.JUMP_IF_FALSE,
                      pypy.objspace.std.intobject.nonzero__Int)
-
+        self.seepath(pypy.interpreter.pyframe.PyFrame.FOR_ITER,
+                     pypy.objspace.descroperation.DescrOperation.next,
+                     pypy.objspace.std.rangeobject.next__RangeIter)
+#                     pypy.objspace.std.rangeobject.)
         #
         #self.seepath(pypy.interpreter.pyframe.PyFrame.CALL_FUNCTION,
         #             pypy.interpreter.function.Function.funccall_valuestack)



More information about the Pypy-commit mailing list