Mercurial > hg > graal-jvmci-8
comparison src/share/vm/ci/ciMethod.cpp @ 1818:c93c652551b5
6986944: JSR 292 assert(caller_nm->is_method_handle_return(caller_frame.pc())) failed: must be MH call site
Reviewed-by: never, kvn
author | twisti |
---|---|
date | Fri, 24 Sep 2010 03:51:43 -0700 |
parents | d5d065957597 |
children | 3f9a70eb8b1f |
comparison
equal
deleted
inserted
replaced
1817:c40600e85311 | 1818:c93c652551b5 |
---|---|
733 // ciMethod::is_method_handle_invoke | 733 // ciMethod::is_method_handle_invoke |
734 // | 734 // |
735 // Return true if the method is an instance of one of the two | 735 // Return true if the method is an instance of one of the two |
736 // signature-polymorphic MethodHandle methods, invokeExact or invokeGeneric. | 736 // signature-polymorphic MethodHandle methods, invokeExact or invokeGeneric. |
737 bool ciMethod::is_method_handle_invoke() const { | 737 bool ciMethod::is_method_handle_invoke() const { |
738 if (!is_loaded()) return false; | 738 if (!is_loaded()) { |
739 bool flag = (holder()->name() == ciSymbol::java_dyn_MethodHandle() && | |
740 methodOopDesc::is_method_handle_invoke_name(name()->sid())); | |
741 return flag; | |
742 } | |
739 VM_ENTRY_MARK; | 743 VM_ENTRY_MARK; |
740 return get_methodOop()->is_method_handle_invoke(); | 744 return get_methodOop()->is_method_handle_invoke(); |
741 } | 745 } |
742 | 746 |
743 // ------------------------------------------------------------------ | 747 // ------------------------------------------------------------------ |