Mercurial > hg > truffle
comparison src/share/vm/ci/ciEnv.cpp @ 1662:e0ba4e04c839
6969574: invokedynamic call sites deoptimize instead of executing
Reviewed-by: kvn
author | jrose |
---|---|
date | Fri, 16 Jul 2010 18:14:19 -0700 |
parents | 136b78722a08 |
children | d5d065957597 |
comparison
equal
deleted
inserted
replaced
1661:01b172b8cd7c | 1662:e0ba4e04c839 |
---|---|
726 ciSymbol* sig_sym = get_object(cpool->signature_ref_at(index))->as_symbol(); | 726 ciSymbol* sig_sym = get_object(cpool->signature_ref_at(index))->as_symbol(); |
727 return get_unloaded_method(mh_klass, ciSymbol::invokeExact_name(), sig_sym); | 727 return get_unloaded_method(mh_klass, ciSymbol::invokeExact_name(), sig_sym); |
728 } | 728 } |
729 | 729 |
730 // Get the invoker methodOop from the constant pool. | 730 // Get the invoker methodOop from the constant pool. |
731 intptr_t f2_value = cpool->cache()->main_entry_at(index)->f2(); | 731 oop f1_value = cpool->cache()->main_entry_at(index)->f1(); |
732 methodOop signature_invoker = methodOop(f2_value); | 732 methodOop signature_invoker = methodOop(f1_value); |
733 assert(signature_invoker != NULL && signature_invoker->is_method() && signature_invoker->is_method_handle_invoke(), | 733 assert(signature_invoker != NULL && signature_invoker->is_method() && signature_invoker->is_method_handle_invoke(), |
734 "correct result from LinkResolver::resolve_invokedynamic"); | 734 "correct result from LinkResolver::resolve_invokedynamic"); |
735 | 735 |
736 return get_object(signature_invoker)->as_method(); | 736 return get_object(signature_invoker)->as_method(); |
737 } | 737 } |