[pypy-commit] pypy ppc-jit-backend: don't copy arglist in prepare_strgetitem and prepare_strsetitem

hager noreply at buildbot.pypy.org
Tue Jan 31 18:09:32 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r51999:e8e75c828faa
Date: 2012-01-31 09:08 -0800
http://bitbucket.org/pypy/pypy/changeset/e8e75c828faa/

Log:	don't copy arglist in prepare_strgetitem and prepare_strsetitem

diff --git a/pypy/jit/backend/ppc/ppcgen/regalloc.py b/pypy/jit/backend/ppc/ppcgen/regalloc.py
--- a/pypy/jit/backend/ppc/ppcgen/regalloc.py
+++ b/pypy/jit/backend/ppc/ppcgen/regalloc.py
@@ -682,7 +682,7 @@
         return [l0, l1, res]
 
     def prepare_strgetitem(self, op):
-        boxes = list(op.getarglist())
+        boxes = op.getarglist()
         base_loc = self._ensure_value_is_boxed(boxes[0])
 
         a1 = boxes[1]
@@ -698,7 +698,7 @@
         return [res, base_loc, ofs_loc, imm(basesize)]
 
     def prepare_strsetitem(self, op):
-        boxes = list(op.getarglist())
+        boxes = op.getarglist()
         base_loc = self._ensure_value_is_boxed(boxes[0], boxes)
         ofs_loc = self._ensure_value_is_boxed(boxes[1], boxes)
         value_loc = self._ensure_value_is_boxed(boxes[2], boxes)


More information about the pypy-commit mailing list