[pypy-svn] r62010 - pypy/branch/oo-jit/pypy/jit/tl

antocuni at codespeak.net antocuni at codespeak.net
Wed Feb 18 16:16:54 CET 2009


Author: antocuni
Date: Wed Feb 18 16:16:54 2009
New Revision: 62010

Modified:
   pypy/branch/oo-jit/pypy/jit/tl/tlc.py
Log:
translation fix


Modified: pypy/branch/oo-jit/pypy/jit/tl/tlc.py
==============================================================================
--- pypy/branch/oo-jit/pypy/jit/tl/tlc.py	(original)
+++ pypy/branch/oo-jit/pypy/jit/tl/tlc.py	Wed Feb 18 16:16:54 2009
@@ -466,7 +466,10 @@
                     meth_args[num_args] = stack.pop()
                     hint(num_args, concrete=True)
                 a = meth_args[0]
+                # XXX: if you uncomment the next line,
+                # test_0tlc.test_expr fails
                 hint(a, promote_class=True)
+
                 meth_pc = hint(a.send(name), promote=True)
                 framestack.push(pc, args, stack)
                 pc = meth_pc
@@ -477,13 +480,14 @@
                 offset = char2int(code[pc])
                 pc += 1
                 num_args = char2int(code[pc])
+                pc += 1
                 call_args = [None] * num_args
                 while num_args > 0:
                     num_args -= 1
                     call_args[num_args] = stack.pop()
                     hint(num_args, concrete=True)
                 framestack.push(pc, args, stack)
-                pc = pc + offset
+                pc = pc + offset - 1
                 args = call_args
                 stack = []
 



More information about the Pypy-commit mailing list