Author: fijal
Branch: heapcache-refactor
Changeset: r83158:c5557d5125c2
Date: 2016-03-19 10:25 +0200
http://bitbucket.org/pypy/pypy/changeset/c5557d5125c2/
Log: fix
diff --git a/rpython/jit/metainterp/history.py
b/rpython/jit/metainterp/history.py
--- a/rpython/jit/metainterp/history.py
+++ b/rpython/jit/metainterp/history.py
@@ -681,7 +681,7 @@
# hack to record the ops *after* we know our inputargs
for (opnum, argboxes, op, descr) in self._cache:
pos = self.trace.record_op(opnum, argboxes, descr)
- op.position = pos
+ op.set_position(pos)
self._cache = None
def length(self):
diff --git a/rpython/jit/metainterp/opencoder.py
b/rpython/jit/metainterp/opencoder.py
--- a/rpython/jit/metainterp/opencoder.py
+++ b/rpython/jit/metainterp/opencoder.py
@@ -280,8 +280,7 @@
self._refs.append(box.getref_base())
return tag(TAGCONSTPTR, v)
elif isinstance(box, AbstractResOp):
- return tag(TAGBOX, box.get_position())
- elif isinstance(box, AbstractInputArg):
+ assert box.get_position() >= 0
return tag(TAGBOX, box.get_position())
else:
assert False, "unreachable code"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit