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