[pypy-commit] pypy jit-usable_retrace_3: rpythonized

hakanardo noreply at buildbot.pypy.org
Fri Sep 7 07:46:29 CEST 2012


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-usable_retrace_3
Changeset: r57199:916964e12e0a
Date: 2012-09-07 07:28 +0200
http://bitbucket.org/pypy/pypy/changeset/916964e12e0a/

Log:	rpythonized

diff --git a/pypy/jit/metainterp/compile.py b/pypy/jit/metainterp/compile.py
--- a/pypy/jit/metainterp/compile.py
+++ b/pypy/jit/metainterp/compile.py
@@ -246,7 +246,8 @@
         jumpop = preamble.operations[-1]
         assert jumpop.getopnum() == rop.JUMP
         preamble.operations = preamble.operations[1:-1]
-        for a1, a2 in zip(jumpop.getarglist(), loop.operations[0].getarglist()):
+        for i in range(jumpop.numargs()):
+            a1, a2 = jumpop.getarg(i), loop.operations[0].getarg(i)
             if a1 is not a2:
                 preamble.operations.append(ResOperation(rop.SAME_AS, [a1], a2))
 


More information about the pypy-commit mailing list