[pypy-commit] pypy store-sink-array: Fixes.

arigo noreply at buildbot.pypy.org
Sun Jun 19 19:52:39 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: store-sink-array
Changeset: r45013:660e66238751
Date: 2011-06-19 18:37 +0200
http://bitbucket.org/pypy/pypy/changeset/660e66238751/

Log:	Fixes.

diff --git a/pypy/jit/metainterp/optimizeopt/heap.py b/pypy/jit/metainterp/optimizeopt/heap.py
--- a/pypy/jit/metainterp/optimizeopt/heap.py
+++ b/pypy/jit/metainterp/optimizeopt/heap.py
@@ -332,7 +332,7 @@
             if fieldvalue.is_virtual():
                 # this is the case that we leave to resume.py
                 pendingfields.append((op.getdescr(), value.box,
-                                      fieldvalue.get_key_box()))
+                                      fieldvalue.get_key_box(), -1))
             else:
                 cf.force_lazy_setfield(self)
                 self.fixup_guard_situation()
diff --git a/pypy/jit/metainterp/resume.py b/pypy/jit/metainterp/resume.py
--- a/pypy/jit/metainterp/resume.py
+++ b/pypy/jit/metainterp/resume.py
@@ -338,7 +338,7 @@
                 value = values[box]
                 value.get_args_for_fail(self)
 
-        for _, box, fieldbox in pending_setfields:
+        for _, box, fieldbox, _ in pending_setfields:
             self.register_box(box)
             self.register_box(fieldbox)
             value = values[fieldbox]


More information about the pypy-commit mailing list