methodHandles_zero.hpp revision 2672
2672N/A/*
2672N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2672N/A * Copyright 2011 Red Hat, Inc.
2672N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2672N/A *
2672N/A * This code is free software; you can redistribute it and/or modify it
2672N/A * under the terms of the GNU General Public License version 2 only, as
2672N/A * published by the Free Software Foundation.
2672N/A *
2672N/A * This code is distributed in the hope that it will be useful, but WITHOUT
2672N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2672N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2672N/A * version 2 for more details (a copy is included in the LICENSE file that
2672N/A * accompanied this code).
2672N/A *
2672N/A * You should have received a copy of the GNU General Public License version
2672N/A * 2 along with this work; if not, write to the Free Software Foundation,
2672N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2672N/A *
2672N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2672N/A * or visit www.oracle.com if you need additional information or have any
2672N/A * questions.
2672N/A *
2672N/A */
2672N/A
2672N/A
2672N/A// Adapters
2672N/Aenum /* platform_dependent_constants */ {
2672N/A adapter_code_size = 0
2672N/A};
2672N/A
2672N/A#define TARGET_ARCH_NYI_6939861 1
2672N/A// ..#ifdef TARGET_ARCH_NYI_6939861
2672N/A// .. // Here are some backward compatible declarations until the 6939861 ports are updated.
2672N/A// .. #define _adapter_flyby (_EK_LIMIT + 10)
2672N/A// .. #define _adapter_ricochet (_EK_LIMIT + 11)
2672N/A// .. #define _adapter_opt_spread_1 _adapter_opt_spread_1_ref
2672N/A// .. #define _adapter_opt_spread_more _adapter_opt_spread_ref
2672N/A// .. enum {
2672N/A// .. _INSERT_NO_MASK = -1,
2672N/A// .. _INSERT_REF_MASK = 0,
2672N/A// .. _INSERT_INT_MASK = 1,
2672N/A// .. _INSERT_LONG_MASK = 3
2672N/A// .. };
2672N/A// .. static void get_ek_bound_mh_info(EntryKind ek, BasicType& arg_type, int& arg_mask, int& arg_slots) {
2672N/A// .. arg_type = ek_bound_mh_arg_type(ek);
2672N/A// .. arg_mask = 0;
2672N/A// .. arg_slots = type2size[arg_type];;
2672N/A// .. }
2672N/A// .. static void get_ek_adapter_opt_swap_rot_info(EntryKind ek, int& swap_bytes, int& rotate) {
2672N/A// .. int swap_slots = ek_adapter_opt_swap_slots(ek);
2672N/A// .. rotate = ek_adapter_opt_swap_mode(ek);
2672N/A// .. swap_bytes = swap_slots * Interpreter::stackElementSize;
2672N/A// .. }
2672N/A// .. static int get_ek_adapter_opt_spread_info(EntryKind ek) {
2672N/A// .. return ek_adapter_opt_spread_count(ek);
2672N/A// .. }
2672N/A// ..
2672N/A// .. static void insert_arg_slots(MacroAssembler* _masm,
2672N/A// .. RegisterOrConstant arg_slots,
2672N/A// .. int arg_mask,
2672N/A// .. Register argslot_reg,
2672N/A// .. Register temp_reg, Register temp2_reg, Register temp3_reg = noreg);
2672N/A// ..
2672N/A// .. static void remove_arg_slots(MacroAssembler* _masm,
2672N/A// .. RegisterOrConstant arg_slots,
2672N/A// .. Register argslot_reg,
2672N/A// .. Register temp_reg, Register temp2_reg, Register temp3_reg = noreg);
2672N/A// ..
2672N/A// .. static void trace_method_handle(MacroAssembler* _masm, const char* adaptername) PRODUCT_RETURN;
2672N/A// ..#endif //TARGET_ARCH_NYI_6939861