Author: David Schneider <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to