Mercurial > hg > graal-compiler
annotate src/share/vm/c1/c1_globals.hpp @ 2182:9569fdf936ff
Made merge compile.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Wed, 16 Feb 2011 14:21:52 +0100 |
parents | 06f017f7daa7 |
children | 0cd39a385a72 |
rev | line source |
---|---|
0 | 1 /* |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1397
diff
changeset
|
2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. 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 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1397
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1397
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1397
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
1972 | 25 #ifndef SHARE_VM_C1_C1_GLOBALS_HPP |
26 #define SHARE_VM_C1_C1_GLOBALS_HPP | |
27 | |
28 #include "runtime/globals.hpp" | |
29 #ifdef TARGET_ARCH_x86 | |
30 # include "c1_globals_x86.hpp" | |
31 #endif | |
32 #ifdef TARGET_ARCH_sparc | |
33 # include "c1_globals_sparc.hpp" | |
34 #endif | |
35 #ifdef TARGET_OS_FAMILY_linux | |
36 # include "c1_globals_linux.hpp" | |
37 #endif | |
38 #ifdef TARGET_OS_FAMILY_solaris | |
39 # include "c1_globals_solaris.hpp" | |
40 #endif | |
41 #ifdef TARGET_OS_FAMILY_windows | |
42 # include "c1_globals_windows.hpp" | |
43 #endif | |
44 | |
0 | 45 // |
46 // Defines all global flags used by the client compiler. | |
47 // | |
48 #define C1_FLAGS(develop, develop_pd, product, product_pd, notproduct) \ | |
49 \ | |
1418
55ac38887415
modifications for linux: argument register layout, makefile
Lukas Stadler <lukas.stadler@jku.at>
parents:
1406
diff
changeset
|
50 product(bool, UseC1X, false, \ |
1406
35069ca331f2
Hooked C1XCompiler class into the system.
Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
parents:
1397
diff
changeset
|
51 "Use C1X instead of C1") \ |
1939
b7fb5f1e0747
Two new flags: -XX:MaxCompilationID (to enable debugging binary search for problematic method) and -XX:C1XBailoutIsFatal.
Thomas Wuerthinger <wuerthinger@ssw.jku.at>
parents:
1936
diff
changeset
|
52 product(bool, C1XBailoutIsFatal, true, \ |
b7fb5f1e0747
Two new flags: -XX:MaxCompilationID (to enable debugging binary search for problematic method) and -XX:C1XBailoutIsFatal.
Thomas Wuerthinger <wuerthinger@ssw.jku.at>
parents:
1936
diff
changeset
|
53 "Abort the VM on C1X bailout") \ |
1454
7cf1952ec5fb
Added flag -XX:BootstrapC1X that precompiles Object::<init> and then every method in the compilation queue until it is empty.
Thomas Wuerthinger <wuerthinger@ssw.jku.at>
parents:
1418
diff
changeset
|
54 product(bool, BootstrapC1X, false, \ |
7cf1952ec5fb
Added flag -XX:BootstrapC1X that precompiles Object::<init> and then every method in the compilation queue until it is empty.
Thomas Wuerthinger <wuerthinger@ssw.jku.at>
parents:
1418
diff
changeset
|
55 "Bootstrap C1X before running Java main method") \ |
1418
55ac38887415
modifications for linux: argument register layout, makefile
Lukas Stadler <lukas.stadler@jku.at>
parents:
1406
diff
changeset
|
56 product(intx, TraceC1X, 0, \ |
1406
35069ca331f2
Hooked C1XCompiler class into the system.
Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
parents:
1397
diff
changeset
|
57 "Trace level for C1X") \ |
1936
8d88c9ac9247
Correct deopt handler entry. New flag -XX:+TraceSignals. More detailed deopt printing.
Thomas Wuerthinger <wuerthinger@ssw.jku.at>
parents:
1930
diff
changeset
|
58 product(bool, TraceSignals, false, \ |
8d88c9ac9247
Correct deopt handler entry. New flag -XX:+TraceSignals. More detailed deopt printing.
Thomas Wuerthinger <wuerthinger@ssw.jku.at>
parents:
1930
diff
changeset
|
59 "Trace signals and implicit exception handling") \ |
0 | 60 /* Printing */ \ |
61 notproduct(bool, PrintC1Statistics, false, \ | |
62 "Print Compiler1 statistics" ) \ | |
63 \ | |
64 notproduct(bool, PrintInitialBlockList, false, \ | |
65 "Print block list of BlockListBuilder") \ | |
66 \ | |
67 notproduct(bool, PrintCFG, false, \ | |
68 "Print control flow graph after each change") \ | |
69 \ | |
70 notproduct(bool, PrintCFG0, false, \ | |
71 "Print control flow graph after construction") \ | |
72 \ | |
73 notproduct(bool, PrintCFG1, false, \ | |
74 "Print control flow graph after optimizations") \ | |
75 \ | |
76 notproduct(bool, PrintCFG2, false, \ | |
77 "Print control flow graph before code generation") \ | |
78 \ | |
79 notproduct(bool, PrintIRDuringConstruction, false, \ | |
80 "Print IR as it's being constructed (helpful for debugging frontend)")\ | |
81 \ | |
1783 | 82 notproduct(bool, PrintPhiFunctions, false, \ |
0 | 83 "Print phi functions when they are created and simplified") \ |
84 \ | |
85 notproduct(bool, PrintIR, false, \ | |
86 "Print full intermediate representation after each change") \ | |
87 \ | |
88 notproduct(bool, PrintIR0, false, \ | |
89 "Print full intermediate representation after construction") \ | |
90 \ | |
91 notproduct(bool, PrintIR1, false, \ | |
92 "Print full intermediate representation after optimizations") \ | |
93 \ | |
94 notproduct(bool, PrintIR2, false, \ | |
95 "Print full intermediate representation before code generation") \ | |
96 \ | |
97 notproduct(bool, PrintSimpleStubs, false, \ | |
98 "Print SimpleStubs") \ | |
99 \ | |
100 /* C1 optimizations */ \ | |
101 \ | |
102 develop(bool, UseC1Optimizations, true, \ | |
103 "Turn on C1 optimizations") \ | |
104 \ | |
105 develop(bool, SelectivePhiFunctions, true, \ | |
106 "create phi functions at loop headers only when necessary") \ | |
107 \ | |
1899 | 108 develop(bool, OptimizeIfOps, true, \ |
109 "Optimize multiple IfOps") \ | |
110 \ | |
0 | 111 develop(bool, DoCEE, true, \ |
112 "Do Conditional Expression Elimination to simplify CFG") \ | |
113 \ | |
114 develop(bool, PrintCEE, false, \ | |
115 "Print Conditional Expression Elimination") \ | |
116 \ | |
117 develop(bool, UseLocalValueNumbering, true, \ | |
118 "Use Local Value Numbering (embedded in GraphBuilder)") \ | |
119 \ | |
120 develop(bool, UseGlobalValueNumbering, true, \ | |
121 "Use Global Value Numbering (separate phase)") \ | |
122 \ | |
123 develop(bool, PrintValueNumbering, false, \ | |
124 "Print Value Numbering") \ | |
125 \ | |
126 product(intx, ValueMapInitialSize, 11, \ | |
127 "Initial size of a value map") \ | |
128 \ | |
129 product(intx, ValueMapMaxLoopSize, 8, \ | |
130 "maximum size of a loop optimized by global value numbering") \ | |
131 \ | |
132 develop(bool, EliminateBlocks, true, \ | |
133 "Eliminate unneccessary basic blocks") \ | |
134 \ | |
135 develop(bool, PrintBlockElimination, false, \ | |
136 "Print basic block elimination") \ | |
137 \ | |
138 develop(bool, EliminateNullChecks, true, \ | |
139 "Eliminate unneccessary null checks") \ | |
140 \ | |
141 develop(bool, PrintNullCheckElimination, false, \ | |
142 "Print null check elimination") \ | |
143 \ | |
144 develop(bool, EliminateFieldAccess, true, \ | |
145 "Optimize field loads and stores") \ | |
146 \ | |
147 develop(bool, InlineMethodsWithExceptionHandlers, true, \ | |
148 "Inline methods containing exception handlers " \ | |
149 "(NOTE: does not work with current backend)") \ | |
150 \ | |
151 develop(bool, InlineSynchronizedMethods, true, \ | |
152 "Inline synchronized methods") \ | |
153 \ | |
154 develop(bool, InlineNIOCheckIndex, true, \ | |
155 "Intrinsify java.nio.Buffer.checkIndex") \ | |
156 \ | |
157 develop(bool, CanonicalizeNodes, true, \ | |
158 "Canonicalize graph nodes") \ | |
159 \ | |
160 develop(bool, CanonicalizeExperimental, false, \ | |
161 "Canonicalize graph nodes, experimental code") \ | |
162 \ | |
163 develop(bool, PrintCanonicalization, false, \ | |
164 "Print graph node canonicalization") \ | |
165 \ | |
166 develop(bool, UseTableRanges, true, \ | |
167 "Faster versions of lookup table using ranges") \ | |
168 \ | |
169 develop(bool, UseFastExceptionHandling, true, \ | |
170 "Faster handling of exceptions") \ | |
171 \ | |
172 develop_pd(bool, RoundFPResults, \ | |
173 "Indicates whether rounding is needed for floating point results")\ | |
174 \ | |
175 develop(intx, NestedInliningSizeRatio, 90, \ | |
176 "Percentage of prev. allowed inline size in recursive inlining") \ | |
177 \ | |
178 notproduct(bool, PrintIRWithLIR, false, \ | |
179 "Print IR instructions with generated LIR") \ | |
180 \ | |
181 notproduct(bool, PrintLIRWithAssembly, false, \ | |
182 "Show LIR instruction with generated assembly") \ | |
183 \ | |
184 develop(bool, CommentedAssembly, trueInDebug, \ | |
185 "Show extra info in PrintNMethods output") \ | |
186 \ | |
187 develop(bool, LIRTracePeephole, false, \ | |
188 "Trace peephole optimizer") \ | |
189 \ | |
190 develop(bool, LIRTraceExecution, false, \ | |
191 "add LIR code which logs the execution of blocks") \ | |
192 \ | |
193 product_pd(bool, LIRFillDelaySlots, \ | |
194 "fill delays on on SPARC with LIR") \ | |
195 \ | |
196 develop_pd(bool, CSEArrayLength, \ | |
197 "Create separate nodes for length in array accesses") \ | |
198 \ | |
199 develop_pd(bool, TwoOperandLIRForm, \ | |
200 "true if LIR requires src1 and dst to match in binary LIR ops") \ | |
201 \ | |
202 develop(intx, TraceLinearScanLevel, 0, \ | |
203 "Debug levels for the linear scan allocator") \ | |
204 \ | |
205 develop(bool, StressLinearScan, false, \ | |
206 "scramble block order used by LinearScan (stress test)") \ | |
207 \ | |
208 product(bool, TimeLinearScan, false, \ | |
209 "detailed timing of LinearScan phases") \ | |
210 \ | |
211 develop(bool, TimeEachLinearScan, false, \ | |
212 "print detailed timing of each LinearScan run") \ | |
213 \ | |
214 develop(bool, CountLinearScan, false, \ | |
215 "collect statistic counters during LinearScan") \ | |
216 \ | |
217 /* C1 variable */ \ | |
218 \ | |
219 develop(bool, C1Breakpoint, false, \ | |
220 "Sets a breakpoint at entry of each compiled method") \ | |
221 \ | |
222 develop(bool, ImplicitDiv0Checks, true, \ | |
223 "Use implicit division by zero checks") \ | |
224 \ | |
225 develop(bool, PinAllInstructions, false, \ | |
226 "All instructions are pinned") \ | |
227 \ | |
228 develop(bool, ValueStackPinStackAll, true, \ | |
229 "Pinning in ValueStack pin everything") \ | |
230 \ | |
231 develop(bool, UseFastNewInstance, true, \ | |
232 "Use fast inlined instance allocation") \ | |
233 \ | |
234 develop(bool, UseFastNewTypeArray, true, \ | |
235 "Use fast inlined type array allocation") \ | |
236 \ | |
237 develop(bool, UseFastNewObjectArray, true, \ | |
238 "Use fast inlined object array allocation") \ | |
239 \ | |
1942
00bc9eaf0e24
Support for -XX:+UseFastLocking flag. Fixed monitor enter XIR template for correct debug info at the runtime call.
Thomas Wuerthinger <wuerthinger@ssw.jku.at>
parents:
1939
diff
changeset
|
240 product(bool, UseFastLocking, true, \ |
0 | 241 "Use fast inlined locking code") \ |
242 \ | |
243 develop(bool, UseSlowPath, false, \ | |
244 "For debugging: test slow cases by always using them") \ | |
245 \ | |
246 develop(bool, GenerateArrayStoreCheck, true, \ | |
247 "Generates code for array store checks") \ | |
248 \ | |
249 develop(bool, DeoptC1, true, \ | |
250 "Use deoptimization in C1") \ | |
251 \ | |
252 develop(bool, PrintBailouts, false, \ | |
253 "Print bailout and its reason") \ | |
254 \ | |
255 develop(bool, TracePatching, false, \ | |
256 "Trace patching of field access on uninitialized classes") \ | |
257 \ | |
258 develop(bool, PatchALot, false, \ | |
259 "Marks all fields as having unloaded classes") \ | |
260 \ | |
261 develop(bool, PrintNotLoaded, false, \ | |
262 "Prints where classes are not loaded during code generation") \ | |
263 \ | |
264 notproduct(bool, VerifyOopMaps, false, \ | |
265 "Adds oopmap verification code to the generated code") \ | |
266 \ | |
267 develop(bool, PrintLIR, false, \ | |
268 "print low-level IR") \ | |
269 \ | |
270 develop(bool, BailoutAfterHIR, false, \ | |
271 "bailout of compilation after building of HIR") \ | |
272 \ | |
273 develop(bool, BailoutAfterLIR, false, \ | |
274 "bailout of compilation after building of LIR") \ | |
275 \ | |
276 develop(bool, BailoutOnExceptionHandlers, false, \ | |
277 "bailout of compilation for methods with exception handlers") \ | |
278 \ | |
279 develop(bool, InstallMethods, true, \ | |
280 "Install methods at the end of successful compilations") \ | |
281 \ | |
282 product(intx, CompilationRepeat, 0, \ | |
283 "Number of times to recompile method before returning result") \ | |
284 \ | |
285 develop(intx, NMethodSizeLimit, (32*K)*wordSize, \ | |
286 "Maximum size of a compiled method.") \ | |
287 \ | |
288 develop(bool, TraceFPUStack, false, \ | |
289 "Trace emulation of the FPU stack (intel only)") \ | |
290 \ | |
291 develop(bool, TraceFPURegisterUsage, false, \ | |
292 "Trace usage of FPU registers at start of blocks (intel only)") \ | |
293 \ | |
294 develop(bool, OptimizeUnsafes, true, \ | |
295 "Optimize raw unsafe ops") \ | |
296 \ | |
297 develop(bool, PrintUnsafeOptimization, false, \ | |
298 "Print optimization of raw unsafe ops") \ | |
299 \ | |
300 develop(intx, InstructionCountCutoff, 37000, \ | |
301 "If GraphBuilder adds this many instructions, bails out") \ | |
302 \ | |
303 product_pd(intx, SafepointPollOffset, \ | |
304 "Offset added to polling address (Intel only)") \ | |
305 \ | |
306 develop(bool, ComputeExactFPURegisterUsage, true, \ | |
307 "Compute additional live set for fpu registers to simplify fpu stack merge (Intel only)") \ | |
308 \ | |
1783 | 309 product(bool, C1ProfileCalls, true, \ |
0 | 310 "Profile calls when generating code for updating MDOs") \ |
311 \ | |
1783 | 312 product(bool, C1ProfileVirtualCalls, true, \ |
0 | 313 "Profile virtual calls when generating code for updating MDOs") \ |
314 \ | |
1783 | 315 product(bool, C1ProfileInlinedCalls, true, \ |
0 | 316 "Profile inlined calls when generating code for updating MDOs") \ |
317 \ | |
1783 | 318 product(bool, C1ProfileBranches, true, \ |
0 | 319 "Profile branches when generating code for updating MDOs") \ |
320 \ | |
1783 | 321 product(bool, C1ProfileCheckcasts, true, \ |
0 | 322 "Profile checkcasts when generating code for updating MDOs") \ |
323 \ | |
1783 | 324 product(bool, C1OptimizeVirtualCallProfiling, true, \ |
325 "Use CHA and exact type results at call sites when updating MDOs")\ | |
0 | 326 \ |
1783 | 327 product(bool, C1UpdateMethodData, trueInTiered, \ |
328 "Update methodDataOops in Tier1-generated code") \ | |
0 | 329 \ |
330 develop(bool, PrintCFGToFile, false, \ | |
331 "print control flow graph to a separate file during compilation") \ | |
332 \ | |
333 | |
334 | |
335 // Read default values for c1 globals | |
336 | |
337 C1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_NOTPRODUCT_FLAG) | |
1972 | 338 |
339 #endif // SHARE_VM_C1_C1_GLOBALS_HPP |