[pypy-commit] pypy continulet-jit-2: Found the other place that depends on this constant.

arigo noreply at buildbot.pypy.org
Fri Mar 2 21:24:47 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: continulet-jit-2
Changeset: r53125:22efc5bf3868
Date: 2012-03-02 20:28 +0100
http://bitbucket.org/pypy/pypy/changeset/22efc5bf3868/

Log:	Found the other place that depends on this constant.

diff --git a/pypy/jit/backend/x86/assembler.py b/pypy/jit/backend/x86/assembler.py
--- a/pypy/jit/backend/x86/assembler.py
+++ b/pypy/jit/backend/x86/assembler.py
@@ -14,7 +14,8 @@
 
 from pypy.jit.backend.x86.arch import (FRAME_FIXED_SIZE, FORCE_INDEX_OFS, WORD,
                                        IS_X86_32, IS_X86_64,
-                                       OFFSTACK_REAL_FRAME)
+                                       OFFSTACK_REAL_FRAME,
+                                       OFFSTACK_START_AT_WORD)
 
 from pypy.jit.backend.x86.regloc import (eax, ecx, edx, ebx,
                                          esp, ebp, esi, edi,
@@ -777,7 +778,7 @@
     def _patch_stackadjust(self, adr_to_fix, allocated_depth):
         # patch the requested size in the call to malloc/realloc
         mc = codebuf.MachineCodeBlockWrapper()
-        words = FRAME_FIXED_SIZE + 1 + allocated_depth
+        words = FRAME_FIXED_SIZE-1 + OFFSTACK_START_AT_WORD + allocated_depth
         mc.writeimm32(words * WORD)
         mc.copy_to_raw_memory(adr_to_fix)
         return


More information about the pypy-commit mailing list