Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/C1XCompiler.java @ 2684:ed36daed4c43
Add new option PrintIdealGraphToFile and another printer/observer pair to generate a graph representation that can be visualized and inspected with the ideal graph visualizer
author | Peter Hofer <peter.hofer@jku.at> |
---|---|
date | Mon, 16 May 2011 17:31:53 +0200 |
parents | 6ab73784566a |
children | b179be22a3db |
comparison
equal
deleted
inserted
replaced
2683:026b21a81651 | 2684:ed36daed4c43 |
---|---|
129 addCompilationObserver(new GraphvizPrinterObserver(false)); | 129 addCompilationObserver(new GraphvizPrinterObserver(false)); |
130 } | 130 } |
131 if (C1XOptions.PrintDOTGraphToPdf) { | 131 if (C1XOptions.PrintDOTGraphToPdf) { |
132 addCompilationObserver(new GraphvizPrinterObserver(true)); | 132 addCompilationObserver(new GraphvizPrinterObserver(true)); |
133 } | 133 } |
134 if (C1XOptions.PrintIdealGraphToFile) { | |
135 addCompilationObserver(new IdealGraphPrinterObserver()); | |
136 } | |
134 } | 137 } |
135 | 138 |
136 public GlobalStub lookupGlobalStub(GlobalStub.Id id) { | 139 public GlobalStub lookupGlobalStub(GlobalStub.Id id) { |
137 GlobalStub globalStub = stubs.get(id); | 140 GlobalStub globalStub = stubs.get(id); |
138 assert globalStub != null : "no stub for global stub id: " + id; | 141 assert globalStub != null : "no stub for global stub id: " + id; |