comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java @ 12362:f53dc8bbb88c

refactored isReexecutable(), getKilledLocations() and canDeoptimize() out of MetaAccessProvider into ForeignCallsProvider (GRAAL-511)
author Doug Simon <doug.simon@oracle.com>
date Sat, 12 Oct 2013 00:31:37 +0200
parents 8bc017616cb7
children 5124eeec1a7b 7421885a2b9d
comparison
equal deleted inserted replaced
12361:ec57cc36371e 12362:f53dc8bbb88c
178 } 178 }
179 } 179 }
180 } 180 }
181 181
182 final HotSpotRuntime runtime = graalRuntime.getCapability(HotSpotRuntime.class); 182 final HotSpotRuntime runtime = graalRuntime.getCapability(HotSpotRuntime.class);
183 assert VerifyOptionsPhase.checkOptions(runtime); 183 assert VerifyOptionsPhase.checkOptions(runtime, runtime);
184 184
185 // Install intrinsics. 185 // Install intrinsics.
186 final Replacements replacements = graalRuntime.getCapability(Replacements.class); 186 final Replacements replacements = graalRuntime.getCapability(Replacements.class);
187 if (Intrinsify.getValue()) { 187 if (Intrinsify.getValue()) {
188 Debug.scope("RegisterReplacements", new Object[]{new DebugDumpScope("RegisterReplacements")}, new Runnable() { 188 Debug.scope("RegisterReplacements", new Object[]{new DebugDumpScope("RegisterReplacements")}, new Runnable() {
685 return new LocalImpl(name, type, holder, bciStart, bciEnd, slot); 685 return new LocalImpl(name, type, holder, bciStart, bciEnd, slot);
686 } 686 }
687 687
688 public PhasePlan createPhasePlan(OptimisticOptimizations optimisticOpts, boolean onStackReplacement) { 688 public PhasePlan createPhasePlan(OptimisticOptimizations optimisticOpts, boolean onStackReplacement) {
689 PhasePlan phasePlan = new PhasePlan(); 689 PhasePlan phasePlan = new PhasePlan();
690 phasePlan.addPhase(PhasePosition.AFTER_PARSING, new GraphBuilderPhase(graalRuntime.getRuntime(), GraphBuilderConfiguration.getDefault(), optimisticOpts)); 690 phasePlan.addPhase(PhasePosition.AFTER_PARSING, new GraphBuilderPhase(graalRuntime.getRuntime(), graalRuntime.getRuntime(), GraphBuilderConfiguration.getDefault(), optimisticOpts));
691 if (onStackReplacement) { 691 if (onStackReplacement) {
692 phasePlan.addPhase(PhasePosition.AFTER_PARSING, new OnStackReplacementPhase()); 692 phasePlan.addPhase(PhasePosition.AFTER_PARSING, new OnStackReplacementPhase());
693 } 693 }
694 return phasePlan; 694 return phasePlan;
695 } 695 }