# HG changeset patch # User Gilles Duboscq # Date 1329332965 -3600 # Node ID 09402dddc51ee795c624adeefd8cde389b7f557c # Parent d8ff6f2bcabd2911585e501fec9bb3c1681fd32c Make the graph object always available in context (helps debugging problems during LIRGen) diff -r d8ff6f2bcabd -r 09402dddc51e 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 Wed Feb 15 20:05:06 2012 +0100 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompiler.java Wed Feb 15 20:09:25 2012 +0100 @@ -83,10 +83,10 @@ Debug.dump(this, "compiler"); Debug.dump(method, "method"); - return Debug.scope(createScopeName(method), new Callable() { + return Debug.scope(createScopeName(method), graph, new Callable() { public CiTargetMethod call() { final CiAssumptions assumptions = GraalOptions.OptAssumptions ? new CiAssumptions() : null; - final LIR lir = Debug.scope("FrontEnd", graph, new Callable() { + final LIR lir = Debug.scope("FrontEnd", new Callable() { public LIR call() { return emitHIR(graph, assumptions, plan); }