[pypy-commit] pypy ppc-jit-backend: (arigo, bivab) get rid of the special case
bivab
noreply at buildbot.pypy.org
Tue Feb 7 17:17:53 CET 2012
Author: David Schneider <david.schneider at picle.org>
Branch: ppc-jit-backend
Changeset: r52189:dad5a5e0f215
Date: 2012-01-18 10:02 -0800
http://bitbucket.org/pypy/pypy/changeset/dad5a5e0f215/
Log: (arigo, bivab) get rid of the special case
diff --git a/pypy/jit/backend/ppc/ppcgen/locations.py b/pypy/jit/backend/ppc/ppcgen/locations.py
--- a/pypy/jit/backend/ppc/ppcgen/locations.py
+++ b/pypy/jit/backend/ppc/ppcgen/locations.py
@@ -110,7 +110,4 @@
return ImmLocation(val)
def get_spp_offset(pos):
- if pos < 0:
- return -pos * WORD
- else:
- return -(pos + 1) * WORD
+ return -(pos + 1) * WORD
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
@@ -186,7 +186,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