312 ((has_method_type ? 1 : 0) << has_method_type_shift) | |
312 ((has_method_type ? 1 : 0) << has_method_type_shift) | |
313 ( 1 << is_final_shift ), |
313 ( 1 << is_final_shift ), |
314 adapter->size_of_parameters()); |
314 adapter->size_of_parameters()); |
315 |
315 |
316 if (TraceInvokeDynamic) { |
316 if (TraceInvokeDynamic) { |
317 tty->print_cr("set_method_handle bc=%d appendix="PTR_FORMAT"%s method_type="PTR_FORMAT"%s method="PTR_FORMAT" ", |
317 tty->print_cr("set_method_handle bc=%d appendix=" PTR_FORMAT "%s method_type=" PTR_FORMAT "%s method=" PTR_FORMAT " ", |
318 invoke_code, |
318 invoke_code, |
319 (void *)appendix(), (has_appendix ? "" : " (unused)"), |
319 (void *)appendix(), (has_appendix ? "" : " (unused)"), |
320 (void *)method_type(), (has_method_type ? "" : " (unused)"), |
320 (void *)method_type(), (has_method_type ? "" : " (unused)"), |
321 (intptr_t)adapter()); |
321 (intptr_t)adapter()); |
322 adapter->print(); |
322 adapter->print(); |
526 |
526 |
527 void ConstantPoolCacheEntry::print(outputStream* st, int index) const { |
527 void ConstantPoolCacheEntry::print(outputStream* st, int index) const { |
528 // print separator |
528 // print separator |
529 if (index == 0) st->print_cr(" -------------"); |
529 if (index == 0) st->print_cr(" -------------"); |
530 // print entry |
530 // print entry |
531 st->print("%3d ("PTR_FORMAT") ", index, (intptr_t)this); |
531 st->print("%3d (" PTR_FORMAT ") ", index, (intptr_t)this); |
532 st->print_cr("[%02x|%02x|%5d]", bytecode_2(), bytecode_1(), |
532 st->print_cr("[%02x|%02x|%5d]", bytecode_2(), bytecode_1(), |
533 constant_pool_index()); |
533 constant_pool_index()); |
534 st->print_cr(" [ "PTR_FORMAT"]", (intptr_t)_f1); |
534 st->print_cr(" [ " PTR_FORMAT "]", (intptr_t)_f1); |
535 st->print_cr(" [ "PTR_FORMAT"]", (intptr_t)_f2); |
535 st->print_cr(" [ " PTR_FORMAT "]", (intptr_t)_f2); |
536 st->print_cr(" [ "PTR_FORMAT"]", (intptr_t)_flags); |
536 st->print_cr(" [ " PTR_FORMAT "]", (intptr_t)_flags); |
537 st->print_cr(" -------------"); |
537 st->print_cr(" -------------"); |
538 } |
538 } |
539 |
539 |
540 void ConstantPoolCacheEntry::verify(outputStream* st) const { |
540 void ConstantPoolCacheEntry::verify(outputStream* st) const { |
541 // not implemented yet |
541 // not implemented yet |