hotspot/src/cpu/zero/vm/methodHandles_zero.hpp
author twisti
Mon, 29 Oct 2012 11:08:48 -0700
changeset 14294 130e947dfbe6
parent 13963 e5b53c306fb5
permissions -rw-r--r--
8000780: make Zero build and run with JDK8 Reviewed-by: coleenp, dholmes, twisti Contributed-by: Roman Kennke <rkennke@redhat.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10260
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
     1
/*
13963
e5b53c306fb5 7197424: update copyright year to match last edit in jdk8 hotspot repository
mikael
parents: 11487
diff changeset
     2
 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
10260
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
     3
 * Copyright 2011 Red Hat, Inc.
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
     5
 *
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
     8
 * published by the Free Software Foundation.
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
     9
 *
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    10
 * This code is distributed in the hope that it will be useful, but WITHOUT
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    11
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    12
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    13
 * version 2 for more details (a copy is included in the LICENSE file that
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    14
 * accompanied this code).
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    15
 *
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    16
 * You should have received a copy of the GNU General Public License version
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    17
 * 2 along with this work; if not, write to the Free Software Foundation,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    18
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    19
 *
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    20
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    21
 * or visit www.oracle.com if you need additional information or have any
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    22
 * questions.
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    23
 *
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    24
 */
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    25
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    26
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    27
// Adapters
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    28
enum /* platform_dependent_constants */ {
14294
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13963
diff changeset
    29
  adapter_code_size = sizeof(ZeroEntry) * (Interpreter::method_handle_invoke_LAST - Interpreter::method_handle_invoke_FIRST + 1)
10260
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    30
};
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    31
14294
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13963
diff changeset
    32
private:
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13963
diff changeset
    33
  static oop popFromStack(TRAPS);
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13963
diff changeset
    34
  static void invoke_target(Method* method, TRAPS);
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13963
diff changeset
    35
  static int method_handle_entry_invokeBasic(Method* method, intptr_t UNUSED, TRAPS);
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13963
diff changeset
    36
  static int method_handle_entry_linkToStaticOrSpecial(Method* method, intptr_t UNUSED, TRAPS);
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13963
diff changeset
    37
  static int method_handle_entry_linkToVirtual(Method* method, intptr_t UNUSED, TRAPS);
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13963
diff changeset
    38
  static int method_handle_entry_linkToInterface(Method* method, intptr_t UNUSED, TRAPS);
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13963
diff changeset
    39
  static int method_handle_entry_invalid(Method* method, intptr_t UNUSED, TRAPS);