Mercurial > hg > graal-jvmci-8
comparison src/share/vm/ci/ciMethod.cpp @ 1579:e9ff18c4ace7
Merge
author | jrose |
---|---|
date | Wed, 02 Jun 2010 22:45:42 -0700 |
parents | c18cbe5936b8 61b2245abf36 |
children | 8099e71601df |
comparison
equal
deleted
inserted
replaced
1562:dfe27f03244a | 1579:e9ff18c4ace7 |
---|---|
688 return count; | 688 return count; |
689 } | 689 } |
690 | 690 |
691 // ------------------------------------------------------------------ | 691 // ------------------------------------------------------------------ |
692 // invokedynamic support | 692 // invokedynamic support |
693 // | 693 |
694 // ------------------------------------------------------------------ | |
695 // ciMethod::is_method_handle_invoke | |
696 // | |
697 // Return true if the method is a MethodHandle target. | |
694 bool ciMethod::is_method_handle_invoke() const { | 698 bool ciMethod::is_method_handle_invoke() const { |
695 check_is_loaded(); | 699 bool flag = (holder()->name() == ciSymbol::java_dyn_MethodHandle() && |
696 bool flag = ((flags().as_int() & JVM_MH_INVOKE_BITS) == JVM_MH_INVOKE_BITS); | 700 methodOopDesc::is_method_handle_invoke_name(name()->sid())); |
697 #ifdef ASSERT | 701 #ifdef ASSERT |
698 { | 702 if (is_loaded()) { |
699 VM_ENTRY_MARK; | 703 bool flag2 = ((flags().as_int() & JVM_MH_INVOKE_BITS) == JVM_MH_INVOKE_BITS); |
700 bool flag2 = get_methodOop()->is_method_handle_invoke(); | 704 { |
701 assert(flag == flag2, "consistent"); | 705 VM_ENTRY_MARK; |
706 bool flag3 = get_methodOop()->is_method_handle_invoke(); | |
707 assert(flag2 == flag3, "consistent"); | |
708 assert(flag == flag3, "consistent"); | |
709 } | |
702 } | 710 } |
703 #endif //ASSERT | 711 #endif //ASSERT |
704 return flag; | 712 return flag; |
705 } | 713 } |
706 | 714 |
715 // ------------------------------------------------------------------ | |
716 // ciMethod::is_method_handle_adapter | |
717 // | |
718 // Return true if the method is a generated MethodHandle adapter. | |
707 bool ciMethod::is_method_handle_adapter() const { | 719 bool ciMethod::is_method_handle_adapter() const { |
708 check_is_loaded(); | 720 check_is_loaded(); |
709 VM_ENTRY_MARK; | 721 VM_ENTRY_MARK; |
710 return get_methodOop()->is_method_handle_adapter(); | 722 return get_methodOop()->is_method_handle_adapter(); |
711 } | 723 } |