Mercurial > hg > graal-compiler
changeset 21186:cdb65346129d
GraalCompiler: scope for LIRGenerationPhase.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Tue, 21 Apr 2015 17:52:26 +0200 |
parents | 2d9735b5a373 |
children | f74b9f898cf2 |
files | graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java Tue Apr 28 11:54:06 2015 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java Tue Apr 21 17:52:26 2015 +0200 @@ -293,7 +293,11 @@ // LIR generation LIRGenerationContext context = new LIRGenerationContext(lirGen, nodeLirGen, graph, schedule); - new LIRGenerationPhase().apply(target, lirGenRes, codeEmittingOrder, linearScanOrder, context); + try (Scope s = Debug.scope("LIRGeneration", nodeLirGen, lir)) { + new LIRGenerationPhase().apply(target, lirGenRes, codeEmittingOrder, linearScanOrder, context); + } catch (Throwable e) { + throw Debug.handle(e); + } try (Scope s = Debug.scope("LIRStages", nodeLirGen, lir)) { return emitLowLevel(target, codeEmittingOrder, linearScanOrder, lirGenRes, lirGen, lirSuites);