annotate src/share/vm/c1/c1_globals.hpp @ 1406:35069ca331f2

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