Author: David Schneider <[email protected]>
Branch: arm-backed-float
Changeset: r44330:3cf680827e0c
Date: 2011-05-20 14:39 +0200
http://bitbucket.org/pypy/pypy/changeset/3cf680827e0c/

Log:    take the space used for the registers stored on the stack by the
        malloc code when calculating the offset to the arguments passed on
        the stack

diff --git a/pypy/jit/backend/arm/assembler.py 
b/pypy/jit/backend/arm/assembler.py
--- a/pypy/jit/backend/arm/assembler.py
+++ b/pypy/jit/backend/arm/assembler.py
@@ -471,7 +471,8 @@
 
         stack_position = len(r.callee_saved_registers)*WORD + \
                             len(r.callee_saved_vfp_registers)*2*WORD + \
-                            WORD # for the FAIL INDEX
+                            N_REGISTERS_SAVED_BY_MALLOC * WORD + \
+                            2 * WORD # for the FAIL INDEX and the stack padding
         for i in range(reg_args, len(inputargs)):
             arg = inputargs[i]
             if arg.type == FLOAT:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to