[pypy-svn] r37404 - pypy/dist/pypy/jit/codegen/i386
arigo at codespeak.net
arigo at codespeak.net
Fri Jan 26 18:45:14 CET 2007
Author: arigo
Date: Fri Jan 26 18:45:13 2007
New Revision: 37404
Modified:
pypy/dist/pypy/jit/codegen/i386/viewcode.py
Log:
For now, let's dump to stdout a text version of the code dump.
Modified: pypy/dist/pypy/jit/codegen/i386/viewcode.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/i386/viewcode.py (original)
+++ pypy/dist/pypy/jit/codegen/i386/viewcode.py Fri Jan 26 18:45:13 2007
@@ -234,8 +234,11 @@
def show(self):
g1 = Graph('codedump')
+ self.ranges.sort()
for r in self.ranges:
- text, width = tab2columns(r.disassemble())
+ disassembled = r.disassemble()
+ print disassembled
+ text, width = tab2columns(disassembled)
text = '0x%x\n\n%s' % (r.addr, text)
g1.emit_node('N_%x' % r.addr, shape="box", label=text,
width=str(width*0.1125))
@@ -245,6 +248,7 @@
else:
color = "red"
g1.emit_edge('N_%x' % r.addr, 'N_%x' % targetaddr, color=color)
+ sys.stdout.flush()
g1.display()
More information about the Pypy-commit
mailing list