[pypy-svn] r64033 - pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Mon Apr 13 19:13:27 CEST 2009


Author: fijal
Date: Mon Apr 13 19:13:27 2009
New Revision: 64033

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py
Log:
kill XXX with a correct answer. Test is coming


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py	Mon Apr 13 19:13:27 2009
@@ -863,8 +863,9 @@
         if isinstance(op.args[0], Const):
             x = rel32(self.cpu.get_box_value_as_int(op.args[0]))
         else:
-            # XXX add extra_on_stack?
             x = arglocs[0]
+            if isinstance(x, MODRM):
+                x = stack_pos(loc.position + extra_on_stack)
         self.mc.CALL(x)
         self.mc.ADD(esp, imm(WORD * extra_on_stack))
         if size == 1:



More information about the Pypy-commit mailing list