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

hager noreply at buildbot.pypy.org
Tue Jan 31 19:39:53 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r52000:de37273d21e7
Date: 2012-01-31 10:39 -0800
http://bitbucket.org/pypy/pypy/changeset/de37273d21e7/

Log:	don't copy arglist in prepare_unicodesetitem and
	prepare_unicodegetitem

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
@@ -727,7 +727,7 @@
         return [l0, l1, res]
 
     def prepare_unicodegetitem(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)
 
@@ -742,7 +742,7 @@
             imm(scale), imm(basesize), imm(itemsize)]
 
     def prepare_unicodesetitem(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