Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/debug/GraphvizPrinterObserver.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 | e1dad0edd57a |
children | 633e66de40fe |
comparison
equal
deleted
inserted
replaced
2808:189ffb7d1d84 | 2809:b003ea36fa12 |
---|---|
55 | 55 |
56 public void compilationFinished(CompilationEvent event) { | 56 public void compilationFinished(CompilationEvent event) { |
57 } | 57 } |
58 | 58 |
59 public void compilationEvent(CompilationEvent event) { | 59 public void compilationEvent(CompilationEvent event) { |
60 if (event.getStartBlock() != null && !TTY.isSuppressed()) { | 60 if (event.getGraph() != null && !TTY.isSuppressed()) { |
61 Graph graph = event.getStartBlock().graph(); | 61 Graph graph = event.getGraph(); |
62 | 62 |
63 String name = event.getMethod().holder().name(); | 63 String name = event.getMethod().holder().name(); |
64 name = name.substring(1, name.length() - 1).replace('/', '.'); | 64 name = name.substring(1, name.length() - 1).replace('/', '.'); |
65 name = name + "." + event.getMethod().name(); | 65 name = name + "." + event.getMethod().name(); |
66 | 66 |