graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File GRAAL-213 Sdiff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot

graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java

Print this page




 122     protected final Replacements replacements;
 123 
 124     private HotSpotRuntimeInterpreterInterface runtimeInterpreterInterface;
 125     private volatile HotSpotGraphCache cache;
 126 
 127     protected final HotSpotVMConfig config;
 128     private final HotSpotBackend backend;
 129 
 130     protected HotSpotGraalRuntime() {
 131         CompilerToVM toVM = new CompilerToVMImpl();
 132 
 133         // initialize VmToCompiler
 134         VMToCompiler toCompiler = new VMToCompilerImpl(this);
 135 
 136         compilerToVm = toVM;
 137         vmToCompiler = toCompiler;
 138         config = new HotSpotVMConfig();
 139         compilerToVm.initializeConfiguration(config);
 140         config.check();
 141 




 142         if (Boolean.valueOf(System.getProperty("graal.printconfig"))) {
 143             printConfig(config);
 144         }
 145 
 146         target = createTarget();
 147         assert wordKind == null || wordKind.equals(target.wordKind);
 148         wordKind = target.wordKind;
 149 
 150         runtime = createRuntime();
 151 
 152         // Replacements cannot have speculative optimizations since they have
 153         // to be valid for the entire run of the VM.
 154         Assumptions assumptions = new Assumptions(false);
 155         replacements = new HotSpotReplacementsImpl(runtime, assumptions, runtime.getGraalRuntime().getTarget());
 156 
 157         backend = createBackend();
 158         GraalOptions.StackShadowPages = config.stackShadowPages;
 159         if (GraalOptions.CacheGraphs) {
 160             cache = new HotSpotGraphCache();
 161         }




 122     protected final Replacements replacements;
 123 
 124     private HotSpotRuntimeInterpreterInterface runtimeInterpreterInterface;
 125     private volatile HotSpotGraphCache cache;
 126 
 127     protected final HotSpotVMConfig config;
 128     private final HotSpotBackend backend;
 129 
 130     protected HotSpotGraalRuntime() {
 131         CompilerToVM toVM = new CompilerToVMImpl();
 132 
 133         // initialize VmToCompiler
 134         VMToCompiler toCompiler = new VMToCompilerImpl(this);
 135 
 136         compilerToVm = toVM;
 137         vmToCompiler = toCompiler;
 138         config = new HotSpotVMConfig();
 139         compilerToVm.initializeConfiguration(config);
 140         config.check();
 141         
 142         // Set some global options:
 143         GraalOptions.HotSpotPrintCompilation = config.printCompilation;
 144         GraalOptions.HotSpotPrintInlining = config.printInlining;
 145 
 146         if (Boolean.valueOf(System.getProperty("graal.printconfig"))) {
 147             printConfig(config);
 148         }
 149 
 150         target = createTarget();
 151         assert wordKind == null || wordKind.equals(target.wordKind);
 152         wordKind = target.wordKind;
 153 
 154         runtime = createRuntime();
 155 
 156         // Replacements cannot have speculative optimizations since they have
 157         // to be valid for the entire run of the VM.
 158         Assumptions assumptions = new Assumptions(false);
 159         replacements = new HotSpotReplacementsImpl(runtime, assumptions, runtime.getGraalRuntime().getTarget());
 160 
 161         backend = createBackend();
 162         GraalOptions.StackShadowPages = config.stackShadowPages;
 163         if (GraalOptions.CacheGraphs) {
 164             cache = new HotSpotGraphCache();
 165         }


graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File