Author: hager <sven.ha...@uni-duesseldorf.de> Branch: ppc-jit-backend Changeset: r52635:9b1bc846ce01 Date: 2012-02-15 08:41 -0800 http://bitbucket.org/pypy/pypy/changeset/9b1bc846ce01/
Log: do not copy lists diff --git a/pypy/jit/backend/ppc/helper/regalloc.py b/pypy/jit/backend/ppc/helper/regalloc.py --- a/pypy/jit/backend/ppc/helper/regalloc.py +++ b/pypy/jit/backend/ppc/helper/regalloc.py @@ -76,7 +76,7 @@ def prepare_binary_int_op(): def f(self, op): - boxes = list(op.getarglist()) + boxes = op.getarglist() b0, b1 = boxes reg1 = self._ensure_value_is_boxed(b0, forbidden_vars=boxes) diff --git a/pypy/jit/backend/ppc/regalloc.py b/pypy/jit/backend/ppc/regalloc.py --- a/pypy/jit/backend/ppc/regalloc.py +++ b/pypy/jit/backend/ppc/regalloc.py @@ -177,7 +177,7 @@ def prepare_loop(self, inputargs, operations): self._prepare(inputargs, operations) self._set_initial_bindings(inputargs) - self.possibly_free_vars(list(inputargs)) + self.possibly_free_vars(inputargs) def prepare_bridge(self, inputargs, arglocs, ops): self._prepare(inputargs, ops) @@ -425,7 +425,7 @@ prepare_guard_not_invalidated = prepare_guard_no_overflow def prepare_guard_exception(self, op): - boxes = list(op.getarglist()) + boxes = op.getarglist() arg0 = ConstInt(rffi.cast(lltype.Signed, op.getarg(0).getint())) loc = self._ensure_value_is_boxed(arg0) loc1 = self.get_scratch_reg(INT, boxes) @@ -447,7 +447,7 @@ return arglocs def prepare_guard_value(self, op): - boxes = list(op.getarglist()) + boxes = op.getarglist() a0, a1 = boxes l0 = self._ensure_value_is_boxed(a0, boxes) l1 = self._ensure_value_is_boxed(a1, boxes) @@ -459,7 +459,7 @@ def prepare_guard_class(self, op): assert isinstance(op.getarg(0), Box) - boxes = list(op.getarglist()) + boxes = op.getarglist() x = self._ensure_value_is_boxed(boxes[0], boxes) y = self.get_scratch_reg(REF, forbidden_vars=boxes) y_val = rffi.cast(lltype.Signed, op.getarg(1).getint()) @@ -559,7 +559,7 @@ return [] def prepare_setfield_gc(self, op): - boxes = list(op.getarglist()) + boxes = op.getarglist() a0, a1 = boxes ofs, size, sign = unpack_fielddescr(op.getdescr()) base_loc = self._ensure_value_is_boxed(a0, boxes) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit