Mercurial > hg > graal-compiler
comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/Compiler.java @ 1465:2c754f3a2722
Inlining of static final field values. Java mirror instead of VmID. Support for PrintMetrics option.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Thu, 18 Nov 2010 17:27:43 +0100 |
parents | dc114f680d9c |
children | ef7761803480 |
comparison
equal
deleted
inserted
replaced
1463:7bc14f75a077 | 1465:2c754f3a2722 |
---|---|
54 | 54 |
55 public static class ShutdownThread extends Thread { | 55 public static class ShutdownThread extends Thread { |
56 @Override | 56 @Override |
57 public void run() { | 57 public void run() { |
58 VMExitsNative.compileMethods = false; | 58 VMExitsNative.compileMethods = false; |
59 if (C1XOptions.PrintMetrics) { | |
60 C1XMetrics.print(); | |
61 } | |
59 if (C1XOptions.PrintTimers) { | 62 if (C1XOptions.PrintTimers) { |
60 C1XTimers.print(); | 63 C1XTimers.print(); |
61 } | 64 } |
62 } | 65 } |
63 } | 66 } |
154 } | 157 } |
155 compiler = new C1XCompiler(runtime, target, generator, registerConfig); | 158 compiler = new C1XCompiler(runtime, target, generator, registerConfig); |
156 | 159 |
157 // these options are important - c1x4hotspot will not generate correct code without them | 160 // these options are important - c1x4hotspot will not generate correct code without them |
158 C1XOptions.GenSpecialDivChecks = true; | 161 C1XOptions.GenSpecialDivChecks = true; |
159 C1XOptions.AlignCallsForPatching = true; | |
160 C1XOptions.NullCheckUniquePc = true; | 162 C1XOptions.NullCheckUniquePc = true; |
161 C1XOptions.invokeinterfaceTemplatePos = true; | 163 C1XOptions.invokeinterfaceTemplatePos = true; |
162 C1XOptions.StackShadowPages = config.stackShadowPages; | 164 C1XOptions.StackShadowPages = config.stackShadowPages; |
163 } | 165 } |
164 | 166 |