hotspot/src/cpu/zero/vm/methodHandles_zero.hpp
author twisti
Mon, 08 Aug 2011 05:49:04 -0700
changeset 10260 b7007c4de557
child 11487 f45d945367d4
permissions -rw-r--r--
7071823: Zero: zero/shark doesn't build after b147-fcs Reviewed-by: gbenson, twisti Contributed-by: Chris Phillips <chphilli@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
/*
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
     2
 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
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 */ {
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    29
  adapter_code_size = 0
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
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    32
#define TARGET_ARCH_NYI_6939861 1
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    33
// ..#ifdef TARGET_ARCH_NYI_6939861
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    34
// ..  // Here are some backward compatible declarations until the 6939861 ports are updated.
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    35
// ..  #define _adapter_flyby    (_EK_LIMIT + 10)
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    36
// ..  #define _adapter_ricochet (_EK_LIMIT + 11)
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    37
// ..  #define _adapter_opt_spread_1    _adapter_opt_spread_1_ref
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    38
// ..  #define _adapter_opt_spread_more _adapter_opt_spread_ref
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    39
// ..  enum {
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    40
// ..    _INSERT_NO_MASK   = -1,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    41
// ..    _INSERT_REF_MASK  = 0,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    42
// ..    _INSERT_INT_MASK  = 1,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    43
// ..    _INSERT_LONG_MASK = 3
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    44
// ..  };
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    45
// ..  static void get_ek_bound_mh_info(EntryKind ek, BasicType& arg_type, int& arg_mask, int& arg_slots) {
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    46
// ..    arg_type = ek_bound_mh_arg_type(ek);
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    47
// ..    arg_mask = 0;
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    48
// ..    arg_slots = type2size[arg_type];;
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    49
// ..  }
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    50
// ..  static void get_ek_adapter_opt_swap_rot_info(EntryKind ek, int& swap_bytes, int& rotate) {
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    51
// ..    int swap_slots = ek_adapter_opt_swap_slots(ek);
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    52
// ..    rotate = ek_adapter_opt_swap_mode(ek);
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    53
// ..    swap_bytes = swap_slots * Interpreter::stackElementSize;
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    54
// ..  }
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    55
// ..  static int get_ek_adapter_opt_spread_info(EntryKind ek) {
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    56
// ..    return ek_adapter_opt_spread_count(ek);
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    57
// ..  }
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    58
// ..
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    59
// ..  static void insert_arg_slots(MacroAssembler* _masm,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    60
// ..                               RegisterOrConstant arg_slots,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    61
// ..                               int arg_mask,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    62
// ..                               Register argslot_reg,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    63
// ..                               Register temp_reg, Register temp2_reg, Register temp3_reg = noreg);
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    64
// ..
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    65
// ..  static void remove_arg_slots(MacroAssembler* _masm,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    66
// ..                               RegisterOrConstant arg_slots,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    67
// ..                               Register argslot_reg,
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    68
// ..                               Register temp_reg, Register temp2_reg, Register temp3_reg = noreg);
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    69
// ..
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    70
// ..  static void trace_method_handle(MacroAssembler* _masm, const char* adaptername) PRODUCT_RETURN;
b7007c4de557 7071823: Zero: zero/shark doesn't build after b147-fcs
twisti
parents:
diff changeset
    71
// ..#endif //TARGET_ARCH_NYI_6939861