author | thartmann |
Tue, 30 Oct 2018 09:06:08 +0100 | |
changeset 52325 | 0451e0a2f1f5 |
parent 52220 | 9c260a6b6471 |
child 52979 | 7384e00d5860 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
50113 | 2 |
* Copyright (c) 1999, 2018, 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 |
#include "precompiled.hpp" |
50113 | 26 |
#include "jfr/support/jfrIntrinsics.hpp" |
7397 | 27 |
#include "opto/c2compiler.hpp" |
26796 | 28 |
#include "opto/compile.hpp" |
25715
d5a8dbdc5150
8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
goetz
parents:
24673
diff
changeset
|
29 |
#include "opto/optoreg.hpp" |
26796 | 30 |
#include "opto/output.hpp" |
7397 | 31 |
#include "opto/runtime.hpp" |
50113 | 32 |
#include "utilities/macros.hpp" |
33 |
||
1 | 34 |
|
35 |
// register information defined by ADLC |
|
36 |
extern const char register_save_policy[]; |
|
37 |
extern const int register_save_type[]; |
|
38 |
||
39 |
const char* C2Compiler::retry_no_subsuming_loads() { |
|
40 |
return "retry without subsuming loads"; |
|
41 |
} |
|
211
e2b60448c234
6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents:
1
diff
changeset
|
42 |
const char* C2Compiler::retry_no_escape_analysis() { |
e2b60448c234
6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents:
1
diff
changeset
|
43 |
return "retry without escape analysis"; |
e2b60448c234
6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents:
1
diff
changeset
|
44 |
} |
28395
fbe08d791778
8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents:
27706
diff
changeset
|
45 |
const char* C2Compiler::retry_class_loading_during_parsing() { |
fbe08d791778
8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents:
27706
diff
changeset
|
46 |
return "retry class loading during parsing"; |
fbe08d791778
8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents:
27706
diff
changeset
|
47 |
} |
20707
b3b658c6d1f8
8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents:
17383
diff
changeset
|
48 |
bool C2Compiler::init_c2_runtime() { |
1 | 49 |
|
50 |
// Check assumptions used while running ADLC |
|
51 |
Compile::adlc_verification(); |
|
52 |
assert(REG_COUNT <= ConcreteRegisterImpl::number_of_registers, "incompatible register counts"); |
|
53 |
||
54 |
for (int i = 0; i < ConcreteRegisterImpl::number_of_registers ; i++ ) { |
|
55 |
OptoReg::vm2opto[i] = OptoReg::Bad; |
|
56 |
} |
|
57 |
||
58 |
for( OptoReg::Name i=OptoReg::Name(0); i<OptoReg::Name(REG_COUNT); i = OptoReg::add(i,1) ) { |
|
59 |
VMReg r = OptoReg::as_VMReg(i); |
|
60 |
if (r->is_valid()) { |
|
61 |
OptoReg::vm2opto[r->value()] = i; |
|
62 |
} |
|
63 |
} |
|
64 |
||
65 |
// Check that runtime and architecture description agree on callee-saved-floats |
|
66 |
bool callee_saved_floats = false; |
|
67 |
for( OptoReg::Name i=OptoReg::Name(0); i<OptoReg::Name(_last_Mach_Reg); i = OptoReg::add(i,1) ) { |
|
68 |
// Is there a callee-saved float or double? |
|
69 |
if( register_save_policy[i] == 'E' /* callee-saved */ && |
|
70 |
(register_save_type[i] == Op_RegF || register_save_type[i] == Op_RegD) ) { |
|
71 |
callee_saved_floats = true; |
|
72 |
} |
|
73 |
} |
|
74 |
||
75 |
DEBUG_ONLY( Node::init_NodeProperty(); ) |
|
76 |
||
77 |
Compile::pd_compiler2_init(); |
|
78 |
||
79 |
CompilerThread* thread = CompilerThread::current(); |
|
80 |
||
20707
b3b658c6d1f8
8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents:
17383
diff
changeset
|
81 |
HandleMark handle_mark(thread); |
b3b658c6d1f8
8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents:
17383
diff
changeset
|
82 |
return OptoRuntime::generate(thread->env()); |
1 | 83 |
} |
84 |
||
85 |
void C2Compiler::initialize() { |
|
86 |
// The first compiler thread that gets here will initialize the |
|
20707
b3b658c6d1f8
8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents:
17383
diff
changeset
|
87 |
// small amount of global state (and runtime stubs) that C2 needs. |
1 | 88 |
|
89 |
// There is a race possible once at startup and then we're fine |
|
90 |
||
91 |
// Note that this is being called from a compiler thread not the |
|
92 |
// main startup thread. |
|
20707
b3b658c6d1f8
8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents:
17383
diff
changeset
|
93 |
if (should_perform_init()) { |
b3b658c6d1f8
8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents:
17383
diff
changeset
|
94 |
bool successful = C2Compiler::init_c2_runtime(); |
b3b658c6d1f8
8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents:
17383
diff
changeset
|
95 |
int new_state = (successful) ? initialized : failed; |
b3b658c6d1f8
8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents:
17383
diff
changeset
|
96 |
set_state(new_state); |
1 | 97 |
} |
98 |
} |
|
99 |
||
33451
0712796e4039
8137167: JEP165: Compiler Control: Implementation task
neliasso
parents:
32581
diff
changeset
|
100 |
void C2Compiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci, DirectiveSet* directive) { |
20707
b3b658c6d1f8
8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents:
17383
diff
changeset
|
101 |
assert(is_initialized(), "Compiler thread must be initialized"); |
b3b658c6d1f8
8023014: CodeSweeperSweepNoFlushTest.java fails with HS crash
anoll
parents:
17383
diff
changeset
|
102 |
|
6180 | 103 |
bool subsume_loads = SubsumeLoads; |
22893
e3a2b513713a
8035493: JVMTI PopFrame capability must instruct compilers not to prune locals
mgronlun
parents:
22234
diff
changeset
|
104 |
bool do_escape_analysis = DoEscapeAnalysis && !env->should_retain_local_variables(); |
17383 | 105 |
bool eliminate_boxing = EliminateAutoBox; |
33451
0712796e4039
8137167: JEP165: Compiler Control: Implementation task
neliasso
parents:
32581
diff
changeset
|
106 |
|
1 | 107 |
while (!env->failing()) { |
108 |
// Attempt to compile while subsuming loads into machine instructions. |
|
33451
0712796e4039
8137167: JEP165: Compiler Control: Implementation task
neliasso
parents:
32581
diff
changeset
|
109 |
Compile C(env, this, target, entry_bci, subsume_loads, do_escape_analysis, eliminate_boxing, directive); |
1 | 110 |
|
111 |
// Check result and retry if appropriate. |
|
112 |
if (C.failure_reason() != NULL) { |
|
28395
fbe08d791778
8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents:
27706
diff
changeset
|
113 |
if (C.failure_reason_is(retry_class_loading_during_parsing())) { |
fbe08d791778
8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents:
27706
diff
changeset
|
114 |
env->report_failure(C.failure_reason()); |
fbe08d791778
8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents:
27706
diff
changeset
|
115 |
continue; // retry |
fbe08d791778
8055530: assert(_exits.control()->is_top() || !_gvn.type(ret_phi)->empty()) failed: return value must be well defined
roland
parents:
27706
diff
changeset
|
116 |
} |
211
e2b60448c234
6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents:
1
diff
changeset
|
117 |
if (C.failure_reason_is(retry_no_subsuming_loads())) { |
1 | 118 |
assert(subsume_loads, "must make progress"); |
119 |
subsume_loads = false; |
|
27706
3f10f4ac2bd6
8065339: Failed compilation does not always trigger a JFR event 'CompilerFailure'
thartmann
parents:
26913
diff
changeset
|
120 |
env->report_failure(C.failure_reason()); |
1 | 121 |
continue; // retry |
122 |
} |
|
211
e2b60448c234
6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents:
1
diff
changeset
|
123 |
if (C.failure_reason_is(retry_no_escape_analysis())) { |
e2b60448c234
6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents:
1
diff
changeset
|
124 |
assert(do_escape_analysis, "must make progress"); |
e2b60448c234
6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents:
1
diff
changeset
|
125 |
do_escape_analysis = false; |
27706
3f10f4ac2bd6
8065339: Failed compilation does not always trigger a JFR event 'CompilerFailure'
thartmann
parents:
26913
diff
changeset
|
126 |
env->report_failure(C.failure_reason()); |
211
e2b60448c234
6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents:
1
diff
changeset
|
127 |
continue; // retry |
e2b60448c234
6667610: (Escape Analysis) retry compilation without EA if it fails
kvn
parents:
1
diff
changeset
|
128 |
} |
17383 | 129 |
if (C.has_boxed_value()) { |
130 |
// Recompile without boxing elimination regardless failure reason. |
|
131 |
assert(eliminate_boxing, "must make progress"); |
|
132 |
eliminate_boxing = false; |
|
27706
3f10f4ac2bd6
8065339: Failed compilation does not always trigger a JFR event 'CompilerFailure'
thartmann
parents:
26913
diff
changeset
|
133 |
env->report_failure(C.failure_reason()); |
17383 | 134 |
continue; // retry |
135 |
} |
|
1 | 136 |
// Pass any other failure reason up to the ciEnv. |
137 |
// Note that serious, irreversible failures are already logged |
|
138 |
// on the ciEnv via env->record_method_not_compilable(). |
|
139 |
env->record_failure(C.failure_reason()); |
|
140 |
} |
|
6180 | 141 |
if (StressRecompilation) { |
142 |
if (subsume_loads) { |
|
143 |
subsume_loads = false; |
|
144 |
continue; // retry |
|
145 |
} |
|
146 |
if (do_escape_analysis) { |
|
147 |
do_escape_analysis = false; |
|
148 |
continue; // retry |
|
149 |
} |
|
150 |
} |
|
1 | 151 |
|
24673
2ec56802b829
8043638: Multiple compilation attempts break LogCompulation, lead to confusing PrintInlining output
roland
parents:
22894
diff
changeset
|
152 |
// print inlining for last compilation only |
2ec56802b829
8043638: Multiple compilation attempts break LogCompulation, lead to confusing PrintInlining output
roland
parents:
22894
diff
changeset
|
153 |
C.dump_print_inlining(); |
2ec56802b829
8043638: Multiple compilation attempts break LogCompulation, lead to confusing PrintInlining output
roland
parents:
22894
diff
changeset
|
154 |
|
1 | 155 |
// No retry; just break the loop. |
156 |
break; |
|
157 |
} |
|
158 |
} |
|
159 |
||
160 |
void C2Compiler::print_timers() { |
|
26913 | 161 |
Compile::print_timers(); |
1 | 162 |
} |
26796 | 163 |
|
33593
60764a78fa5c
8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents:
32581
diff
changeset
|
164 |
bool C2Compiler::is_intrinsic_supported(const methodHandle& method, bool is_virtual) { |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
165 |
vmIntrinsics::ID id = method->intrinsic_id(); |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
166 |
assert(id != vmIntrinsics::_none, "must be a VM intrinsic"); |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
167 |
|
32371
8815f2d1447f
8133599: Unsafe.getAndSetObject() is no longer intrinsified by c2
roland
parents:
32085
diff
changeset
|
168 |
if (id < vmIntrinsics::FIRST_ID || id > vmIntrinsics::LAST_COMPILER_INLINE) { |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
169 |
return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
170 |
} |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
171 |
|
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
172 |
// Only Object.hashCode and Object.clone intrinsics implement also a virtual |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
173 |
// dispatch because calling both methods is expensive but both methods are |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
174 |
// frequently overridden. All other intrinsics implement only a non-virtual |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
175 |
// dispatch. |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
176 |
if (is_virtual) { |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
177 |
switch (id) { |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
178 |
case vmIntrinsics::_hashCode: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
179 |
case vmIntrinsics::_clone: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
180 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
181 |
default: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
182 |
return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
183 |
} |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
184 |
} |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
185 |
|
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
186 |
switch (id) { |
33628 | 187 |
case vmIntrinsics::_compressStringC: |
188 |
case vmIntrinsics::_compressStringB: |
|
189 |
if (!Matcher::has_match_rule(Op_StrCompressedCopy)) return false; |
|
190 |
break; |
|
191 |
case vmIntrinsics::_inflateStringC: |
|
192 |
case vmIntrinsics::_inflateStringB: |
|
193 |
if (!Matcher::has_match_rule(Op_StrInflatedCopy)) return false; |
|
194 |
break; |
|
195 |
case vmIntrinsics::_compareToL: |
|
196 |
case vmIntrinsics::_compareToU: |
|
197 |
case vmIntrinsics::_compareToLU: |
|
198 |
case vmIntrinsics::_compareToUL: |
|
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
199 |
if (!Matcher::match_rule_supported(Op_StrComp)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
200 |
break; |
33628 | 201 |
case vmIntrinsics::_equalsL: |
202 |
case vmIntrinsics::_equalsU: |
|
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
203 |
if (!Matcher::match_rule_supported(Op_StrEquals)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
204 |
break; |
33628 | 205 |
case vmIntrinsics::_equalsB: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
206 |
case vmIntrinsics::_equalsC: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
207 |
if (!Matcher::match_rule_supported(Op_AryEq)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
208 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
209 |
case vmIntrinsics::_copyMemory: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
210 |
if (StubRoutines::unsafe_arraycopy() == NULL) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
211 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
212 |
case vmIntrinsics::_encodeISOArray: |
33628 | 213 |
case vmIntrinsics::_encodeByteISOArray: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
214 |
if (!Matcher::match_rule_supported(Op_EncodeISOArray)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
215 |
break; |
33628 | 216 |
case vmIntrinsics::_hasNegatives: |
217 |
if (!Matcher::match_rule_supported(Op_HasNegatives)) return false; |
|
218 |
break; |
|
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
219 |
case vmIntrinsics::_bitCount_i: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
220 |
if (!Matcher::match_rule_supported(Op_PopCountI)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
221 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
222 |
case vmIntrinsics::_bitCount_l: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
223 |
if (!Matcher::match_rule_supported(Op_PopCountL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
224 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
225 |
case vmIntrinsics::_numberOfLeadingZeros_i: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
226 |
if (!Matcher::match_rule_supported(Op_CountLeadingZerosI)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
227 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
228 |
case vmIntrinsics::_numberOfLeadingZeros_l: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
229 |
if (!Matcher::match_rule_supported(Op_CountLeadingZerosL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
230 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
231 |
case vmIntrinsics::_numberOfTrailingZeros_i: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
232 |
if (!Matcher::match_rule_supported(Op_CountTrailingZerosI)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
233 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
234 |
case vmIntrinsics::_numberOfTrailingZeros_l: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
235 |
if (!Matcher::match_rule_supported(Op_CountTrailingZerosL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
236 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
237 |
case vmIntrinsics::_reverseBytes_c: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
238 |
if (!Matcher::match_rule_supported(Op_ReverseBytesUS)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
239 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
240 |
case vmIntrinsics::_reverseBytes_s: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
241 |
if (!Matcher::match_rule_supported(Op_ReverseBytesS)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
242 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
243 |
case vmIntrinsics::_reverseBytes_i: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
244 |
if (!Matcher::match_rule_supported(Op_ReverseBytesI)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
245 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
246 |
case vmIntrinsics::_reverseBytes_l: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
247 |
if (!Matcher::match_rule_supported(Op_ReverseBytesL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
248 |
break; |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
249 |
|
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
250 |
/* CompareAndSet, Object: */ |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
251 |
case vmIntrinsics::_compareAndSetReference: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
252 |
#ifdef _LP64 |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
253 |
if ( UseCompressedOops && !Matcher::match_rule_supported(Op_CompareAndSwapN)) return false; |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
254 |
if (!UseCompressedOops && !Matcher::match_rule_supported(Op_CompareAndSwapP)) return false; |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
255 |
#else |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
256 |
if (!Matcher::match_rule_supported(Op_CompareAndSwapP)) return false; |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
257 |
#endif |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
258 |
break; |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
259 |
case vmIntrinsics::_weakCompareAndSetReferencePlain: |
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
260 |
case vmIntrinsics::_weakCompareAndSetReferenceAcquire: |
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
261 |
case vmIntrinsics::_weakCompareAndSetReferenceRelease: |
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
262 |
case vmIntrinsics::_weakCompareAndSetReference: |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
263 |
#ifdef _LP64 |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
264 |
if ( UseCompressedOops && !Matcher::match_rule_supported(Op_WeakCompareAndSwapN)) return false; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
265 |
if (!UseCompressedOops && !Matcher::match_rule_supported(Op_WeakCompareAndSwapP)) return false; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
266 |
#else |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
267 |
if (!Matcher::match_rule_supported(Op_WeakCompareAndSwapP)) return false; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
268 |
#endif |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
269 |
break; |
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
270 |
/* CompareAndSet, Long: */ |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
271 |
case vmIntrinsics::_compareAndSetLong: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
272 |
if (!Matcher::match_rule_supported(Op_CompareAndSwapL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
273 |
break; |
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
274 |
case vmIntrinsics::_weakCompareAndSetLongPlain: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
275 |
case vmIntrinsics::_weakCompareAndSetLongAcquire: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
276 |
case vmIntrinsics::_weakCompareAndSetLongRelease: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
277 |
case vmIntrinsics::_weakCompareAndSetLong: |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
278 |
if (!Matcher::match_rule_supported(Op_WeakCompareAndSwapL)) return false; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
279 |
break; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
280 |
|
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
281 |
/* CompareAndSet, Int: */ |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
282 |
case vmIntrinsics::_compareAndSetInt: |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
283 |
if (!Matcher::match_rule_supported(Op_CompareAndSwapI)) return false; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
284 |
break; |
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
285 |
case vmIntrinsics::_weakCompareAndSetIntPlain: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
286 |
case vmIntrinsics::_weakCompareAndSetIntAcquire: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
287 |
case vmIntrinsics::_weakCompareAndSetIntRelease: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
288 |
case vmIntrinsics::_weakCompareAndSetInt: |
46992 | 289 |
if (!Matcher::match_rule_supported(Op_WeakCompareAndSwapI)) return false; |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
290 |
break; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
291 |
|
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
292 |
/* CompareAndSet, Byte: */ |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
293 |
case vmIntrinsics::_compareAndSetByte: |
39419
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
294 |
if (!Matcher::match_rule_supported(Op_CompareAndSwapB)) return false; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
295 |
break; |
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
296 |
case vmIntrinsics::_weakCompareAndSetBytePlain: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
297 |
case vmIntrinsics::_weakCompareAndSetByteAcquire: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
298 |
case vmIntrinsics::_weakCompareAndSetByteRelease: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
299 |
case vmIntrinsics::_weakCompareAndSetByte: |
39419
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
300 |
if (!Matcher::match_rule_supported(Op_WeakCompareAndSwapB)) return false; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
301 |
break; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
302 |
|
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
303 |
/* CompareAndSet, Short: */ |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
304 |
case vmIntrinsics::_compareAndSetShort: |
39419
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
305 |
if (!Matcher::match_rule_supported(Op_CompareAndSwapS)) return false; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
306 |
break; |
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
307 |
case vmIntrinsics::_weakCompareAndSetShortPlain: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
308 |
case vmIntrinsics::_weakCompareAndSetShortAcquire: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
309 |
case vmIntrinsics::_weakCompareAndSetShortRelease: |
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
310 |
case vmIntrinsics::_weakCompareAndSetShort: |
39419
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
311 |
if (!Matcher::match_rule_supported(Op_WeakCompareAndSwapS)) return false; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
312 |
break; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
313 |
|
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
314 |
/* CompareAndExchange, Object: */ |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
315 |
case vmIntrinsics::_compareAndExchangeReference: |
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
316 |
case vmIntrinsics::_compareAndExchangeReferenceAcquire: |
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
317 |
case vmIntrinsics::_compareAndExchangeReferenceRelease: |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
318 |
#ifdef _LP64 |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
319 |
if ( UseCompressedOops && !Matcher::match_rule_supported(Op_CompareAndExchangeN)) return false; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
320 |
if (!UseCompressedOops && !Matcher::match_rule_supported(Op_CompareAndExchangeP)) return false; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
321 |
#else |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
322 |
if (!Matcher::match_rule_supported(Op_CompareAndExchangeP)) return false; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
323 |
#endif |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
324 |
break; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
325 |
|
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
326 |
/* CompareAndExchange, Long: */ |
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
327 |
case vmIntrinsics::_compareAndExchangeLong: |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
328 |
case vmIntrinsics::_compareAndExchangeLongAcquire: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
329 |
case vmIntrinsics::_compareAndExchangeLongRelease: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
330 |
if (!Matcher::match_rule_supported(Op_CompareAndExchangeL)) return false; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
331 |
break; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
332 |
|
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
333 |
/* CompareAndExchange, Int: */ |
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
334 |
case vmIntrinsics::_compareAndExchangeInt: |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
335 |
case vmIntrinsics::_compareAndExchangeIntAcquire: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
336 |
case vmIntrinsics::_compareAndExchangeIntRelease: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
337 |
if (!Matcher::match_rule_supported(Op_CompareAndExchangeI)) return false; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
338 |
break; |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
339 |
|
39419
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
340 |
/* CompareAndExchange, Byte: */ |
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
341 |
case vmIntrinsics::_compareAndExchangeByte: |
39419
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
342 |
case vmIntrinsics::_compareAndExchangeByteAcquire: |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
343 |
case vmIntrinsics::_compareAndExchangeByteRelease: |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
344 |
if (!Matcher::match_rule_supported(Op_CompareAndExchangeB)) return false; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
345 |
break; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
346 |
|
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
347 |
/* CompareAndExchange, Short: */ |
45514
0fc9cc73ce45
8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
psandoz
parents:
42037
diff
changeset
|
348 |
case vmIntrinsics::_compareAndExchangeShort: |
39419
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
349 |
case vmIntrinsics::_compareAndExchangeShortAcquire: |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
350 |
case vmIntrinsics::_compareAndExchangeShortRelease: |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
351 |
if (!Matcher::match_rule_supported(Op_CompareAndExchangeS)) return false; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
352 |
break; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
353 |
|
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
354 |
case vmIntrinsics::_getAndAddByte: |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
355 |
if (!Matcher::match_rule_supported(Op_GetAndAddB)) return false; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
356 |
break; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
357 |
case vmIntrinsics::_getAndAddShort: |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
358 |
if (!Matcher::match_rule_supported(Op_GetAndAddS)) return false; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
359 |
break; |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
360 |
case vmIntrinsics::_getAndAddInt: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
361 |
if (!Matcher::match_rule_supported(Op_GetAndAddI)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
362 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
363 |
case vmIntrinsics::_getAndAddLong: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
364 |
if (!Matcher::match_rule_supported(Op_GetAndAddL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
365 |
break; |
39419
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
366 |
|
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
367 |
case vmIntrinsics::_getAndSetByte: |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
368 |
if (!Matcher::match_rule_supported(Op_GetAndSetB)) return false; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
369 |
break; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
370 |
case vmIntrinsics::_getAndSetShort: |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
371 |
if (!Matcher::match_rule_supported(Op_GetAndSetS)) return false; |
cc993a4ab581
8157726: VarHandles/Unsafe should support sub-word atomic ops
shade
parents:
38246
diff
changeset
|
372 |
break; |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
373 |
case vmIntrinsics::_getAndSetInt: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
374 |
if (!Matcher::match_rule_supported(Op_GetAndSetI)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
375 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
376 |
case vmIntrinsics::_getAndSetLong: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
377 |
if (!Matcher::match_rule_supported(Op_GetAndSetL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
378 |
break; |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
379 |
case vmIntrinsics::_getAndSetReference: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
380 |
#ifdef _LP64 |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
381 |
if (!UseCompressedOops && !Matcher::match_rule_supported(Op_GetAndSetP)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
382 |
if (UseCompressedOops && !Matcher::match_rule_supported(Op_GetAndSetN)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
383 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
384 |
#else |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
385 |
if (!Matcher::match_rule_supported(Op_GetAndSetP)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
386 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
387 |
#endif |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
388 |
case vmIntrinsics::_incrementExactI: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
389 |
case vmIntrinsics::_addExactI: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
390 |
if (!Matcher::match_rule_supported(Op_OverflowAddI)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
391 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
392 |
case vmIntrinsics::_incrementExactL: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
393 |
case vmIntrinsics::_addExactL: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
394 |
if (!Matcher::match_rule_supported(Op_OverflowAddL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
395 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
396 |
case vmIntrinsics::_decrementExactI: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
397 |
case vmIntrinsics::_subtractExactI: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
398 |
if (!Matcher::match_rule_supported(Op_OverflowSubI)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
399 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
400 |
case vmIntrinsics::_decrementExactL: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
401 |
case vmIntrinsics::_subtractExactL: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
402 |
if (!Matcher::match_rule_supported(Op_OverflowSubL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
403 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
404 |
case vmIntrinsics::_negateExactI: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
405 |
if (!Matcher::match_rule_supported(Op_OverflowSubI)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
406 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
407 |
case vmIntrinsics::_negateExactL: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
408 |
if (!Matcher::match_rule_supported(Op_OverflowSubL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
409 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
410 |
case vmIntrinsics::_multiplyExactI: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
411 |
if (!Matcher::match_rule_supported(Op_OverflowMulI)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
412 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
413 |
case vmIntrinsics::_multiplyExactL: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
414 |
if (!Matcher::match_rule_supported(Op_OverflowMulL)) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
415 |
break; |
47587
bf73ca31add9
8187684: Intrinsify Math.multiplyHigh(long, long)
dpochepk
parents:
47216
diff
changeset
|
416 |
case vmIntrinsics::_multiplyHigh: |
bf73ca31add9
8187684: Intrinsify Math.multiplyHigh(long, long)
dpochepk
parents:
47216
diff
changeset
|
417 |
if (!Matcher::match_rule_supported(Op_MulHiL)) return false; |
bf73ca31add9
8187684: Intrinsify Math.multiplyHigh(long, long)
dpochepk
parents:
47216
diff
changeset
|
418 |
break; |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
419 |
case vmIntrinsics::_getCallerClass: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
420 |
if (SystemDictionary::reflect_CallerSensitive_klass() == NULL) return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
421 |
break; |
38017
55047d16f141
8147844: new method j.l.Runtime.onSpinWait() and the corresponding x86 hotspot instrinsic
ikrylov
parents:
36827
diff
changeset
|
422 |
case vmIntrinsics::_onSpinWait: |
55047d16f141
8147844: new method j.l.Runtime.onSpinWait() and the corresponding x86 hotspot instrinsic
ikrylov
parents:
36827
diff
changeset
|
423 |
if (!Matcher::match_rule_supported(Op_OnSpinWait)) return false; |
55047d16f141
8147844: new method j.l.Runtime.onSpinWait() and the corresponding x86 hotspot instrinsic
ikrylov
parents:
36827
diff
changeset
|
424 |
break; |
41323 | 425 |
case vmIntrinsics::_fmaD: |
426 |
if (!UseFMA || !Matcher::match_rule_supported(Op_FmaD)) return false; |
|
427 |
break; |
|
428 |
case vmIntrinsics::_fmaF: |
|
429 |
if (!UseFMA || !Matcher::match_rule_supported(Op_FmaF)) return false; |
|
430 |
break; |
|
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
431 |
case vmIntrinsics::_hashCode: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
432 |
case vmIntrinsics::_identityHashCode: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
433 |
case vmIntrinsics::_getClass: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
434 |
case vmIntrinsics::_dsin: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
435 |
case vmIntrinsics::_dcos: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
436 |
case vmIntrinsics::_dtan: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
437 |
case vmIntrinsics::_dabs: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
438 |
case vmIntrinsics::_datan2: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
439 |
case vmIntrinsics::_dsqrt: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
440 |
case vmIntrinsics::_dexp: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
441 |
case vmIntrinsics::_dlog: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
442 |
case vmIntrinsics::_dlog10: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
443 |
case vmIntrinsics::_dpow: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
444 |
case vmIntrinsics::_min: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
445 |
case vmIntrinsics::_max: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
446 |
case vmIntrinsics::_arraycopy: |
33628 | 447 |
case vmIntrinsics::_indexOfL: |
448 |
case vmIntrinsics::_indexOfU: |
|
449 |
case vmIntrinsics::_indexOfUL: |
|
450 |
case vmIntrinsics::_indexOfIL: |
|
451 |
case vmIntrinsics::_indexOfIU: |
|
452 |
case vmIntrinsics::_indexOfIUL: |
|
453 |
case vmIntrinsics::_indexOfU_char: |
|
454 |
case vmIntrinsics::_toBytesStringU: |
|
455 |
case vmIntrinsics::_getCharsStringU: |
|
456 |
case vmIntrinsics::_getCharStringU: |
|
457 |
case vmIntrinsics::_putCharStringU: |
|
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
458 |
case vmIntrinsics::_getReference: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
459 |
case vmIntrinsics::_getBoolean: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
460 |
case vmIntrinsics::_getByte: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
461 |
case vmIntrinsics::_getShort: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
462 |
case vmIntrinsics::_getChar: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
463 |
case vmIntrinsics::_getInt: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
464 |
case vmIntrinsics::_getLong: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
465 |
case vmIntrinsics::_getFloat: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
466 |
case vmIntrinsics::_getDouble: |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
467 |
case vmIntrinsics::_putReference: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
468 |
case vmIntrinsics::_putBoolean: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
469 |
case vmIntrinsics::_putByte: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
470 |
case vmIntrinsics::_putShort: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
471 |
case vmIntrinsics::_putChar: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
472 |
case vmIntrinsics::_putInt: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
473 |
case vmIntrinsics::_putLong: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
474 |
case vmIntrinsics::_putFloat: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
475 |
case vmIntrinsics::_putDouble: |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
476 |
case vmIntrinsics::_getReferenceVolatile: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
477 |
case vmIntrinsics::_getBooleanVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
478 |
case vmIntrinsics::_getByteVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
479 |
case vmIntrinsics::_getShortVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
480 |
case vmIntrinsics::_getCharVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
481 |
case vmIntrinsics::_getIntVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
482 |
case vmIntrinsics::_getLongVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
483 |
case vmIntrinsics::_getFloatVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
484 |
case vmIntrinsics::_getDoubleVolatile: |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
485 |
case vmIntrinsics::_putReferenceVolatile: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
486 |
case vmIntrinsics::_putBooleanVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
487 |
case vmIntrinsics::_putByteVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
488 |
case vmIntrinsics::_putShortVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
489 |
case vmIntrinsics::_putCharVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
490 |
case vmIntrinsics::_putIntVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
491 |
case vmIntrinsics::_putLongVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
492 |
case vmIntrinsics::_putFloatVolatile: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
493 |
case vmIntrinsics::_putDoubleVolatile: |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
494 |
case vmIntrinsics::_getReferenceAcquire: |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
495 |
case vmIntrinsics::_getBooleanAcquire: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
496 |
case vmIntrinsics::_getByteAcquire: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
497 |
case vmIntrinsics::_getShortAcquire: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
498 |
case vmIntrinsics::_getCharAcquire: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
499 |
case vmIntrinsics::_getIntAcquire: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
500 |
case vmIntrinsics::_getLongAcquire: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
501 |
case vmIntrinsics::_getFloatAcquire: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
502 |
case vmIntrinsics::_getDoubleAcquire: |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
503 |
case vmIntrinsics::_putReferenceRelease: |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
504 |
case vmIntrinsics::_putBooleanRelease: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
505 |
case vmIntrinsics::_putByteRelease: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
506 |
case vmIntrinsics::_putShortRelease: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
507 |
case vmIntrinsics::_putCharRelease: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
508 |
case vmIntrinsics::_putIntRelease: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
509 |
case vmIntrinsics::_putLongRelease: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
510 |
case vmIntrinsics::_putFloatRelease: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
511 |
case vmIntrinsics::_putDoubleRelease: |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
512 |
case vmIntrinsics::_getReferenceOpaque: |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
513 |
case vmIntrinsics::_getBooleanOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
514 |
case vmIntrinsics::_getByteOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
515 |
case vmIntrinsics::_getShortOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
516 |
case vmIntrinsics::_getCharOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
517 |
case vmIntrinsics::_getIntOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
518 |
case vmIntrinsics::_getLongOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
519 |
case vmIntrinsics::_getFloatOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
520 |
case vmIntrinsics::_getDoubleOpaque: |
52220
9c260a6b6471
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
mchung
parents:
50860
diff
changeset
|
521 |
case vmIntrinsics::_putReferenceOpaque: |
36316
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
522 |
case vmIntrinsics::_putBooleanOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
523 |
case vmIntrinsics::_putByteOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
524 |
case vmIntrinsics::_putShortOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
525 |
case vmIntrinsics::_putCharOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
526 |
case vmIntrinsics::_putIntOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
527 |
case vmIntrinsics::_putLongOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
528 |
case vmIntrinsics::_putFloatOpaque: |
7a83de7aabca
8148146: Integrate new internal Unsafe entry points, and basic intrinsic support for VarHandles
shade
parents:
35154
diff
changeset
|
529 |
case vmIntrinsics::_putDoubleOpaque: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
530 |
case vmIntrinsics::_getShortUnaligned: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
531 |
case vmIntrinsics::_getCharUnaligned: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
532 |
case vmIntrinsics::_getIntUnaligned: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
533 |
case vmIntrinsics::_getLongUnaligned: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
534 |
case vmIntrinsics::_putShortUnaligned: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
535 |
case vmIntrinsics::_putCharUnaligned: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
536 |
case vmIntrinsics::_putIntUnaligned: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
537 |
case vmIntrinsics::_putLongUnaligned: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
538 |
case vmIntrinsics::_loadFence: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
539 |
case vmIntrinsics::_storeFence: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
540 |
case vmIntrinsics::_fullFence: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
541 |
case vmIntrinsics::_currentThread: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
542 |
case vmIntrinsics::_isInterrupted: |
50113 | 543 |
#ifdef JFR_HAVE_INTRINSICS |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
544 |
case vmIntrinsics::_counterTime: |
40899
d7140c75c2c6
8163589: Add back class id intrinsic method for event based tracing
rehn
parents:
39419
diff
changeset
|
545 |
case vmIntrinsics::_getClassId: |
50113 | 546 |
case vmIntrinsics::_getEventWriter: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
547 |
#endif |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
548 |
case vmIntrinsics::_currentTimeMillis: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
549 |
case vmIntrinsics::_nanoTime: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
550 |
case vmIntrinsics::_allocateInstance: |
36553
203b2b5d149b
8150465: Unsafe methods to produce uninitialized arrays
shade
parents:
36316
diff
changeset
|
551 |
case vmIntrinsics::_allocateUninitializedArray: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
552 |
case vmIntrinsics::_newArray: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
553 |
case vmIntrinsics::_getLength: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
554 |
case vmIntrinsics::_copyOf: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
555 |
case vmIntrinsics::_copyOfRange: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
556 |
case vmIntrinsics::_clone: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
557 |
case vmIntrinsics::_isAssignableFrom: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
558 |
case vmIntrinsics::_isInstance: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
559 |
case vmIntrinsics::_getModifiers: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
560 |
case vmIntrinsics::_isInterface: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
561 |
case vmIntrinsics::_isArray: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
562 |
case vmIntrinsics::_isPrimitive: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
563 |
case vmIntrinsics::_getSuperclass: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
564 |
case vmIntrinsics::_getClassAccessFlags: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
565 |
case vmIntrinsics::_floatToRawIntBits: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
566 |
case vmIntrinsics::_floatToIntBits: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
567 |
case vmIntrinsics::_intBitsToFloat: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
568 |
case vmIntrinsics::_doubleToRawLongBits: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
569 |
case vmIntrinsics::_doubleToLongBits: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
570 |
case vmIntrinsics::_longBitsToDouble: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
571 |
case vmIntrinsics::_Reference_get: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
572 |
case vmIntrinsics::_Class_cast: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
573 |
case vmIntrinsics::_aescrypt_encryptBlock: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
574 |
case vmIntrinsics::_aescrypt_decryptBlock: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
575 |
case vmIntrinsics::_cipherBlockChaining_encryptAESCrypt: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
576 |
case vmIntrinsics::_cipherBlockChaining_decryptAESCrypt: |
35154 | 577 |
case vmIntrinsics::_counterMode_AESCrypt: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
578 |
case vmIntrinsics::_sha_implCompress: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
579 |
case vmIntrinsics::_sha2_implCompress: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
580 |
case vmIntrinsics::_sha5_implCompress: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
581 |
case vmIntrinsics::_digestBase_implCompressMB: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
582 |
case vmIntrinsics::_multiplyToLen: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
583 |
case vmIntrinsics::_squareToLen: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
584 |
case vmIntrinsics::_mulAdd: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
585 |
case vmIntrinsics::_montgomeryMultiply: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
586 |
case vmIntrinsics::_montgomerySquare: |
35110
f19bcdf40799
8143355: Update for addition of vectorizedMismatch intrinsic for x86
kvn
parents:
34186
diff
changeset
|
587 |
case vmIntrinsics::_vectorizedMismatch: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
588 |
case vmIntrinsics::_ghash_processBlocks: |
50860
480a96a43b62
8205528: Base64 encoding algorithm using AVX512 instructions
kvn
parents:
50113
diff
changeset
|
589 |
case vmIntrinsics::_base64_encodeBlock: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
590 |
case vmIntrinsics::_updateCRC32: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
591 |
case vmIntrinsics::_updateBytesCRC32: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
592 |
case vmIntrinsics::_updateByteBufferCRC32: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
593 |
case vmIntrinsics::_updateBytesCRC32C: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
594 |
case vmIntrinsics::_updateDirectByteBufferCRC32C: |
32581 | 595 |
case vmIntrinsics::_updateBytesAdler32: |
596 |
case vmIntrinsics::_updateByteBufferAdler32: |
|
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
597 |
case vmIntrinsics::_profileBoolean: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
598 |
case vmIntrinsics::_isCompileConstant: |
38240
28e0cafd5222
8155794: Move Objects.checkIndex BiFunction accepting methods to an internal package
psandoz
parents:
38017
diff
changeset
|
599 |
case vmIntrinsics::_Preconditions_checkIndex: |
31962
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
600 |
break; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
601 |
default: |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
602 |
return false; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
603 |
} |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
604 |
return true; |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
605 |
} |
d05e0a4d1b43
8130832: Extend the WhiteBox API to provide information about the availability of compiler intrinsics
zmajo
parents:
28395
diff
changeset
|
606 |
|
52325
0451e0a2f1f5
8177899: Tests fail due to code cache exhaustion on machines with many cores
thartmann
parents:
52220
diff
changeset
|
607 |
int C2Compiler::initial_code_buffer_size(int const_size) { |
0451e0a2f1f5
8177899: Tests fail due to code cache exhaustion on machines with many cores
thartmann
parents:
52220
diff
changeset
|
608 |
// See Compile::init_scratch_buffer_blob |
0451e0a2f1f5
8177899: Tests fail due to code cache exhaustion on machines with many cores
thartmann
parents:
52220
diff
changeset
|
609 |
int locs_size = sizeof(relocInfo) * Compile::MAX_locs_size; |
0451e0a2f1f5
8177899: Tests fail due to code cache exhaustion on machines with many cores
thartmann
parents:
52220
diff
changeset
|
610 |
int slop = 2 * CodeSection::end_slop(); // space between sections |
0451e0a2f1f5
8177899: Tests fail due to code cache exhaustion on machines with many cores
thartmann
parents:
52220
diff
changeset
|
611 |
return Compile::MAX_inst_size + Compile::MAX_stubs_size + const_size + slop + locs_size; |
26796 | 612 |
} |