[pypy-svn] pypy jit-shadowstack: Bah. Two definitions of the constant FRAME_FIXED_SIZE, which were
arigo
commits-noreply at bitbucket.org
Thu Mar 31 16:56:01 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: jit-shadowstack
Changeset: r43054:944e0475cb5c
Date: 2011-03-31 16:51 +0200
http://bitbucket.org/pypy/pypy/changeset/944e0475cb5c/
Log: Bah. Two definitions of the constant FRAME_FIXED_SIZE, which were
now out of sync with each other.
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
@@ -566,7 +566,7 @@
def _get_offset_of_ebp_from_esp(self, allocated_depth):
# Given that [EBP] is where we saved EBP, i.e. in the last word
# of our fixed frame, then the 'words' value is:
- words = (self.cpu.FRAME_FIXED_SIZE - 1) + allocated_depth
+ words = (FRAME_FIXED_SIZE - 1) + allocated_depth
# align, e.g. for Mac OS X
aligned_words = align_stack_words(words+2)-2 # 2 = EIP+EBP
return -WORD * aligned_words
diff --git a/pypy/jit/backend/x86/runner.py b/pypy/jit/backend/x86/runner.py
--- a/pypy/jit/backend/x86/runner.py
+++ b/pypy/jit/backend/x86/runner.py
@@ -149,7 +149,6 @@
WORD = 4
NUM_REGS = 8
CALLEE_SAVE_REGISTERS = [regloc.ebx, regloc.esi, regloc.edi]
- FRAME_FIXED_SIZE = len(CALLEE_SAVE_REGISTERS) + 2
supports_longlong = True
@@ -165,7 +164,6 @@
WORD = 8
NUM_REGS = 16
CALLEE_SAVE_REGISTERS = [regloc.ebx, regloc.r12, regloc.r13, regloc.r14, regloc.r15]
- FRAME_FIXED_SIZE = len(CALLEE_SAVE_REGISTERS) + 2
def __init__(self, *args, **kwargs):
assert sys.maxint == (2**63 - 1)
More information about the Pypy-commit
mailing list