Mercurial > hg > truffle
annotate src/share/vm/c1/c1_globals.hpp @ 3630:3b18b27b0dd4
IdealGraphVisualizer: When layouting a tree (or forest), do a final down-sweep in the crossing reduction phase. This usually gives a nicer layout for these types of graphs. Also, do a little cleanup and use arrays in the coordinate assignment phase.
author | Peter Hofer <peter.hofer@jku.at> |
---|---|
date | Mon, 14 Nov 2011 15:36:09 +0100 |
parents | 7d9e3ee49ac9 |
children | 54d4c210a34e |
rev | line source |
---|---|
0 | 1 /* |
2426
1d1603768966
7010070: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - second pass
trims
parents:
2192
diff
changeset
|
2 * Copyright (c) 2000, 2011, 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 | |
2192
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
1972
diff
changeset
|
35 #ifdef TARGET_ARCH_arm |
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
1972
diff
changeset
|
36 # include "c1_globals_arm.hpp" |
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
1972
diff
changeset
|
37 #endif |
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
1972
diff
changeset
|
38 #ifdef TARGET_ARCH_ppc |
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
1972
diff
changeset
|
39 # include "c1_globals_ppc.hpp" |
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
1972
diff
changeset
|
40 #endif |
1972 | 41 #ifdef TARGET_OS_FAMILY_linux |
42 # include "c1_globals_linux.hpp" | |
43 #endif | |
44 #ifdef TARGET_OS_FAMILY_solaris | |
45 # include "c1_globals_solaris.hpp" | |
46 #endif | |
47 #ifdef TARGET_OS_FAMILY_windows | |
48 # include "c1_globals_windows.hpp" | |
49 #endif | |
50 | |
0 | 51 // |
52 // Defines all global flags used by the client compiler. | |
53 // | |
54 #define C1_FLAGS(develop, develop_pd, product, product_pd, notproduct) \ | |
55 \ | |
3543
344264424174
Enable debugging of compiler code from Java IDEs. Moved binary to "graal" subdirectory. New flag for starting Graal is just "-graal".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2901
diff
changeset
|
56 product(bool, UseGraal, true, \ |
344264424174
Enable debugging of compiler code from Java IDEs. Moved binary to "graal" subdirectory. New flag for starting Graal is just "-graal".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2901
diff
changeset
|
57 "Use graal instead of C1") \ |
344264424174
Enable debugging of compiler code from Java IDEs. Moved binary to "graal" subdirectory. New flag for starting Graal is just "-graal".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2901
diff
changeset
|
58 product(bool, DebugGraal, true, \ |
344264424174
Enable debugging of compiler code from Java IDEs. Moved binary to "graal" subdirectory. New flag for starting Graal is just "-graal".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2901
diff
changeset
|
59 "Enable JVMTI for the compiler thread") \ |
3551
7d9e3ee49ac9
Made default for GraalBailoutIsFatal "false".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
3544
diff
changeset
|
60 product(bool, GraalBailoutIsFatal, false, \ |
3543
344264424174
Enable debugging of compiler code from Java IDEs. Moved binary to "graal" subdirectory. New flag for starting Graal is just "-graal".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2901
diff
changeset
|
61 "Abort the VM on graal bailout") \ |
3544 | 62 product(bool, BootstrapGraal, true, \ |
3543
344264424174
Enable debugging of compiler code from Java IDEs. Moved binary to "graal" subdirectory. New flag for starting Graal is just "-graal".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2901
diff
changeset
|
63 "Bootstrap graal before running Java main method") \ |
344264424174
Enable debugging of compiler code from Java IDEs. Moved binary to "graal" subdirectory. New flag for starting Graal is just "-graal".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2901
diff
changeset
|
64 product(intx, TraceGraal, 0, \ |
344264424174
Enable debugging of compiler code from Java IDEs. Moved binary to "graal" subdirectory. New flag for starting Graal is just "-graal".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2901
diff
changeset
|
65 "Trace level for graal") \ |
1936
8d88c9ac9247
Correct deopt handler entry. New flag -XX:+TraceSignals. More detailed deopt printing.
Thomas Wuerthinger <wuerthinger@ssw.jku.at>
parents:
1930
diff
changeset
|
66 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
|
67 "Trace signals and implicit exception handling") \ |
0 | 68 /* Printing */ \ |
69 notproduct(bool, PrintC1Statistics, false, \ | |
70 "Print Compiler1 statistics" ) \ | |
71 \ | |
72 notproduct(bool, PrintInitialBlockList, false, \ | |
73 "Print block list of BlockListBuilder") \ | |
74 \ | |
75 notproduct(bool, PrintCFG, false, \ | |
76 "Print control flow graph after each change") \ | |
77 \ | |
78 notproduct(bool, PrintCFG0, false, \ | |
79 "Print control flow graph after construction") \ | |
80 \ | |
81 notproduct(bool, PrintCFG1, false, \ | |
82 "Print control flow graph after optimizations") \ | |
83 \ | |
84 notproduct(bool, PrintCFG2, false, \ | |
85 "Print control flow graph before code generation") \ | |
86 \ | |
87 notproduct(bool, PrintIRDuringConstruction, false, \ | |
88 "Print IR as it's being constructed (helpful for debugging frontend)")\ | |
89 \ | |
1783 | 90 notproduct(bool, PrintPhiFunctions, false, \ |
0 | 91 "Print phi functions when they are created and simplified") \ |
92 \ | |
93 notproduct(bool, PrintIR, false, \ | |
94 "Print full intermediate representation after each change") \ | |
95 \ | |
96 notproduct(bool, PrintIR0, false, \ | |
97 "Print full intermediate representation after construction") \ | |
98 \ | |
99 notproduct(bool, PrintIR1, false, \ | |
100 "Print full intermediate representation after optimizations") \ | |
101 \ | |
102 notproduct(bool, PrintIR2, false, \ | |
103 "Print full intermediate representation before code generation") \ | |
104 \ | |
105 notproduct(bool, PrintSimpleStubs, false, \ | |
106 "Print SimpleStubs") \ | |
107 \ | |
108 /* C1 optimizations */ \ | |
109 \ | |
110 develop(bool, UseC1Optimizations, true, \ | |
111 "Turn on C1 optimizations") \ | |
112 \ | |
113 develop(bool, SelectivePhiFunctions, true, \ | |
114 "create phi functions at loop headers only when necessary") \ | |
115 \ | |
1899 | 116 develop(bool, OptimizeIfOps, true, \ |
117 "Optimize multiple IfOps") \ | |
118 \ | |
0 | 119 develop(bool, DoCEE, true, \ |
120 "Do Conditional Expression Elimination to simplify CFG") \ | |
121 \ | |
122 develop(bool, PrintCEE, false, \ | |
123 "Print Conditional Expression Elimination") \ | |
124 \ | |
125 develop(bool, UseLocalValueNumbering, true, \ | |
126 "Use Local Value Numbering (embedded in GraphBuilder)") \ | |
127 \ | |
128 develop(bool, UseGlobalValueNumbering, true, \ | |
129 "Use Global Value Numbering (separate phase)") \ | |
130 \ | |
131 develop(bool, PrintValueNumbering, false, \ | |
132 "Print Value Numbering") \ | |
133 \ | |
134 product(intx, ValueMapInitialSize, 11, \ | |
135 "Initial size of a value map") \ | |
136 \ | |
137 product(intx, ValueMapMaxLoopSize, 8, \ | |
138 "maximum size of a loop optimized by global value numbering") \ | |
139 \ | |
140 develop(bool, EliminateBlocks, true, \ | |
141 "Eliminate unneccessary basic blocks") \ | |
142 \ | |
143 develop(bool, PrintBlockElimination, false, \ | |
144 "Print basic block elimination") \ | |
145 \ | |
146 develop(bool, EliminateNullChecks, true, \ | |
147 "Eliminate unneccessary null checks") \ | |
148 \ | |
149 develop(bool, PrintNullCheckElimination, false, \ | |
150 "Print null check elimination") \ | |
151 \ | |
152 develop(bool, EliminateFieldAccess, true, \ | |
153 "Optimize field loads and stores") \ | |
154 \ | |
155 develop(bool, InlineMethodsWithExceptionHandlers, true, \ | |
156 "Inline methods containing exception handlers " \ | |
157 "(NOTE: does not work with current backend)") \ | |
158 \ | |
159 develop(bool, InlineSynchronizedMethods, true, \ | |
160 "Inline synchronized methods") \ | |
161 \ | |
162 develop(bool, InlineNIOCheckIndex, true, \ | |
163 "Intrinsify java.nio.Buffer.checkIndex") \ | |
164 \ | |
165 develop(bool, CanonicalizeNodes, true, \ | |
166 "Canonicalize graph nodes") \ | |
167 \ | |
168 develop(bool, CanonicalizeExperimental, false, \ | |
169 "Canonicalize graph nodes, experimental code") \ | |
170 \ | |
171 develop(bool, PrintCanonicalization, false, \ | |
172 "Print graph node canonicalization") \ | |
173 \ | |
174 develop(bool, UseTableRanges, true, \ | |
175 "Faster versions of lookup table using ranges") \ | |
176 \ | |
177 develop(bool, UseFastExceptionHandling, true, \ | |
178 "Faster handling of exceptions") \ | |
179 \ | |
180 develop_pd(bool, RoundFPResults, \ | |
181 "Indicates whether rounding is needed for floating point results")\ | |
182 \ | |
183 develop(intx, NestedInliningSizeRatio, 90, \ | |
184 "Percentage of prev. allowed inline size in recursive inlining") \ | |
185 \ | |
186 notproduct(bool, PrintIRWithLIR, false, \ | |
187 "Print IR instructions with generated LIR") \ | |
188 \ | |
189 notproduct(bool, PrintLIRWithAssembly, false, \ | |
190 "Show LIR instruction with generated assembly") \ | |
191 \ | |
192 develop(bool, CommentedAssembly, trueInDebug, \ | |
193 "Show extra info in PrintNMethods output") \ | |
194 \ | |
195 develop(bool, LIRTracePeephole, false, \ | |
196 "Trace peephole optimizer") \ | |
197 \ | |
198 develop(bool, LIRTraceExecution, false, \ | |
199 "add LIR code which logs the execution of blocks") \ | |
200 \ | |
201 product_pd(bool, LIRFillDelaySlots, \ | |
202 "fill delays on on SPARC with LIR") \ | |
203 \ | |
204 develop_pd(bool, CSEArrayLength, \ | |
205 "Create separate nodes for length in array accesses") \ | |
206 \ | |
207 develop_pd(bool, TwoOperandLIRForm, \ | |
208 "true if LIR requires src1 and dst to match in binary LIR ops") \ | |
209 \ | |
210 develop(intx, TraceLinearScanLevel, 0, \ | |
211 "Debug levels for the linear scan allocator") \ | |
212 \ | |
213 develop(bool, StressLinearScan, false, \ | |
214 "scramble block order used by LinearScan (stress test)") \ | |
215 \ | |
216 product(bool, TimeLinearScan, false, \ | |
217 "detailed timing of LinearScan phases") \ | |
218 \ | |
219 develop(bool, TimeEachLinearScan, false, \ | |
220 "print detailed timing of each LinearScan run") \ | |
221 \ | |
222 develop(bool, CountLinearScan, false, \ | |
223 "collect statistic counters during LinearScan") \ | |
224 \ | |
225 /* C1 variable */ \ | |
226 \ | |
227 develop(bool, C1Breakpoint, false, \ | |
228 "Sets a breakpoint at entry of each compiled method") \ | |
229 \ | |
230 develop(bool, ImplicitDiv0Checks, true, \ | |
231 "Use implicit division by zero checks") \ | |
232 \ | |
233 develop(bool, PinAllInstructions, false, \ | |
234 "All instructions are pinned") \ | |
235 \ | |
236 develop(bool, ValueStackPinStackAll, true, \ | |
237 "Pinning in ValueStack pin everything") \ | |
238 \ | |
239 develop(bool, UseFastNewInstance, true, \ | |
240 "Use fast inlined instance allocation") \ | |
241 \ | |
242 develop(bool, UseFastNewTypeArray, true, \ | |
243 "Use fast inlined type array allocation") \ | |
244 \ | |
245 develop(bool, UseFastNewObjectArray, true, \ | |
246 "Use fast inlined object array allocation") \ | |
247 \ | |
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
|
248 product(bool, UseFastLocking, true, \ |
0 | 249 "Use fast inlined locking code") \ |
250 \ | |
251 develop(bool, UseSlowPath, false, \ | |
252 "For debugging: test slow cases by always using them") \ | |
253 \ | |
254 develop(bool, GenerateArrayStoreCheck, true, \ | |
255 "Generates code for array store checks") \ | |
256 \ | |
257 develop(bool, DeoptC1, true, \ | |
258 "Use deoptimization in C1") \ | |
259 \ | |
260 develop(bool, PrintBailouts, false, \ | |
261 "Print bailout and its reason") \ | |
262 \ | |
263 develop(bool, TracePatching, false, \ | |
264 "Trace patching of field access on uninitialized classes") \ | |
265 \ | |
266 develop(bool, PatchALot, false, \ | |
267 "Marks all fields as having unloaded classes") \ | |
268 \ | |
269 develop(bool, PrintNotLoaded, false, \ | |
270 "Prints where classes are not loaded during code generation") \ | |
271 \ | |
272 notproduct(bool, VerifyOopMaps, false, \ | |
273 "Adds oopmap verification code to the generated code") \ | |
274 \ | |
275 develop(bool, PrintLIR, false, \ | |
276 "print low-level IR") \ | |
277 \ | |
278 develop(bool, BailoutAfterHIR, false, \ | |
279 "bailout of compilation after building of HIR") \ | |
280 \ | |
281 develop(bool, BailoutAfterLIR, false, \ | |
282 "bailout of compilation after building of LIR") \ | |
283 \ | |
284 develop(bool, BailoutOnExceptionHandlers, false, \ | |
285 "bailout of compilation for methods with exception handlers") \ | |
286 \ | |
287 develop(bool, InstallMethods, true, \ | |
288 "Install methods at the end of successful compilations") \ | |
289 \ | |
290 product(intx, CompilationRepeat, 0, \ | |
291 "Number of times to recompile method before returning result") \ | |
292 \ | |
2560
8902c4c20c69
increase max nmethod size, required for dacapo jython
Lukas Stadler <lukas.stadler@jku.at>
parents:
2491
diff
changeset
|
293 develop(intx, NMethodSizeLimit, (64*K)*wordSize, \ |
0 | 294 "Maximum size of a compiled method.") \ |
295 \ | |
296 develop(bool, TraceFPUStack, false, \ | |
297 "Trace emulation of the FPU stack (intel only)") \ | |
298 \ | |
299 develop(bool, TraceFPURegisterUsage, false, \ | |
300 "Trace usage of FPU registers at start of blocks (intel only)") \ | |
301 \ | |
302 develop(bool, OptimizeUnsafes, true, \ | |
303 "Optimize raw unsafe ops") \ | |
304 \ | |
305 develop(bool, PrintUnsafeOptimization, false, \ | |
306 "Print optimization of raw unsafe ops") \ | |
307 \ | |
308 develop(intx, InstructionCountCutoff, 37000, \ | |
309 "If GraphBuilder adds this many instructions, bails out") \ | |
310 \ | |
311 product_pd(intx, SafepointPollOffset, \ | |
312 "Offset added to polling address (Intel only)") \ | |
313 \ | |
314 develop(bool, ComputeExactFPURegisterUsage, true, \ | |
315 "Compute additional live set for fpu registers to simplify fpu stack merge (Intel only)") \ | |
316 \ | |
1783 | 317 product(bool, C1ProfileCalls, true, \ |
0 | 318 "Profile calls when generating code for updating MDOs") \ |
319 \ | |
1783 | 320 product(bool, C1ProfileVirtualCalls, true, \ |
0 | 321 "Profile virtual calls when generating code for updating MDOs") \ |
322 \ | |
1783 | 323 product(bool, C1ProfileInlinedCalls, true, \ |
0 | 324 "Profile inlined calls when generating code for updating MDOs") \ |
325 \ | |
1783 | 326 product(bool, C1ProfileBranches, true, \ |
0 | 327 "Profile branches when generating code for updating MDOs") \ |
328 \ | |
1783 | 329 product(bool, C1ProfileCheckcasts, true, \ |
0 | 330 "Profile checkcasts when generating code for updating MDOs") \ |
331 \ | |
1783 | 332 product(bool, C1OptimizeVirtualCallProfiling, true, \ |
333 "Use CHA and exact type results at call sites when updating MDOs")\ | |
0 | 334 \ |
1783 | 335 product(bool, C1UpdateMethodData, trueInTiered, \ |
336 "Update methodDataOops in Tier1-generated code") \ | |
0 | 337 \ |
338 develop(bool, PrintCFGToFile, false, \ | |
339 "print control flow graph to a separate file during compilation") \ | |
340 \ | |
341 | |
342 | |
343 // Read default values for c1 globals | |
344 | |
345 C1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_NOTPRODUCT_FLAG) | |
1972 | 346 |
347 #endif // SHARE_VM_C1_C1_GLOBALS_HPP |