Author: Maciej Fijalkowski <[email protected]>
Branch: optresult
Changeset: r77881:e7a2ace43aac
Date: 2015-06-05 09:49 +0200
http://bitbucket.org/pypy/pypy/changeset/e7a2ace43aac/

Log:    give up on integrating rewrite_consptr. we allow stuff to be
        modified in place in this simple case

diff --git a/rpython/jit/backend/llsupport/gc.py 
b/rpython/jit/backend/llsupport/gc.py
--- a/rpython/jit/backend/llsupport/gc.py
+++ b/rpython/jit/backend/llsupport/gc.py
@@ -156,15 +156,13 @@
             v = op.getarg(arg_i)
             # assert to make sure we got what we expected
             assert isinstance(v, ConstPtr)
-            result_ptr = BoxPtr()
             array_index = moving_obj_tracker.get_array_index(v)
             load_op = ResOperation(rop.GETARRAYITEM_GC,
                     [moving_obj_tracker.const_ptr_gcref_array,
                         ConstInt(array_index)],
-                    result_ptr,
                     descr=moving_obj_tracker.ptr_array_descr)
             newops.append(load_op)
-            op.setarg(arg_i, result_ptr)
+            op.setarg(arg_i, load_op)
         #
         newops.append(op)
         return newops
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to