comparison graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java @ 19234:e9e99e6f2c6b

GraalCompiler.emitBackEnd: do not box objects for scope.
author Josef Eisl <josef.eisl@jku.at>
date Tue, 10 Feb 2015 12:17:53 +0100
parents 98967b613c88
children 9f411d79ffc0
comparison
equal deleted inserted replaced
19198:5b75ec42c975 19234:e9e99e6f2c6b
274 public static <T extends CompilationResult> void emitBackEnd(StructuredGraph graph, Object stub, CallingConvention cc, ResolvedJavaMethod installedCodeOwner, Backend backend, 274 public static <T extends CompilationResult> void emitBackEnd(StructuredGraph graph, Object stub, CallingConvention cc, ResolvedJavaMethod installedCodeOwner, Backend backend,
275 TargetDescription target, T compilationResult, CompilationResultBuilderFactory factory, Assumptions assumptions, SchedulePhase schedule, RegisterConfig registerConfig) { 275 TargetDescription target, T compilationResult, CompilationResultBuilderFactory factory, Assumptions assumptions, SchedulePhase schedule, RegisterConfig registerConfig) {
276 try (TimerCloseable a = BackEnd.start()) { 276 try (TimerCloseable a = BackEnd.start()) {
277 LIRGenerationResult lirGen = null; 277 LIRGenerationResult lirGen = null;
278 lirGen = emitLIR(backend, target, schedule, graph, stub, cc, registerConfig); 278 lirGen = emitLIR(backend, target, schedule, graph, stub, cc, registerConfig);
279 try (Scope s = Debug.scope("CodeGen", new Object[]{lirGen, lirGen.getLIR()})) { 279 try (Scope s = Debug.scope("CodeGen", lirGen, lirGen.getLIR())) {
280 emitCode(backend, assumptions, lirGen, compilationResult, installedCodeOwner, factory); 280 emitCode(backend, assumptions, lirGen, compilationResult, installedCodeOwner, factory);
281 } catch (Throwable e) { 281 } catch (Throwable e) {
282 throw Debug.handle(e); 282 throw Debug.handle(e);
283 } 283 }
284 } catch (Throwable e) { 284 } catch (Throwable e) {