Author: Armin Rigo <[email protected]>
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])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit