src/cpu/zero/vm/methodHandles_zero.hpp

Wed, 22 Jan 2014 17:42:23 -0800

author
kvn
date
Wed, 22 Jan 2014 17:42:23 -0800
changeset 6503
a9becfeecd1b
parent 4237
a3e2f723f2a5
child 6876
710a3c8b516e
permissions
-rw-r--r--

Merge

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

mercurial