[pypy-commit] pypy jit-multilabel: repr of TargetToken's are compared by test_pypy_c so they are not allowed to change and should identify the instance

hakanardo noreply at buildbot.pypy.org
Sun Dec 18 16:11:10 CET 2011


Author: Hakan Ardo <hakan at debian.org>
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


More information about the pypy-commit mailing list