[pypy-svn] r64621 - pypy/branch/pyjitpl5/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Fri Apr 24 02:55:11 CEST 2009


Author: fijal
Date: Fri Apr 24 02:55:10 2009
New Revision: 64621

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/x86/assembler.py
Log:
bah, that was dumb


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/x86/assembler.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/x86/assembler.py	Fri Apr 24 02:55:10 2009
@@ -241,7 +241,7 @@
         self.mc2.done()
         tree._x86_stack_depth = regalloc.max_stack_depth
         for place in self.places_to_patch_framesize:
-            mc = codebuf.InMemoryCodeBuilder(place, 128)
+            mc = codebuf.InMemoryCodeBuilder(place, place + 128)
             mc.ADD(esp, imm32(tree._x86_stack_depth * WORD))
             mc.done()
         for op, pos in self.jumps_to_look_at:
@@ -711,7 +711,8 @@
             self.mcstack.give_mc_back(mc2)
         else:
             pos = new_pos
-        mc = codebuf.InMemoryCodeBuilder(old_pos, MachineCodeBlockWrapper.MC_SIZE)
+        mc = codebuf.InMemoryCodeBuilder(old_pos, old_pos +
+                                         MachineCodeBlockWrapper.MC_SIZE)
         mc.JMP(rel32(pos))
         mc.done()
 



More information about the Pypy-commit mailing list