Author: Hakan Ardo <ha...@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))
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to