@@ -239,7 +239,7 @@ void TemplateTable::sipush() {
239239 __ get_2_byte_integer_at_bcp (1 , R17_tos, InterpreterMacroAssembler::Signed);
240240}
241241
242- void TemplateTable::ldc (bool wide ) {
242+ void TemplateTable::ldc (LdcType type ) {
243243 Register Rscratch1 = R11_scratch1,
244244 Rscratch2 = R12_scratch2,
245245 Rcpool = R3_ARG1;
@@ -248,7 +248,7 @@ void TemplateTable::ldc(bool wide) {
248248 Label notInt, notFloat, notClass, exit;
249249
250250 __ get_cpool_and_tags (Rcpool, Rscratch2); // Set Rscratch2 = &tags.
251- if (wide ) { // Read index.
251+ if (is_ldc_wide (type) ) { // Read index.
252252 __ get_2_byte_integer_at_bcp (1 , Rscratch1, InterpreterMacroAssembler::Unsigned);
253253 } else {
254254 __ lbz (Rscratch1, 1 , R14_bcp);
@@ -270,7 +270,7 @@ void TemplateTable::ldc(bool wide) {
270270 __ crnor (CCR0, Assembler::equal, CCR1, Assembler::equal); // Neither resolved class nor unresolved case from above?
271271 __ beq (CCR0, notClass);
272272
273- __ li (R4, wide ? 1 : 0 );
273+ __ li (R4, is_ldc_wide (type) ? 1 : 0 );
274274 call_VM (R17_tos, CAST_FROM_FN_PTR (address, InterpreterRuntime::ldc), R4);
275275 __ push (atos);
276276 __ b (exit);
@@ -303,10 +303,10 @@ void TemplateTable::ldc(bool wide) {
303303}
304304
305305// Fast path for caching oop constants.
306- void TemplateTable::fast_aldc (bool wide ) {
306+ void TemplateTable::fast_aldc (LdcType type ) {
307307 transition (vtos, atos);
308308
309- int index_size = wide ? sizeof (u2) : sizeof (u1);
309+ int index_size = is_ldc_wide (type) ? sizeof (u2) : sizeof (u1);
310310 Label is_null;
311311
312312 // We are resolved if the resolved reference cache entry contains a
0 commit comments