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

mwh at codespeak.net mwh at codespeak.net
Tue Jan 16 15:57:05 CET 2007


Author: mwh
Date: Tue Jan 16 15:57:04 2007
New Revision: 36806

Modified:
   pypy/dist/pypy/jit/codegen/ppc/rgenop.py
Log:
update a comment and make the largedummy tests with its 100 argument function
pass.


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 15:57:04 2007
@@ -193,9 +193,6 @@
 #    into the local variables area from the FP (frame pointer; it is not
 #    usual on the PPC to have a frame pointer, but there's no reason we
 #    can't have one :-)
-# 4. we don't support calls, so we never allocate a parameter or
-#    linkage area for functions we call.  this shouldn't be too hard
-#    to support, it's just not done yet...
 
 
 class Builder(GenBuilder):
@@ -463,8 +460,10 @@
         inputargs = [Var() for i in range(numargs)]
         assert self.initial_var2loc is None
         self.initial_var2loc = {}
-        for arg in inputargs:
+        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))
         self.initial_spill_offset = self._var_offset(0)
 
         # Standard prologue:



More information about the Pypy-commit mailing list