Mercurial > hg > truffle
comparison src/share/vm/interpreter/interpreterRuntime.cpp @ 6942:64672b22ef05
8001658: No need to pass resolved_references as argument to ConstantPoolCacheEntry::set_method_handle_common
Reviewed-by: twisti
Contributed-by: Bharadwaj Yadavalli <bharadwaj.yadavalli@oracle.com>
author | twisti |
---|---|
date | Fri, 02 Nov 2012 12:30:46 -0700 |
parents | 6e5a59a8e4a7 |
children | e522a00b91aa 80e866b1d053 |
comparison
equal
deleted
inserted
replaced
6931:ca8168203393 | 6942:64672b22ef05 |
---|---|
731 JvmtiHideSingleStepping jhss(thread); | 731 JvmtiHideSingleStepping jhss(thread); |
732 LinkResolver::resolve_invoke(info, Handle(), pool, | 732 LinkResolver::resolve_invoke(info, Handle(), pool, |
733 get_index_u2_cpcache(thread, bytecode), bytecode, CHECK); | 733 get_index_u2_cpcache(thread, bytecode), bytecode, CHECK); |
734 } // end JvmtiHideSingleStepping | 734 } // end JvmtiHideSingleStepping |
735 | 735 |
736 cache_entry(thread)->set_method_handle( | 736 cache_entry(thread)->set_method_handle(pool, info); |
737 pool, | |
738 info.resolved_method(), | |
739 info.resolved_appendix(), | |
740 info.resolved_method_type(), | |
741 pool->resolved_references()); | |
742 } | 737 } |
743 IRT_END | 738 IRT_END |
744 | 739 |
745 | 740 |
746 // First time execution: Resolve symbols, create a permanent CallSite object. | 741 // First time execution: Resolve symbols, create a permanent CallSite object. |
760 LinkResolver::resolve_invoke(info, Handle(), pool, | 755 LinkResolver::resolve_invoke(info, Handle(), pool, |
761 index, bytecode, CHECK); | 756 index, bytecode, CHECK); |
762 } // end JvmtiHideSingleStepping | 757 } // end JvmtiHideSingleStepping |
763 | 758 |
764 ConstantPoolCacheEntry* cp_cache_entry = pool->invokedynamic_cp_cache_entry_at(index); | 759 ConstantPoolCacheEntry* cp_cache_entry = pool->invokedynamic_cp_cache_entry_at(index); |
765 cp_cache_entry->set_dynamic_call( | 760 cp_cache_entry->set_dynamic_call(pool, info); |
766 pool, | |
767 info.resolved_method(), | |
768 info.resolved_appendix(), | |
769 info.resolved_method_type(), | |
770 pool->resolved_references()); | |
771 } | 761 } |
772 IRT_END | 762 IRT_END |
773 | 763 |
774 | 764 |
775 //------------------------------------------------------------------------------------------------------------------------ | 765 //------------------------------------------------------------------------------------------------------------------------ |