comparison graal/GraalCompiler/src/com/sun/c1x/C1XCompiler.java @ 2698:b179be22a3db

Allow to submit graphs to IdealGraphVisualizer remotely with new options named after their counterparts in C2
author Peter Hofer <peter.hofer@jku.at>
date Wed, 18 May 2011 15:01:43 +0200
parents ed36daed4c43
children
comparison
equal deleted inserted replaced
2697:bd4c3be86fb7 2698:b179be22a3db
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) { 134 if (C1XOptions.PrintIdealGraphLevel != 0) {
135 addCompilationObserver(new IdealGraphPrinterObserver()); 135 CompilationObserver observer;
136 if (C1XOptions.PrintIdealGraphFile) {
137 observer = new IdealGraphPrinterObserver();
138 } else {
139 observer = new IdealGraphPrinterObserver(C1XOptions.PrintIdealGraphAddress, C1XOptions.PrintIdealGraphPort);
140 }
141 addCompilationObserver(observer);
136 } 142 }
137 } 143 }
138 144
139 public GlobalStub lookupGlobalStub(GlobalStub.Id id) { 145 public GlobalStub lookupGlobalStub(GlobalStub.Id id) {
140 GlobalStub globalStub = stubs.get(id); 146 GlobalStub globalStub = stubs.get(id);