Mercurial > hg > truffle
annotate src/share/vm/c1/c1_globals.hpp @ 1407:09e7826ecf01
Can now call to Java code from the VM.
Need to specify a JAR file with the classes from the Maxine subprojects C1X, CRI, and HotSpotVM in the bootclasspath.
See HotSpotVM/README.txt in the Maxine sources for details.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Tue, 11 May 2010 19:24:14 +0200 |
parents | 35069ca331f2 |
children | 55ac38887415 |
rev | line source |
---|---|
0 | 1 /* |
1397
b4776199210f
6943485: JVMTI always on capabilities change code generation too much
never
parents:
342
diff
changeset
|
2 * Copyright 2000-2010 Sun Microsystems, Inc. All Rights Reserved. |
0 | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
20 * CA 95054 USA or visit www.sun.com if you need additional information or | |
21 * have any questions. | |
22 * | |
23 */ | |
24 | |
25 // | |
26 // Defines all global flags used by the client compiler. | |
27 // | |
28 #ifndef TIERED | |
29 #define NOT_TIERED(x) x | |
30 #else | |
31 #define NOT_TIERED(x) | |
32 #endif | |
33 | |
34 #define C1_FLAGS(develop, develop_pd, product, product_pd, notproduct) \ | |
35 \ | |
1406
35069ca331f2
Hooked C1XCompiler class into the system.
Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
parents:
1397
diff
changeset
|
36 product(bool, UseC1X, true, \ |
35069ca331f2
Hooked C1XCompiler class into the system.
Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
parents:
1397
diff
changeset
|
37 "Use C1X instead of C1") \ |
35069ca331f2
Hooked C1XCompiler class into the system.
Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
parents:
1397
diff
changeset
|
38 product(intx, TraceC1X, 0, \ |
35069ca331f2
Hooked C1XCompiler class into the system.
Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
parents:
1397
diff
changeset
|
39 "Trace level for C1X") \ |
0 | 40 /* Printing */ \ |
41 notproduct(bool, PrintC1Statistics, false, \ | |
42 "Print Compiler1 statistics" ) \ | |
43 \ | |
44 notproduct(bool, PrintInitialBlockList, false, \ | |
45 "Print block list of BlockListBuilder") \ | |
46 \ | |
47 notproduct(bool, PrintCFG, false, \ | |
48 "Print control flow graph after each change") \ | |
49 \ | |
50 notproduct(bool, PrintCFG0, false, \ | |
51 "Print control flow graph after construction") \ | |
52 \ | |
53 notproduct(bool, PrintCFG1, false, \ | |
54 "Print control flow graph after optimizations") \ | |
55 \ | |
56 notproduct(bool, PrintCFG2, false, \ | |
57 "Print control flow graph before code generation") \ | |
58 \ | |
59 notproduct(bool, PrintIRDuringConstruction, false, \ | |
60 "Print IR as it's being constructed (helpful for debugging frontend)")\ | |
61 \ | |
62 notproduct(bool, PrintPhiFunctions, false, \ | |
63 "Print phi functions when they are created and simplified") \ | |
64 \ | |
65 notproduct(bool, PrintIR, false, \ | |
66 "Print full intermediate representation after each change") \ | |
67 \ | |
68 notproduct(bool, PrintIR0, false, \ | |
69 "Print full intermediate representation after construction") \ | |
70 \ | |
71 notproduct(bool, PrintIR1, false, \ | |
72 "Print full intermediate representation after optimizations") \ | |
73 \ | |
74 notproduct(bool, PrintIR2, false, \ | |
75 "Print full intermediate representation before code generation") \ | |
76 \ | |
77 notproduct(bool, PrintSimpleStubs, false, \ | |
78 "Print SimpleStubs") \ | |
79 \ | |
80 /* C1 optimizations */ \ | |
81 \ | |
82 develop(bool, UseC1Optimizations, true, \ | |
83 "Turn on C1 optimizations") \ | |
84 \ | |
85 develop(bool, SelectivePhiFunctions, true, \ | |
86 "create phi functions at loop headers only when necessary") \ | |
87 \ | |
88 develop(bool, DoCEE, true, \ | |
89 "Do Conditional Expression Elimination to simplify CFG") \ | |
90 \ | |
91 develop(bool, PrintCEE, false, \ | |
92 "Print Conditional Expression Elimination") \ | |
93 \ | |
94 develop(bool, UseLocalValueNumbering, true, \ | |
95 "Use Local Value Numbering (embedded in GraphBuilder)") \ | |
96 \ | |
97 develop(bool, UseGlobalValueNumbering, true, \ | |
98 "Use Global Value Numbering (separate phase)") \ | |
99 \ | |
100 develop(bool, PrintValueNumbering, false, \ | |
101 "Print Value Numbering") \ | |
102 \ | |
103 product(intx, ValueMapInitialSize, 11, \ | |
104 "Initial size of a value map") \ | |
105 \ | |
106 product(intx, ValueMapMaxLoopSize, 8, \ | |
107 "maximum size of a loop optimized by global value numbering") \ | |
108 \ | |
109 develop(bool, EliminateBlocks, true, \ | |
110 "Eliminate unneccessary basic blocks") \ | |
111 \ | |
112 develop(bool, PrintBlockElimination, false, \ | |
113 "Print basic block elimination") \ | |
114 \ | |
115 develop(bool, EliminateNullChecks, true, \ | |
116 "Eliminate unneccessary null checks") \ | |
117 \ | |
118 develop(bool, PrintNullCheckElimination, false, \ | |
119 "Print null check elimination") \ | |
120 \ | |
121 develop(bool, EliminateFieldAccess, true, \ | |
122 "Optimize field loads and stores") \ | |
123 \ | |
124 develop(bool, InlineMethodsWithExceptionHandlers, true, \ | |
125 "Inline methods containing exception handlers " \ | |
126 "(NOTE: does not work with current backend)") \ | |
127 \ | |
128 develop(bool, InlineSynchronizedMethods, true, \ | |
129 "Inline synchronized methods") \ | |
130 \ | |
131 develop(bool, InlineNIOCheckIndex, true, \ | |
132 "Intrinsify java.nio.Buffer.checkIndex") \ | |
133 \ | |
134 develop(bool, CanonicalizeNodes, true, \ | |
135 "Canonicalize graph nodes") \ | |
136 \ | |
137 develop(bool, CanonicalizeExperimental, false, \ | |
138 "Canonicalize graph nodes, experimental code") \ | |
139 \ | |
140 develop(bool, PrintCanonicalization, false, \ | |
141 "Print graph node canonicalization") \ | |
142 \ | |
143 develop(bool, UseTableRanges, true, \ | |
144 "Faster versions of lookup table using ranges") \ | |
145 \ | |
146 develop(bool, UseFastExceptionHandling, true, \ | |
147 "Faster handling of exceptions") \ | |
148 \ | |
149 develop_pd(bool, RoundFPResults, \ | |
150 "Indicates whether rounding is needed for floating point results")\ | |
151 \ | |
152 develop(intx, NestedInliningSizeRatio, 90, \ | |
153 "Percentage of prev. allowed inline size in recursive inlining") \ | |
154 \ | |
155 notproduct(bool, PrintIRWithLIR, false, \ | |
156 "Print IR instructions with generated LIR") \ | |
157 \ | |
158 notproduct(bool, PrintLIRWithAssembly, false, \ | |
159 "Show LIR instruction with generated assembly") \ | |
160 \ | |
161 develop(bool, CommentedAssembly, trueInDebug, \ | |
162 "Show extra info in PrintNMethods output") \ | |
163 \ | |
164 develop(bool, LIRTracePeephole, false, \ | |
165 "Trace peephole optimizer") \ | |
166 \ | |
167 develop(bool, LIRTraceExecution, false, \ | |
168 "add LIR code which logs the execution of blocks") \ | |
169 \ | |
170 product_pd(bool, LIRFillDelaySlots, \ | |
171 "fill delays on on SPARC with LIR") \ | |
172 \ | |
173 develop_pd(bool, CSEArrayLength, \ | |
174 "Create separate nodes for length in array accesses") \ | |
175 \ | |
176 develop_pd(bool, TwoOperandLIRForm, \ | |
177 "true if LIR requires src1 and dst to match in binary LIR ops") \ | |
178 \ | |
179 develop(intx, TraceLinearScanLevel, 0, \ | |
180 "Debug levels for the linear scan allocator") \ | |
181 \ | |
182 develop(bool, StressLinearScan, false, \ | |
183 "scramble block order used by LinearScan (stress test)") \ | |
184 \ | |
185 product(bool, TimeLinearScan, false, \ | |
186 "detailed timing of LinearScan phases") \ | |
187 \ | |
188 develop(bool, TimeEachLinearScan, false, \ | |
189 "print detailed timing of each LinearScan run") \ | |
190 \ | |
191 develop(bool, CountLinearScan, false, \ | |
192 "collect statistic counters during LinearScan") \ | |
193 \ | |
194 /* C1 variable */ \ | |
195 \ | |
196 develop(bool, C1Breakpoint, false, \ | |
197 "Sets a breakpoint at entry of each compiled method") \ | |
198 \ | |
199 develop(bool, ImplicitDiv0Checks, true, \ | |
200 "Use implicit division by zero checks") \ | |
201 \ | |
202 develop(bool, PinAllInstructions, false, \ | |
203 "All instructions are pinned") \ | |
204 \ | |
205 develop(bool, ValueStackPinStackAll, true, \ | |
206 "Pinning in ValueStack pin everything") \ | |
207 \ | |
208 develop(bool, UseFastNewInstance, true, \ | |
209 "Use fast inlined instance allocation") \ | |
210 \ | |
211 develop(bool, UseFastNewTypeArray, true, \ | |
212 "Use fast inlined type array allocation") \ | |
213 \ | |
214 develop(bool, UseFastNewObjectArray, true, \ | |
215 "Use fast inlined object array allocation") \ | |
216 \ | |
217 develop(bool, UseFastLocking, true, \ | |
218 "Use fast inlined locking code") \ | |
219 \ | |
220 develop(bool, UseSlowPath, false, \ | |
221 "For debugging: test slow cases by always using them") \ | |
222 \ | |
223 develop(bool, GenerateArrayStoreCheck, true, \ | |
224 "Generates code for array store checks") \ | |
225 \ | |
226 develop(bool, DeoptC1, true, \ | |
227 "Use deoptimization in C1") \ | |
228 \ | |
229 develop(bool, DeoptOnAsyncException, true, \ | |
230 "Deoptimize upon Thread.stop(); improves precision of IR") \ | |
231 \ | |
232 develop(bool, PrintBailouts, false, \ | |
233 "Print bailout and its reason") \ | |
234 \ | |
235 develop(bool, TracePatching, false, \ | |
236 "Trace patching of field access on uninitialized classes") \ | |
237 \ | |
238 develop(bool, PatchALot, false, \ | |
239 "Marks all fields as having unloaded classes") \ | |
240 \ | |
241 develop(bool, PrintNotLoaded, false, \ | |
242 "Prints where classes are not loaded during code generation") \ | |
243 \ | |
244 notproduct(bool, VerifyOopMaps, false, \ | |
245 "Adds oopmap verification code to the generated code") \ | |
246 \ | |
247 develop(bool, PrintLIR, false, \ | |
248 "print low-level IR") \ | |
249 \ | |
250 develop(bool, BailoutAfterHIR, false, \ | |
251 "bailout of compilation after building of HIR") \ | |
252 \ | |
253 develop(bool, BailoutAfterLIR, false, \ | |
254 "bailout of compilation after building of LIR") \ | |
255 \ | |
256 develop(bool, BailoutOnExceptionHandlers, false, \ | |
257 "bailout of compilation for methods with exception handlers") \ | |
258 \ | |
259 develop(bool, InstallMethods, true, \ | |
260 "Install methods at the end of successful compilations") \ | |
261 \ | |
262 product(intx, CompilationRepeat, 0, \ | |
263 "Number of times to recompile method before returning result") \ | |
264 \ | |
265 develop(intx, NMethodSizeLimit, (32*K)*wordSize, \ | |
266 "Maximum size of a compiled method.") \ | |
267 \ | |
268 develop(bool, TraceFPUStack, false, \ | |
269 "Trace emulation of the FPU stack (intel only)") \ | |
270 \ | |
271 develop(bool, TraceFPURegisterUsage, false, \ | |
272 "Trace usage of FPU registers at start of blocks (intel only)") \ | |
273 \ | |
274 develop(bool, OptimizeUnsafes, true, \ | |
275 "Optimize raw unsafe ops") \ | |
276 \ | |
277 develop(bool, PrintUnsafeOptimization, false, \ | |
278 "Print optimization of raw unsafe ops") \ | |
279 \ | |
280 develop(intx, InstructionCountCutoff, 37000, \ | |
281 "If GraphBuilder adds this many instructions, bails out") \ | |
282 \ | |
283 product_pd(intx, SafepointPollOffset, \ | |
284 "Offset added to polling address (Intel only)") \ | |
285 \ | |
286 product(bool, UseNewFeature1, false, \ | |
287 "Enable new feature for testing. This is a dummy flag.") \ | |
288 \ | |
289 product(bool, UseNewFeature2, false, \ | |
290 "Enable new feature for testing. This is a dummy flag.") \ | |
291 \ | |
292 product(bool, UseNewFeature3, false, \ | |
293 "Enable new feature for testing. This is a dummy flag.") \ | |
294 \ | |
295 product(bool, UseNewFeature4, false, \ | |
296 "Enable new feature for testing. This is a dummy flag.") \ | |
297 \ | |
298 develop(bool, ComputeExactFPURegisterUsage, true, \ | |
299 "Compute additional live set for fpu registers to simplify fpu stack merge (Intel only)") \ | |
300 \ | |
301 product(bool, Tier1ProfileCalls, true, \ | |
302 "Profile calls when generating code for updating MDOs") \ | |
303 \ | |
304 product(bool, Tier1ProfileVirtualCalls, true, \ | |
305 "Profile virtual calls when generating code for updating MDOs") \ | |
306 \ | |
307 product(bool, Tier1ProfileInlinedCalls, true, \ | |
308 "Profile inlined calls when generating code for updating MDOs") \ | |
309 \ | |
310 product(bool, Tier1ProfileBranches, true, \ | |
311 "Profile branches when generating code for updating MDOs") \ | |
312 \ | |
313 product(bool, Tier1ProfileCheckcasts, true, \ | |
314 "Profile checkcasts when generating code for updating MDOs") \ | |
315 \ | |
316 product(bool, Tier1OptimizeVirtualCallProfiling, true, \ | |
317 "Use CHA and exact type results at call sites when updating MDOs") \ | |
318 \ | |
319 develop(bool, Tier1CountOnly, false, \ | |
320 "Don't schedule tier 2 compiles. Enter VM only") \ | |
321 \ | |
322 develop(bool, PrintCFGToFile, false, \ | |
323 "print control flow graph to a separate file during compilation") \ | |
324 \ | |
325 | |
326 | |
327 // Read default values for c1 globals | |
328 // #include "incls/_c1_globals_pd.hpp.incl" | |
329 | |
330 C1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_NOTPRODUCT_FLAG) |