Author: Hakan Ardo <[email protected]>
Branch: jit-short_from_state
Changeset: r44360:b83ac426c637
Date: 2011-05-21 19:29 +0200
http://bitbucket.org/pypy/pypy/changeset/b83ac426c637/
Log: support for single chunk case
diff --git a/pypy/module/pypyjit/test_pypy_c/model.py
b/pypy/module/pypyjit/test_pypy_c/model.py
--- a/pypy/module/pypyjit/test_pypy_c/model.py
+++ b/pypy/module/pypyjit/test_pypy_c/model.py
@@ -74,7 +74,8 @@
Function.__init__(self, *args, **kwds)
self.ids = {}
self.code = self.chunks[0].getcode()
- if not self.code and isinstance(self.chunks[1], TraceForOpcode):
+ if not self.code and len(self.chunks)>1 and \
+ isinstance(self.chunks[1], TraceForOpcode):
# First chunk might be missing the debug_merge_point op
self.code = self.chunks[1].getcode()
if self.code:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit