Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/C1XCompiler.java @ 2616:3558ca7088c0
FrameState and Graphviz changes:
* removed popx, pushx methods from GraphBuilder
* FrameState subclass of Value
* added String shortName() to Node
* added GraphvizPrinter option to use short names
* small hack in GraphvizPrinter: omit FrameState->Local connections
* added GraalGraphviz to implicit classpatch (read from GRAAL env var)
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 09 May 2011 17:00:25 +0200 |
parents | a57e051b33cd |
children | d456b679b6de |
comparison
equal
deleted
inserted
replaced
2615:5768534fd4e5 | 2616:3558ca7088c0 |
---|---|
153 name = name + "." + event.getMethod().name(); | 153 name = name + "." + event.getMethod().name(); |
154 if (name.matches(dotPattern)) { | 154 if (name.matches(dotPattern)) { |
155 ByteArrayOutputStream out = new ByteArrayOutputStream(); | 155 ByteArrayOutputStream out = new ByteArrayOutputStream(); |
156 GraphvizPrinter printer = new GraphvizPrinter(out); | 156 GraphvizPrinter printer = new GraphvizPrinter(out); |
157 printer.begin(name); | 157 printer.begin(name); |
158 printer.print(graph); | 158 printer.print(graph, true); |
159 printer.end(); | 159 printer.end(); |
160 | 160 |
161 try { | 161 try { |
162 GraphvizRunner.process(GraphvizRunner.DOT_LAYOUT, new ByteArrayInputStream(out.toByteArray()), | 162 GraphvizRunner.process(GraphvizRunner.DOT_LAYOUT, new ByteArrayInputStream(out.toByteArray()), |
163 new FileOutputStream(name + "_" + (n++) + event.getLabel() + ".pdf"), "pdf"); | 163 new FileOutputStream(name + "_" + (n++) + event.getLabel() + ".pdf"), "pdf"); |