[pypy-commit] pypy partial-virtualizable: Fix.

arigo noreply at buildbot.pypy.org
Fri May 20 13:37:52 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: partial-virtualizable
Changeset: r44327:e5fb7f26f800
Date: 2011-05-20 13:35 +0200
http://bitbucket.org/pypy/pypy/changeset/e5fb7f26f800/

Log:	Fix.

diff --git a/pypy/jit/metainterp/compile.py b/pypy/jit/metainterp/compile.py
--- a/pypy/jit/metainterp/compile.py
+++ b/pypy/jit/metainterp/compile.py
@@ -693,9 +693,11 @@
         src_index = nb_red_args
         for descr in vinfo.static_field_descrs:
             valuebox = inputargs[src_index]
+            src_index += 1
             setoperations.append(
                 ResOperation(rop.SETFIELD_GC, [vablebox, valuebox], None,
                              descr=descr))
+        assert src_index == len(inputargs)
         # ... arrays ...
     #
     jd = jitdriver_sd


More information about the pypy-commit mailing list