3932N/A/*
3932N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
3932N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3932N/A *
3932N/A * This code is free software; you can redistribute it and/or modify it
3932N/A * under the terms of the GNU General Public License version 2 only, as
3932N/A * published by the Free Software Foundation.
3932N/A *
3932N/A * This code is distributed in the hope that it will be useful, but WITHOUT
3932N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3932N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3932N/A * version 2 for more details (a copy is included in the LICENSE file that
3932N/A * accompanied this code).
3932N/A *
3932N/A * You should have received a copy of the GNU General Public License version
3932N/A * 2 along with this work; if not, write to the Free Software Foundation,
3932N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3932N/A *
3932N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3932N/A * or visit www.oracle.com if you need additional information or have any
3932N/A * questions.
3932N/A *
3932N/A */
3932N/A
3932N/A#include "precompiled.hpp"
3932N/A#include "ci/ciClassList.hpp"
3932N/A#include "ci/ciMemberName.hpp"
3932N/A#include "ci/ciUtilities.hpp"
3932N/A#include "classfile/javaClasses.hpp"
3932N/A
3932N/A// ------------------------------------------------------------------
3932N/A// ciMemberName::get_vmtarget
3932N/A//
3932N/A// Return: MN.vmtarget
3932N/AciMethod* ciMemberName::get_vmtarget() const {
3932N/A VM_ENTRY_MARK;
3932N/A oop vmtarget_oop = java_lang_invoke_MemberName::vmtarget(get_oop());
3932N/A return CURRENT_ENV->get_object(vmtarget_oop)->as_method();
3932N/A}