[pypy-svn] r36809 - pypy/dist/pypy/jit/codegen/ppc

mwh at codespeak.net mwh at codespeak.net
Tue Jan 16 16:06:42 CET 2007


Author: mwh
Date: Tue Jan 16 16:06:41 2007
New Revision: 36809

Modified:
   pypy/dist/pypy/jit/codegen/ppc/rgenop.py
Log:
i still don't know how slices work in rpython, it seems.
fixes the spurious memory errors in the compiled tests.


Modified: pypy/dist/pypy/jit/codegen/ppc/rgenop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/ppc/rgenop.py	(original)
+++ pypy/dist/pypy/jit/codegen/ppc/rgenop.py	Tue Jan 16 16:06:41 2007
@@ -463,8 +463,9 @@
         self.initial_var2loc = {}
         for arg in inputargs[:8]:
             self.initial_var2loc[arg] = gprs[3+len(self.initial_var2loc)]
-        for arg in inputargs[8:]:
-            self.initial_var2loc[arg] = insn.stack_slot(24 + 4 * len(self.initial_var2loc))
+        if len(inputargs) > 8:
+            for arg in inputargs[8:]:
+                self.initial_var2loc[arg] = insn.stack_slot(24 + 4 * len(self.initial_var2loc))
         self.initial_spill_offset = self._var_offset(0)
 
         # Standard prologue:



More information about the Pypy-commit mailing list