hotspot/src/share/vm/ci/ciMemberName.cpp
changeset 13728 882756847a04
parent 13391 30245956af37
equal deleted inserted replaced
13727:caf5eb7dd4a7 13728:882756847a04
    32 // ciMemberName::get_vmtarget
    32 // ciMemberName::get_vmtarget
    33 //
    33 //
    34 // Return: MN.vmtarget
    34 // Return: MN.vmtarget
    35 ciMethod* ciMemberName::get_vmtarget() const {
    35 ciMethod* ciMemberName::get_vmtarget() const {
    36   VM_ENTRY_MARK;
    36   VM_ENTRY_MARK;
    37   oop vmtarget_oop = java_lang_invoke_MemberName::vmtarget(get_oop());
    37   // FIXME: Share code with ciMethodHandle::get_vmtarget
    38   return CURRENT_ENV->get_object(vmtarget_oop)->as_method();
    38   Metadata* vmtarget = java_lang_invoke_MemberName::vmtarget(get_oop());
       
    39   if (vmtarget->is_method())
       
    40     return CURRENT_ENV->get_method((Method*) vmtarget);
       
    41   // FIXME: What if the vmtarget is a Klass?
       
    42   assert(false, "");
       
    43   return NULL;
    39 }
    44 }