[pypy-commit] pypy remove-globals-in-jit: Add a sanity check.
arigo
noreply at buildbot.pypy.org
Sun Dec 2 23:16:59 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: remove-globals-in-jit
Changeset: r59238:f892171caf43
Date: 2012-12-02 14:08 -0800
http://bitbucket.org/pypy/pypy/changeset/f892171caf43/
Log: Add a sanity check.
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
@@ -1085,6 +1085,9 @@
def consume_virtualref_info(self, vrefinfo, numb, end):
# we have to decode a list of references containing pairs
# [..., virtual, vref, ...] stopping at 'end'
+ if vrefinfo is None:
+ assert end == 0
+ return
assert (end & 1) == 0
for i in range(0, end, 2):
virtual = self.decode_ref(numb.nums[i])
More information about the pypy-commit
mailing list