Mercurial > hg > graal-jvmci-8
annotate src/share/vm/c1/c1_globals.hpp @ 7125:1baf7f1e3f23
decoupled C++ Graal runtime from C1
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 03 Dec 2012 15:32:17 +0100 |
parents | 7d815d842ee0 |
children | 5d0bb7d52783 |
rev | line source |
---|---|
0 | 1 /* |
6633
a5dd6e3ef9f3
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
3960
diff
changeset
|
2 * Copyright (c) 2000, 2012, 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 | |
3960 | 50 #ifdef TARGET_OS_FAMILY_bsd |
51 # include "c1_globals_bsd.hpp" | |
52 #endif | |
1972 | 53 |
0 | 54 // |
55 // Defines all global flags used by the client compiler. | |
56 // | |
57 #define C1_FLAGS(develop, develop_pd, product, product_pd, notproduct) \ | |
58 \ | |
1936
8d88c9ac9247
Correct deopt handler entry. New flag -XX:+TraceSignals. More detailed deopt printing.
Thomas Wuerthinger <wuerthinger@ssw.jku.at>
parents:
1930
diff
changeset
|
59 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
|
60 "Trace signals and implicit exception handling") \ |
0 | 61 /* Printing */ \ |
62 notproduct(bool, PrintC1Statistics, false, \ | |
63 "Print Compiler1 statistics" ) \ | |
64 \ | |
65 notproduct(bool, PrintInitialBlockList, false, \ | |
66 "Print block list of BlockListBuilder") \ | |
67 \ | |
68 notproduct(bool, PrintCFG, false, \ | |
69 "Print control flow graph after each change") \ | |
70 \ | |
71 notproduct(bool, PrintCFG0, false, \ | |
72 "Print control flow graph after construction") \ | |
73 \ | |
74 notproduct(bool, PrintCFG1, false, \ | |
75 "Print control flow graph after optimizations") \ | |
76 \ | |
77 notproduct(bool, PrintCFG2, false, \ | |
78 "Print control flow graph before code generation") \ | |
79 \ | |
80 notproduct(bool, PrintIRDuringConstruction, false, \ | |
81 "Print IR as it's being constructed (helpful for debugging frontend)")\ | |
82 \ | |
1783 | 83 notproduct(bool, PrintPhiFunctions, false, \ |
0 | 84 "Print phi functions when they are created and simplified") \ |
85 \ | |
86 notproduct(bool, PrintIR, false, \ | |
87 "Print full intermediate representation after each change") \ | |
88 \ | |
89 notproduct(bool, PrintIR0, false, \ | |
90 "Print full intermediate representation after construction") \ | |
91 \ | |
92 notproduct(bool, PrintIR1, false, \ | |
93 "Print full intermediate representation after optimizations") \ | |
94 \ | |
95 notproduct(bool, PrintIR2, false, \ | |
96 "Print full intermediate representation before code generation") \ | |
97 \ | |
98 notproduct(bool, PrintSimpleStubs, false, \ | |
99 "Print SimpleStubs") \ | |
100 \ | |
101 /* C1 optimizations */ \ | |
102 \ | |
103 develop(bool, UseC1Optimizations, true, \ | |
104 "Turn on C1 optimizations") \ | |
105 \ | |
106 develop(bool, SelectivePhiFunctions, true, \ | |
107 "create phi functions at loop headers only when necessary") \ | |
108 \ | |
1899 | 109 develop(bool, OptimizeIfOps, true, \ |
110 "Optimize multiple IfOps") \ | |
111 \ | |
0 | 112 develop(bool, DoCEE, true, \ |
113 "Do Conditional Expression Elimination to simplify CFG") \ | |
114 \ | |
115 develop(bool, PrintCEE, false, \ | |
116 "Print Conditional Expression Elimination") \ | |
117 \ | |
118 develop(bool, UseLocalValueNumbering, true, \ | |
119 "Use Local Value Numbering (embedded in GraphBuilder)") \ | |
120 \ | |
121 develop(bool, UseGlobalValueNumbering, true, \ | |
122 "Use Global Value Numbering (separate phase)") \ | |
123 \ | |
124 develop(bool, PrintValueNumbering, false, \ | |
125 "Print Value Numbering") \ | |
126 \ | |
127 product(intx, ValueMapInitialSize, 11, \ | |
128 "Initial size of a value map") \ | |
129 \ | |
130 product(intx, ValueMapMaxLoopSize, 8, \ | |
131 "maximum size of a loop optimized by global value numbering") \ | |
132 \ | |
133 develop(bool, EliminateBlocks, true, \ | |
134 "Eliminate unneccessary basic blocks") \ | |
135 \ | |
136 develop(bool, PrintBlockElimination, false, \ | |
137 "Print basic block elimination") \ | |
138 \ | |
139 develop(bool, EliminateNullChecks, true, \ | |
140 "Eliminate unneccessary null checks") \ | |
141 \ | |
142 develop(bool, PrintNullCheckElimination, false, \ | |
143 "Print null check elimination") \ | |
144 \ | |
145 develop(bool, EliminateFieldAccess, true, \ | |
146 "Optimize field loads and stores") \ | |
147 \ | |
148 develop(bool, InlineMethodsWithExceptionHandlers, true, \ | |
149 "Inline methods containing exception handlers " \ | |
150 "(NOTE: does not work with current backend)") \ | |
151 \ | |
152 develop(bool, InlineSynchronizedMethods, true, \ | |
153 "Inline synchronized methods") \ | |
154 \ | |
155 develop(bool, InlineNIOCheckIndex, true, \ | |
156 "Intrinsify java.nio.Buffer.checkIndex") \ | |
157 \ | |
158 develop(bool, CanonicalizeNodes, true, \ | |
159 "Canonicalize graph nodes") \ | |
160 \ | |
161 develop(bool, PrintCanonicalization, false, \ | |
162 "Print graph node canonicalization") \ | |
163 \ | |
164 develop(bool, UseTableRanges, true, \ | |
165 "Faster versions of lookup table using ranges") \ | |
166 \ | |
167 develop_pd(bool, RoundFPResults, \ | |
168 "Indicates whether rounding is needed for floating point results")\ | |
169 \ | |
170 develop(intx, NestedInliningSizeRatio, 90, \ | |
171 "Percentage of prev. allowed inline size in recursive inlining") \ | |
172 \ | |
173 notproduct(bool, PrintIRWithLIR, false, \ | |
174 "Print IR instructions with generated LIR") \ | |
175 \ | |
176 notproduct(bool, PrintLIRWithAssembly, false, \ | |
177 "Show LIR instruction with generated assembly") \ | |
178 \ | |
179 develop(bool, CommentedAssembly, trueInDebug, \ | |
180 "Show extra info in PrintNMethods output") \ | |
181 \ | |
182 develop(bool, LIRTracePeephole, false, \ | |
183 "Trace peephole optimizer") \ | |
184 \ | |
185 develop(bool, LIRTraceExecution, false, \ | |
186 "add LIR code which logs the execution of blocks") \ | |
187 \ | |
188 product_pd(bool, LIRFillDelaySlots, \ | |
189 "fill delays on on SPARC with LIR") \ | |
190 \ | |
191 develop_pd(bool, CSEArrayLength, \ | |
192 "Create separate nodes for length in array accesses") \ | |
193 \ | |
194 develop_pd(bool, TwoOperandLIRForm, \ | |
195 "true if LIR requires src1 and dst to match in binary LIR ops") \ | |
196 \ | |
197 develop(intx, TraceLinearScanLevel, 0, \ | |
198 "Debug levels for the linear scan allocator") \ | |
199 \ | |
200 develop(bool, StressLinearScan, false, \ | |
201 "scramble block order used by LinearScan (stress test)") \ | |
202 \ | |
203 product(bool, TimeLinearScan, false, \ | |
204 "detailed timing of LinearScan phases") \ | |
205 \ | |
206 develop(bool, TimeEachLinearScan, false, \ | |
207 "print detailed timing of each LinearScan run") \ | |
208 \ | |
209 develop(bool, CountLinearScan, false, \ | |
210 "collect statistic counters during LinearScan") \ | |
211 \ | |
212 /* C1 variable */ \ | |
213 \ | |
214 develop(bool, C1Breakpoint, false, \ | |
215 "Sets a breakpoint at entry of each compiled method") \ | |
216 \ | |
217 develop(bool, ImplicitDiv0Checks, true, \ | |
218 "Use implicit division by zero checks") \ | |
219 \ | |
220 develop(bool, PinAllInstructions, false, \ | |
221 "All instructions are pinned") \ | |
222 \ | |
223 develop(bool, UseFastNewInstance, true, \ | |
224 "Use fast inlined instance allocation") \ | |
225 \ | |
226 develop(bool, UseFastNewTypeArray, true, \ | |
227 "Use fast inlined type array allocation") \ | |
228 \ | |
229 develop(bool, UseFastNewObjectArray, true, \ | |
230 "Use fast inlined object array allocation") \ | |
231 \ | |
232 develop(bool, UseFastLocking, true, \ | |
233 "Use fast inlined locking code") \ | |
234 \ | |
235 develop(bool, UseSlowPath, false, \ | |
236 "For debugging: test slow cases by always using them") \ | |
237 \ | |
238 develop(bool, GenerateArrayStoreCheck, true, \ | |
239 "Generates code for array store checks") \ | |
240 \ | |
241 develop(bool, DeoptC1, true, \ | |
242 "Use deoptimization in C1") \ | |
243 \ | |
244 develop(bool, PrintBailouts, false, \ | |
245 "Print bailout and its reason") \ | |
246 \ | |
247 develop(bool, TracePatching, false, \ | |
248 "Trace patching of field access on uninitialized classes") \ | |
249 \ | |
250 develop(bool, PatchALot, false, \ | |
251 "Marks all fields as having unloaded classes") \ | |
252 \ | |
253 develop(bool, PrintNotLoaded, false, \ | |
254 "Prints where classes are not loaded during code generation") \ | |
255 \ | |
256 notproduct(bool, VerifyOopMaps, false, \ | |
257 "Adds oopmap verification code to the generated code") \ | |
258 \ | |
259 develop(bool, PrintLIR, false, \ | |
260 "print low-level IR") \ | |
261 \ | |
262 develop(bool, BailoutAfterHIR, false, \ | |
263 "bailout of compilation after building of HIR") \ | |
264 \ | |
265 develop(bool, BailoutAfterLIR, false, \ | |
266 "bailout of compilation after building of LIR") \ | |
267 \ | |
268 develop(bool, BailoutOnExceptionHandlers, false, \ | |
269 "bailout of compilation for methods with exception handlers") \ | |
270 \ | |
271 develop(bool, InstallMethods, true, \ | |
272 "Install methods at the end of successful compilations") \ | |
273 \ | |
274 product(intx, CompilationRepeat, 0, \ | |
275 "Number of times to recompile method before returning result") \ | |
276 \ | |
3896
b346f13112d8
7085279: C1 overflows code buffer with VerifyOops and CompressedOops
iveresov
parents:
2426
diff
changeset
|
277 develop(intx, NMethodSizeLimit, (64*K)*wordSize, \ |
0 | 278 "Maximum size of a compiled method.") \ |
279 \ | |
280 develop(bool, TraceFPUStack, false, \ | |
281 "Trace emulation of the FPU stack (intel only)") \ | |
282 \ | |
283 develop(bool, TraceFPURegisterUsage, false, \ | |
284 "Trace usage of FPU registers at start of blocks (intel only)") \ | |
285 \ | |
286 develop(bool, OptimizeUnsafes, true, \ | |
287 "Optimize raw unsafe ops") \ | |
288 \ | |
289 develop(bool, PrintUnsafeOptimization, false, \ | |
290 "Print optimization of raw unsafe ops") \ | |
291 \ | |
292 develop(intx, InstructionCountCutoff, 37000, \ | |
293 "If GraphBuilder adds this many instructions, bails out") \ | |
294 \ | |
295 product_pd(intx, SafepointPollOffset, \ | |
296 "Offset added to polling address (Intel only)") \ | |
297 \ | |
298 develop(bool, ComputeExactFPURegisterUsage, true, \ | |
299 "Compute additional live set for fpu registers to simplify fpu stack merge (Intel only)") \ | |
300 \ | |
1783 | 301 product(bool, C1ProfileCalls, true, \ |
0 | 302 "Profile calls when generating code for updating MDOs") \ |
303 \ | |
1783 | 304 product(bool, C1ProfileVirtualCalls, true, \ |
0 | 305 "Profile virtual calls when generating code for updating MDOs") \ |
306 \ | |
1783 | 307 product(bool, C1ProfileInlinedCalls, true, \ |
0 | 308 "Profile inlined calls when generating code for updating MDOs") \ |
309 \ | |
1783 | 310 product(bool, C1ProfileBranches, true, \ |
0 | 311 "Profile branches when generating code for updating MDOs") \ |
312 \ | |
1783 | 313 product(bool, C1ProfileCheckcasts, true, \ |
0 | 314 "Profile checkcasts when generating code for updating MDOs") \ |
315 \ | |
1783 | 316 product(bool, C1OptimizeVirtualCallProfiling, true, \ |
317 "Use CHA and exact type results at call sites when updating MDOs")\ | |
0 | 318 \ |
1783 | 319 product(bool, C1UpdateMethodData, trueInTiered, \ |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
6633
diff
changeset
|
320 "Update MethodData*s in Tier1-generated code") \ |
0 | 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 | |
329 C1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_NOTPRODUCT_FLAG) | |
1972 | 330 |
331 #endif // SHARE_VM_C1_C1_GLOBALS_HPP |