Author: Hakan Ardo <[email protected]>
Branch: jit-multilabel
Changeset: r50658:9339faeef95b
Date: 2011-12-18 15:31 +0100
http://bitbucket.org/pypy/pypy/changeset/9339faeef95b/
Log: repr of TargetToken's are compared by test_pypy_c so they are not
allowed to change and should identify the instance
diff --git a/pypy/jit/metainterp/history.py b/pypy/jit/metainterp/history.py
--- a/pypy/jit/metainterp/history.py
+++ b/pypy/jit/metainterp/history.py
@@ -758,6 +758,9 @@
self.virtual_state = None
self.exported_state = None
+
+ def repr_of_descr(self):
+ return 'TargetToken(%d)' % compute_identity_hash(self)
class TreeLoop(object):
inputargs = None
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit