@@ -869,10 +869,8 @@ ciMethod* ciEnv::get_method_by_index_impl(const constantPoolHandle& cpool,
869869 // Jump through a patchable call site, which is initially a deopt routine.
870870 // Patch the call site to the nmethod entry point of the static compiled lambda form.
871871 // As with other two-component call sites, both values must be independently verified.
872- int indy_index = cpool->decode_invokedynamic_index (index);
873- assert (indy_index >= 0 , " should be" );
874- assert (indy_index < cpool->cache ()->resolved_indy_entries_length (), " impossible" );
875- Method* adapter = cpool->resolved_indy_entry_at (indy_index)->method ();
872+ assert (index < cpool->cache ()->resolved_indy_entries_length (), " impossible" );
873+ Method* adapter = cpool->resolved_indy_entry_at (index)->method ();
876874 // Resolved if the adapter is non null.
877875 if (adapter != nullptr ) {
878876 return get_method (adapter);
@@ -1499,21 +1497,20 @@ void ciEnv::record_call_site_method(Thread* thread, Method* adapter) {
14991497
15001498// Process an invokedynamic call site and record any dynamic locations.
15011499void ciEnv::process_invokedynamic (const constantPoolHandle &cp, int indy_index, JavaThread* thread) {
1502- int index = cp->decode_invokedynamic_index (indy_index);
1503- ResolvedIndyEntry* indy_info = cp->resolved_indy_entry_at (index);
1500+ ResolvedIndyEntry* indy_info = cp->resolved_indy_entry_at (indy_index);
15041501 if (indy_info->method () != nullptr ) {
15051502 // process the adapter
15061503 Method* adapter = indy_info->method ();
15071504 record_call_site_method (thread, adapter);
15081505 // process the appendix
1509- oop appendix = cp->resolved_reference_from_indy (index );
1506+ oop appendix = cp->resolved_reference_from_indy (indy_index );
15101507 {
15111508 RecordLocation fp (this , " <appendix>" );
15121509 record_call_site_obj (thread, appendix);
15131510 }
15141511 // process the BSM
15151512 int pool_index = indy_info->constant_pool_index ();
1516- BootstrapInfo bootstrap_specifier (cp, pool_index, index );
1513+ BootstrapInfo bootstrap_specifier (cp, pool_index, indy_index );
15171514 oop bsm = cp->resolve_possibly_cached_constant_at (bootstrap_specifier.bsm_index (), thread);
15181515 {
15191516 RecordLocation fp (this , " <bsm>" );
0 commit comments