Author: Maciej Fijalkowski <[email protected]>
Branch: jitframe-on-heap
Changeset: r62280:9db1c0dd3831
Date: 2013-03-10 23:27 +0200
http://bitbucket.org/pypy/pypy/changeset/9db1c0dd3831/
Log: fix the stack alignment (I think)
diff --git a/rpython/jit/backend/x86/assembler.py
b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -1125,8 +1125,7 @@
stack_depth += 1
stack_depth += loc.get_width() // WORD
if stack_depth > stack_max:
- stack_depth = align_stack_words(stack_depth)
- align = (stack_depth - stack_max)
+ align = align_stack_words(stack_depth - stack_max)
self.mc.SUB_ri(esp.value, align * WORD)
if can_collect == 1:
ofs = self.cpu.get_ofs_of_frame_field('jf_extra_stack_depth')
@@ -1202,8 +1201,7 @@
max(floats - len(unused_xmm), 0))
align = 0
if stack_depth > stack_max:
- stack_depth = align_stack_words(stack_depth)
- align = (stack_depth - stack_max)
+ align = align_stack_words(stack_depth - stack_max)
if can_collect == 1:
ofs = self.cpu.get_ofs_of_frame_field('jf_extra_stack_depth')
self.mc.MOV_bi(ofs, align * WORD)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit