Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/debug/IdealGraphPrinterObserver.java @ 2809:b003ea36fa12
Add block structure to ideal graph visualizer
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Mon, 30 May 2011 14:55:09 +0200 |
parents | a51ef0310dad |
children |
comparison
equal
deleted
inserted
replaced
2808:189ffb7d1d84 | 2809:b003ea36fa12 |
---|---|
138 } | 138 } |
139 } | 139 } |
140 | 140 |
141 @Override | 141 @Override |
142 public void compilationEvent(CompilationEvent event) { | 142 public void compilationEvent(CompilationEvent event) { |
143 if (printer != null && event.getStartBlock() != null) { | 143 if (printer != null && event.getGraph() != null) { |
144 Graph graph = event.getStartBlock().graph(); | 144 Graph graph = event.getGraph(); |
145 printer.print(graph, event.getLabel(), true); | 145 printer.print(graph, event.getLabel(), true); |
146 } | 146 } |
147 } | 147 } |
148 | 148 |
149 @Override | 149 @Override |