[pypy-svn] r70012 - pypy/branch/sepcomp/pypy/rpython
xoraxax at codespeak.net
xoraxax at codespeak.net
Wed Dec 9 12:50:23 CET 2009
Author: xoraxax
Date: Wed Dec 9 12:50:23 2009
New Revision: 70012
Modified:
pypy/branch/sepcomp/pypy/rpython/rtyper.py
Log:
Add HOp repr.
Modified: pypy/branch/sepcomp/pypy/rpython/rtyper.py
==============================================================================
--- pypy/branch/sepcomp/pypy/rpython/rtyper.py (original)
+++ pypy/branch/sepcomp/pypy/rpython/rtyper.py Wed Dec 9 12:50:23 2009
@@ -689,6 +689,9 @@
self.r_result = rtyper.getrepr(self.s_result)
rtyper.call_all_setups() # compute ForwardReferences now
+ def __repr__(self):
+ return '<HOp %r #llops=%i>' % (self.spaceop, len(self.llops))
+
def copy(self):
result = HighLevelOp(self.rtyper, self.spaceop,
self.exceptionlinks, self.llops)
More information about the Pypy-commit
mailing list