Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/C1XCompiler.java Wed May 18 15:14:55 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/C1XCompiler.java Wed May 18 15:01:43 2011 +0200 @@ -131,8 +131,14 @@ if (C1XOptions.PrintDOTGraphToPdf) { addCompilationObserver(new GraphvizPrinterObserver(true)); } - if (C1XOptions.PrintIdealGraphToFile) { - addCompilationObserver(new IdealGraphPrinterObserver()); + if (C1XOptions.PrintIdealGraphLevel != 0) { + CompilationObserver observer; + if (C1XOptions.PrintIdealGraphFile) { + observer = new IdealGraphPrinterObserver(); + } else { + observer = new IdealGraphPrinterObserver(C1XOptions.PrintIdealGraphAddress, C1XOptions.PrintIdealGraphPort); + } + addCompilationObserver(observer); } }