[pypy-svn] r34576 - pypy/dist/pypy/jit/codegen/ppc
mwh at codespeak.net
mwh at codespeak.net
Mon Nov 13 17:21:23 CET 2006
Author: mwh
Date: Mon Nov 13 17:21:22 2006
New Revision: 34576
Modified:
pypy/dist/pypy/jit/codegen/ppc/rgenop.py
Log:
waste a little bit less stack, and expand a docstring.
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 Mon Nov 13 17:21:22 2006
@@ -361,8 +361,9 @@
""" Returns the required stack size to store all data, assuming
that there are 'param' bytes of parameters for callee functions and
'lv' is the largest (wrt to abs() :) rFP-relative byte offset of
- any variable on the stack."""
- return ((24 + param - lv + 15) & ~15)
+ any variable on the stack. Plus 4 because the rFP actually points
+ into our caller's linkage area."""
+ return ((4 + param - lv + 15) & ~15)
def _close(self):
self.rgenop.close_mc(self.asm.mc)
More information about the Pypy-commit
mailing list