ciCallSite.cpp revision 1138
1138N/A/*
1138N/A * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
1138N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1138N/A *
1138N/A * This code is free software; you can redistribute it and/or modify it
1138N/A * under the terms of the GNU General Public License version 2 only, as
1138N/A * published by the Free Software Foundation.
1138N/A *
1138N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1138N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1138N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1138N/A * version 2 for more details (a copy is included in the LICENSE file that
1138N/A * accompanied this code).
1138N/A *
1138N/A * You should have received a copy of the GNU General Public License version
1138N/A * 2 along with this work; if not, write to the Free Software Foundation,
1138N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1138N/A *
1138N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1138N/A * CA 95054 USA or visit www.sun.com if you need additional information or
1138N/A * have any questions.
1138N/A *
1138N/A */
1138N/A
1138N/A#include "incls/_precompiled.incl"
1138N/A#include "incls/_ciCallSite.cpp.incl"
1138N/A
1138N/A// ciCallSite
1138N/A
1138N/A// ------------------------------------------------------------------
1138N/A// ciCallSite::get_target
1138N/A//
1138N/A// Return the target MethodHandle of this CallSite.
1138N/AciMethodHandle* ciCallSite::get_target() const {
1138N/A VM_ENTRY_MARK;
1138N/A oop method_handle_oop = java_dyn_CallSite::target(get_oop());
1138N/A return CURRENT_ENV->get_object(method_handle_oop)->as_method_handle();
1138N/A}
1138N/A
1138N/A// ------------------------------------------------------------------
1138N/A// ciCallSite::print
1138N/A//
1138N/A// Print debugging information about the CallSite.
1138N/Avoid ciCallSite::print() {
1138N/A Unimplemented();
1138N/A}