comparison 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
comparison
equal deleted inserted replaced
1418:55ac38887415 1419:7bf6a77b9c5a
49 } 49 }
50 50
51 51
52 private static CiCompiler createCompiler() { 52 private static CiCompiler createCompiler() {
53 53
54 final HotSpotRuntime runtime = new HotSpotRuntime(); 54 final HotSpotVMConfig config = VMEntries.getConfiguration();
55 final RiXirGenerator generator = new HotSpotXirGenerator(); 55 final HotSpotRuntime runtime = new HotSpotRuntime(config);
56 final RiXirGenerator generator = new HotSpotXirGenerator(config);
56 final int wordSize = 8; 57 final int wordSize = 8;
57 final int stackFrameAlignment = 8; 58 final int stackFrameAlignment = 8;
58 final int pageSize = 1024; 59 final int pageSize = 1024;
59 final RiRegisterConfig config = new HotSpotRegisterConfig(System.getProperty("os.name").startsWith("Windows")); 60 final RiRegisterConfig registerConfig = new HotSpotRegisterConfig(config);
60 final CiTarget target = new CiTarget(new AMD64(), config, true, wordSize, wordSize, wordSize, stackFrameAlignment, pageSize, wordSize, wordSize, 16); 61 final CiTarget target = new CiTarget(new AMD64(), registerConfig, true, wordSize, wordSize, wordSize, stackFrameAlignment, pageSize, wordSize, wordSize, 16);
61 final CiCompiler compiler = new C1XCompiler(runtime, target, generator); 62 final CiCompiler compiler = new C1XCompiler(runtime, target, generator);
62 63
63 C1XOptions.setOptimizationLevel(3); 64 C1XOptions.setOptimizationLevel(3);
64 C1XOptions.TraceBytecodeParserLevel = 4; 65 C1XOptions.TraceBytecodeParserLevel = 4;
65 C1XOptions.PrintCFGToFile = false; 66 C1XOptions.PrintCFGToFile = false;