Author: Armin Rigo <[email protected]>
Branch: kill-someobject
Changeset: r57921:5a96403f2b7a
Date: 2012-10-08 14:27 +0200
http://bitbucket.org/pypy/pypy/changeset/5a96403f2b7a/
Log: Get rid of the distinction between translator.view() and
graph.show(), by supporting both names on both objects.
diff --git a/pypy/objspace/flow/model.py b/pypy/objspace/flow/model.py
--- a/pypy/objspace/flow/model.py
+++ b/pypy/objspace/flow/model.py
@@ -118,6 +118,8 @@
from pypy.translator.tool.graphpage import FlowGraphPage
FlowGraphPage(t, [self]).display()
+ view = show
+
class Link(object):
@@ -172,6 +174,8 @@
from pypy.translator.tool.graphpage import try_show
try_show(self)
+ view = show
+
class Block(object):
__slots__ = """inputargs operations exitswitch
@@ -247,6 +251,8 @@
from pypy.translator.tool.graphpage import try_show
try_show(self)
+ view = show
+
class Variable(object):
__slots__ = ["_name", "_nr", "concretetype"]
diff --git a/pypy/translator/translator.py b/pypy/translator/translator.py
--- a/pypy/translator/translator.py
+++ b/pypy/translator/translator.py
@@ -130,12 +130,15 @@
from pypy.translator.tool.graphpage import FlowGraphPage
FlowGraphPage(self).display()
+ show = view
+
def viewcg(self, center_graph=None, huge=100):
"""Shows the whole call graph and the class hierarchy, based on
the computed annotations."""
from pypy.translator.tool.graphpage import TranslatorPage
TranslatorPage(self, center_graph=center_graph, huge=huge).display()
+ showcg = viewcg
# _______________________________________________________________
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit