src/cpu/zero/vm/methodHandles_zero.hpp

changeset 3045
a3142bdb6707
child 3434
15d394228cfa
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/cpu/zero/vm/methodHandles_zero.hpp	Mon Aug 08 05:49:04 2011 -0700
     1.3 @@ -0,0 +1,71 @@
     1.4 +/*
     1.5 + * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright 2011 Red Hat, Inc.
     1.7 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8 + *
     1.9 + * This code is free software; you can redistribute it and/or modify it
    1.10 + * under the terms of the GNU General Public License version 2 only, as
    1.11 + * published by the Free Software Foundation.
    1.12 + *
    1.13 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.14 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.15 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.16 + * version 2 for more details (a copy is included in the LICENSE file that
    1.17 + * accompanied this code).
    1.18 + *
    1.19 + * You should have received a copy of the GNU General Public License version
    1.20 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.21 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.22 + *
    1.23 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    1.24 + * or visit www.oracle.com if you need additional information or have any
    1.25 + * questions.
    1.26 + *
    1.27 + */
    1.28 +
    1.29 +
    1.30 +// Adapters
    1.31 +enum /* platform_dependent_constants */ {
    1.32 +  adapter_code_size = 0
    1.33 +};
    1.34 +
    1.35 +#define TARGET_ARCH_NYI_6939861 1
    1.36 +// ..#ifdef TARGET_ARCH_NYI_6939861
    1.37 +// ..  // Here are some backward compatible declarations until the 6939861 ports are updated.
    1.38 +// ..  #define _adapter_flyby    (_EK_LIMIT + 10)
    1.39 +// ..  #define _adapter_ricochet (_EK_LIMIT + 11)
    1.40 +// ..  #define _adapter_opt_spread_1    _adapter_opt_spread_1_ref
    1.41 +// ..  #define _adapter_opt_spread_more _adapter_opt_spread_ref
    1.42 +// ..  enum {
    1.43 +// ..    _INSERT_NO_MASK   = -1,
    1.44 +// ..    _INSERT_REF_MASK  = 0,
    1.45 +// ..    _INSERT_INT_MASK  = 1,
    1.46 +// ..    _INSERT_LONG_MASK = 3
    1.47 +// ..  };
    1.48 +// ..  static void get_ek_bound_mh_info(EntryKind ek, BasicType& arg_type, int& arg_mask, int& arg_slots) {
    1.49 +// ..    arg_type = ek_bound_mh_arg_type(ek);
    1.50 +// ..    arg_mask = 0;
    1.51 +// ..    arg_slots = type2size[arg_type];;
    1.52 +// ..  }
    1.53 +// ..  static void get_ek_adapter_opt_swap_rot_info(EntryKind ek, int& swap_bytes, int& rotate) {
    1.54 +// ..    int swap_slots = ek_adapter_opt_swap_slots(ek);
    1.55 +// ..    rotate = ek_adapter_opt_swap_mode(ek);
    1.56 +// ..    swap_bytes = swap_slots * Interpreter::stackElementSize;
    1.57 +// ..  }
    1.58 +// ..  static int get_ek_adapter_opt_spread_info(EntryKind ek) {
    1.59 +// ..    return ek_adapter_opt_spread_count(ek);
    1.60 +// ..  }
    1.61 +// ..
    1.62 +// ..  static void insert_arg_slots(MacroAssembler* _masm,
    1.63 +// ..                               RegisterOrConstant arg_slots,
    1.64 +// ..                               int arg_mask,
    1.65 +// ..                               Register argslot_reg,
    1.66 +// ..                               Register temp_reg, Register temp2_reg, Register temp3_reg = noreg);
    1.67 +// ..
    1.68 +// ..  static void remove_arg_slots(MacroAssembler* _masm,
    1.69 +// ..                               RegisterOrConstant arg_slots,
    1.70 +// ..                               Register argslot_reg,
    1.71 +// ..                               Register temp_reg, Register temp2_reg, Register temp3_reg = noreg);
    1.72 +// ..
    1.73 +// ..  static void trace_method_handle(MacroAssembler* _masm, const char* adaptername) PRODUCT_RETURN;
    1.74 +// ..#endif //TARGET_ARCH_NYI_6939861

mercurial