[pypy-commit] pypy ppc-jit-backend: (bivab, hager): fix offset to stack parameters

hager noreply at buildbot.pypy.org
Tue Jan 10 11:37:41 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r51194:d1b7f8e3b929
Date: 2012-01-10 11:37 +0100
http://bitbucket.org/pypy/pypy/changeset/d1b7f8e3b929/

Log:	(bivab, hager): fix offset to stack parameters

diff --git a/pypy/jit/backend/ppc/ppcgen/regalloc.py b/pypy/jit/backend/ppc/ppcgen/regalloc.py
--- a/pypy/jit/backend/ppc/ppcgen/regalloc.py
+++ b/pypy/jit/backend/ppc/ppcgen/regalloc.py
@@ -161,7 +161,7 @@
         arg_index = 0
         count = 0
         n_register_args = len(r.PARAM_REGS)
-        cur_frame_pos = -self.assembler.OFFSET_STACK_ARGS // WORD + 1
+        cur_frame_pos = -self.assembler.OFFSET_STACK_ARGS // WORD
         for box in inputargs:
             assert isinstance(box, Box)
             # handle inputargs in argument registers


More information about the pypy-commit mailing list