Commits

David Schneider committed dad5a5e

(arigo, bivab) get rid of the special case

  • Participants
  • Parent commits 326dc97
  • Branches ppc-jit-backend

Comments (0)

Files changed (2)

File pypy/jit/backend/ppc/ppcgen/locations.py

     return ImmLocation(val)
 
 def get_spp_offset(pos):
-    if pos < 0:
-        return -pos * WORD
-    else:
-        return -(pos + 1) * WORD
+    return -(pos + 1) * WORD

File pypy/jit/backend/ppc/ppcgen/regalloc.py

         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