[pypy-svn] r63422 - pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Sun Mar 29 23:15:08 CEST 2009


Author: fijal
Date: Sun Mar 29 23:15:07 2009
New Revision: 63422

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/pyjitpl.py
Log:
make sure we never modify the default argument


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/pyjitpl.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/pyjitpl.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/pyjitpl.py	Sun Mar 29 23:15:07 2009
@@ -649,8 +649,10 @@
             resume_info.append((frame.jitcode, frame.pc, const_part,
                                 frame.exception_target))
         if box is not None:
-            extraargs = [box] + extraargs
-        guard_op = self.metainterp.history.record(opnum, extraargs, None)
+            moreargs = [box] + extraargs
+        else:
+            moreargs = []
+        guard_op = self.metainterp.history.record(opnum, moreargs, None)
         op = history.ResOperation(rop.FAIL, liveboxes, None)
         op.key = ResumeKey(guard_op, resume_info)
         guard_op.suboperations = [op]



More information about the Pypy-commit mailing list