# HG changeset patch # User Christian Wimmer # Date 1330708679 28800 # Node ID 25a46490146e762cae0ac9f2057d43a237f62753 # Parent feb4ad5646643659ba6a177a97e8e3800f6ed3f5 Use context instead of individual dump calls to pass helper objects to CFG printer diff -r feb4ad564664 -r 25a46490146e graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompiler.java --- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompiler.java Fri Mar 02 09:13:36 2012 -0800 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompiler.java Fri Mar 02 09:17:59 2012 -0800 @@ -81,10 +81,8 @@ if (osrBCI != -1) { throw new CiBailout("No OSR supported"); } - Debug.dump(this, "compiler"); - Debug.dump(method, "method"); - return Debug.scope(createScopeName(method), graph, new Callable() { + return Debug.scope(createScopeName(method), new Object[] {graph, method, this}, new Callable() { public CiTargetMethod call() { final CiAssumptions assumptions = GraalOptions.OptAssumptions ? new CiAssumptions() : null; final LIR lir = Debug.scope("FrontEnd", new Callable() { @@ -213,7 +211,7 @@ assert startBlock != null; assert startBlock.numberOfPreds() == 0; - return Debug.scope("Compute Linear Scan Order", new Callable() { + return Debug.scope("ComputeLinearScanOrder", new Callable() { @Override public LIR call() { @@ -237,9 +235,8 @@ public FrameMap emitLIR(final LIR lir, StructuredGraph graph, final RiResolvedMethod method) { final FrameMap frameMap = backend.newFrameMap(runtime.getRegisterConfig(method)); final LIRGenerator lirGenerator = backend.newLIRGenerator(graph, frameMap, method, lir, xir); - Debug.dump(lirGenerator, "LIRGenerator"); - Debug.scope("LIRGen", new Runnable() { + Debug.scope("LIRGen", lirGenerator, new Runnable() { public void run() { for (Block b : lir.linearScanOrder()) { lirGenerator.doBlock(b);