[pypy-svn] r65948 - pypy/branch/pyjitpl5/pypy/jit/tl/spli

benjamin at codespeak.net benjamin at codespeak.net
Thu Jun 25 00:17:22 CEST 2009


Author: benjamin
Date: Thu Jun 25 00:17:21 2009
New Revision: 65948

Modified:
   pypy/branch/pyjitpl5/pypy/jit/tl/spli/interpreter.py
Log:
use set_args()

Modified: pypy/branch/pyjitpl5/pypy/jit/tl/spli/interpreter.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/spli/interpreter.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/spli/interpreter.py	Thu Jun 25 00:17:21 2009
@@ -39,8 +39,7 @@
     if space is None:
         space = objects.DumbObjSpace()
     frame = SPLIFrame(pyco, locs, globs)
-    for i, arg in enumerate(args):
-        frame.locals[i] = space.wrap(arg)
+    frame.set_args([space.wrap(arg) for arg in args])
     return frame.run()
 
 class BlockUnroller(Exception):



More information about the Pypy-commit mailing list