Mercurial > hg > graal-jvmci-8
diff c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/Compiler.java @ 1419:7bf6a77b9c5a
implement recent safepoint & exceptionobject ci changes, HotSpotVMConfig
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Mon, 12 Jul 2010 15:05:17 -0700 |
parents | 55ac38887415 |
children | 44efca8a02d6 |
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/Compiler.java Fri Jul 09 16:33:03 2010 -0700 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/Compiler.java Mon Jul 12 15:05:17 2010 -0700 @@ -51,13 +51,14 @@ private static CiCompiler createCompiler() { - final HotSpotRuntime runtime = new HotSpotRuntime(); - final RiXirGenerator generator = new HotSpotXirGenerator(); + final HotSpotVMConfig config = VMEntries.getConfiguration(); + final HotSpotRuntime runtime = new HotSpotRuntime(config); + final RiXirGenerator generator = new HotSpotXirGenerator(config); final int wordSize = 8; final int stackFrameAlignment = 8; final int pageSize = 1024; - final RiRegisterConfig config = new HotSpotRegisterConfig(System.getProperty("os.name").startsWith("Windows")); - final CiTarget target = new CiTarget(new AMD64(), config, true, wordSize, wordSize, wordSize, stackFrameAlignment, pageSize, wordSize, wordSize, 16); + final RiRegisterConfig registerConfig = new HotSpotRegisterConfig(config); + final CiTarget target = new CiTarget(new AMD64(), registerConfig, true, wordSize, wordSize, wordSize, stackFrameAlignment, pageSize, wordSize, wordSize, 16); final CiCompiler compiler = new C1XCompiler(runtime, target, generator); C1XOptions.setOptimizationLevel(3);