Mercurial > hg > truffle
changeset 5013:25a46490146e
Use context instead of individual dump calls to pass helper objects to CFG printer
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Fri, 02 Mar 2012 09:17:59 -0800 |
parents | feb4ad564664 |
children | fab98b511845 |
files | graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompiler.java |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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<CiTargetMethod>() { + return Debug.scope(createScopeName(method), new Object[] {graph, method, this}, new Callable<CiTargetMethod>() { public CiTargetMethod call() { final CiAssumptions assumptions = GraalOptions.OptAssumptions ? new CiAssumptions() : null; final LIR lir = Debug.scope("FrontEnd", new Callable<LIR>() { @@ -213,7 +211,7 @@ assert startBlock != null; assert startBlock.numberOfPreds() == 0; - return Debug.scope("Compute Linear Scan Order", new Callable<LIR>() { + return Debug.scope("ComputeLinearScanOrder", new Callable<LIR>() { @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);