[pypy-svn] r42788 - pypy/dist/pypy/translator/oosupport
fijal at codespeak.net
fijal at codespeak.net
Mon May 7 13:15:13 CEST 2007
Author: fijal
Date: Mon May 7 13:15:13 2007
New Revision: 42788
Modified:
pypy/dist/pypy/translator/oosupport/metavm.py
Log:
Add possibility for slicing parameters, just in case
Modified: pypy/dist/pypy/translator/oosupport/metavm.py
==============================================================================
--- pypy/dist/pypy/translator/oosupport/metavm.py (original)
+++ pypy/dist/pypy/translator/oosupport/metavm.py Mon May 7 13:15:13 2007
@@ -239,8 +239,17 @@
class _PushAllArgs(MicroInstruction):
""" Pushes all arguments of the instruction onto the stack in order. """
+ def __init__(self, slice=None):
+ """ Eventually slice args
+ """
+ self.slice = slice
+
def render(self, generator, op):
- for arg in op.args:
+ if self.slice is not None:
+ args = op.args[self.slice]
+ else:
+ args = op.args
+ for arg in args:
generator.load(arg)
class PushPrimitive(MicroInstruction):
More information about the pypy-svn
mailing list