[pypy-svn] r52042 - pypy/branch/jit-refactoring/pypy/jit/rainbow
arigo at codespeak.net
arigo at codespeak.net
Sun Mar 2 16:50:31 CET 2008
Author: arigo
Date: Sun Mar 2 16:50:30 2008
New Revision: 52042
Modified:
pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py
Log:
Attach names early, to make early calls to dump() show the target of
calls instead of just '?'.
Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py (original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py Sun Mar 2 16:50:30 2008
@@ -170,6 +170,7 @@
#graph.show()
if is_portal:
bytecode = JitCode.__new__(JitCode)
+ bytecode.name = graph.name # for dump()
bytecode.is_portal = True
self.all_graphs[graph] = bytecode
self.seen_blocks = {}
@@ -272,6 +273,7 @@
if graph in self.all_graphs:
return self.all_graphs[graph]
bytecode = JitCode.__new__(JitCode)
+ bytecode.name = graph.name # for dump()
self.all_graphs[graph] = bytecode
self.unfinished_graphs.append(graph)
return bytecode
More information about the pypy-svn
mailing list