Author: Armin Rigo <[email protected]>
Branch: emit-call-x86
Changeset: r64362:ef081fd53379
Date: 2013-05-20 13:09 +0200
http://bitbucket.org/pypy/pypy/changeset/ef081fd53379/
Log: Aaargh. Some counters are in WORDs and others are in bytes.
Confusion.
diff --git a/rpython/jit/backend/x86/callbuilder.py
b/rpython/jit/backend/x86/callbuilder.py
--- a/rpython/jit/backend/x86/callbuilder.py
+++ b/rpython/jit/backend/x86/callbuilder.py
@@ -170,9 +170,9 @@
# and 5/7 words as described for asmgcroot.ASM_FRAMEDATA, for a
# total size of JIT_USE_WORDS. This structure is found at
# [ESP+css].
- css = WORD * (-self.current_esp +
- PASS_ON_MY_FRAME - asmgcroot.JIT_USE_WORDS)
- assert css >= 2
+ css = -self.current_esp + (
+ WORD * (PASS_ON_MY_FRAME - asmgcroot.JIT_USE_WORDS))
+ assert css >= 2 * WORD
# Save ebp
index_of_ebp = css + WORD * (2+asmgcroot.INDEX_OF_EBP)
self.mc.MOV_sr(index_of_ebp, ebp.value) # MOV [css.ebp], EBP
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit