twisti@3045: /* mikael@4153: * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. twisti@3045: * Copyright 2011 Red Hat, Inc. twisti@3045: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. twisti@3045: * twisti@3045: * This code is free software; you can redistribute it and/or modify it twisti@3045: * under the terms of the GNU General Public License version 2 only, as twisti@3045: * published by the Free Software Foundation. twisti@3045: * twisti@3045: * This code is distributed in the hope that it will be useful, but WITHOUT twisti@3045: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or twisti@3045: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License twisti@3045: * version 2 for more details (a copy is included in the LICENSE file that twisti@3045: * accompanied this code). twisti@3045: * twisti@3045: * You should have received a copy of the GNU General Public License version twisti@3045: * 2 along with this work; if not, write to the Free Software Foundation, twisti@3045: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. twisti@3045: * twisti@3045: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA twisti@3045: * or visit www.oracle.com if you need additional information or have any twisti@3045: * questions. twisti@3045: * twisti@3045: */ twisti@3045: twisti@3045: twisti@3045: // Adapters twisti@3045: enum /* platform_dependent_constants */ { twisti@4237: adapter_code_size = sizeof(ZeroEntry) * (Interpreter::method_handle_invoke_LAST - Interpreter::method_handle_invoke_FIRST + 1) twisti@3045: }; twisti@3045: twisti@4237: private: twisti@4237: static oop popFromStack(TRAPS); twisti@4237: static void invoke_target(Method* method, TRAPS); twisti@4237: static int method_handle_entry_invokeBasic(Method* method, intptr_t UNUSED, TRAPS); twisti@4237: static int method_handle_entry_linkToStaticOrSpecial(Method* method, intptr_t UNUSED, TRAPS); twisti@4237: static int method_handle_entry_linkToVirtual(Method* method, intptr_t UNUSED, TRAPS); twisti@4237: static int method_handle_entry_linkToInterface(Method* method, intptr_t UNUSED, TRAPS); twisti@4237: static int method_handle_entry_invalid(Method* method, intptr_t UNUSED, TRAPS);