[pypy-svn] r77137 - pypy/branch/resoperation-refactoring/pypy/jit/backend/llsupport

antocuni at codespeak.net antocuni at codespeak.net
Fri Sep 17 14:54:24 CEST 2010


Author: antocuni
Date: Fri Sep 17 14:54:23 2010
New Revision: 77137

Modified:
   pypy/branch/resoperation-refactoring/pypy/jit/backend/llsupport/gc.py
Log:
(david, antocuni): remove the last references to the about-to-be-removed _args field


Modified: pypy/branch/resoperation-refactoring/pypy/jit/backend/llsupport/gc.py
==============================================================================
--- pypy/branch/resoperation-refactoring/pypy/jit/backend/llsupport/gc.py	(original)
+++ pypy/branch/resoperation-refactoring/pypy/jit/backend/llsupport/gc.py	Fri Sep 17 14:54:23 2010
@@ -581,16 +581,14 @@
                 if isinstance(v, BoxPtr) or (isinstance(v, ConstPtr) and
                                              bool(v.value)): # store a non-NULL
                     self._gen_write_barrier(newops, op.getarg(0), v)
-                    op = ResOperation(rop.SETFIELD_RAW, op._args, None,
-                                      descr=op.descr)
+                    op = op.copy_and_change(rop.SETFIELD_RAW)
             # ---------- write barrier for SETARRAYITEM_GC ----------
             if op.getopnum() == rop.SETARRAYITEM_GC:
                 v = op.getarg(2)
                 if isinstance(v, BoxPtr) or (isinstance(v, ConstPtr) and
                                              bool(v.value)): # store a non-NULL
                     self._gen_write_barrier(newops, op.getarg(0), v)
-                    op = ResOperation(rop.SETARRAYITEM_RAW, op._args, None,
-                                      descr=op.descr)
+                    op = op.copy_and_change(rop.SETARRAYITEM_RAW)
             # ----------
             newops.append(op)
         del operations[:]



More information about the Pypy-commit mailing list