[pypy-commit] pypy arm-backed-float: 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
bivab
noreply at buildbot.pypy.org
Fri May 20 14:29:31 CEST 2011
Author: David Schneider <david.schneider at picle.org>
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:
More information about the pypy-commit
mailing list