Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.hpp
32285 views
/*1* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2014, Red Hat Inc. All rights reserved.3* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4*5* This code is free software; you can redistribute it and/or modify it6* under the terms of the GNU General Public License version 2 only, as7* published by the Free Software Foundation.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 2 along with this work; if not, write to the Free Software Foundation,17* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18*19* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*23*/24// This file is a derivative work resulting from (and including) modifications25// made by Azul Systems, Inc. The dates of such changes are 2013-2016.26// Copyright 2013-2016 Azul Systems, Inc. All Rights Reserved.27//28// Please contact Azul Systems, 385 Moffett Park Drive, Suite 115, Sunnyvale,29// CA 94089 USA or visit www.azul.com if you need additional information or30// have any questions.3132#ifndef CPU_X86_VM_C1_LIRASSEMBLER_AARCH32_HPP33#define CPU_X86_VM_C1_LIRASSEMBLER_AARCH32_HPP3435#include "assembler_aarch32.hpp"363738private:3940int array_element_size(BasicType type) const;4142// helper functions which checks for overflow and sets bailout if it43// occurs. Always returns a valid embeddable pointer but in the44// bailout case the pointer won't be to unique storage.45address float_constant(float f);46address double_constant(double d);4748Address as_Address(LIR_Address* addr, Register tmp, Address::InsnDataType type);49Address as_Address_hi(LIR_Address* addr, Address::InsnDataType type);50Address as_Address_lo(LIR_Address* addr, Address::InsnDataType type);5152Address as_Address(LIR_Address* addr, Address::InsnDataType type) {53return as_Address(addr, rscratch1, type);54}555657// Record the type of the receiver in ReceiverTypeData58void type_profile_helper(Register mdo,59ciMethodData *md, ciProfileData *data,60Register recv, Label* update_done);61void add_debug_info_for_branch(address adr, CodeEmitInfo* info);6263void casw(Register addr, Register newval, Register cmpval, Register result);64void casl(Register addr, Register newval_lo, Register newval_hi,65Register cmpval_lo, Register cmpval_hi,66Register tmp_lo, Register tmp_hi, Register result);6768FloatRegister as_float_reg(LIR_Opr doubleReg);6970static const int max_tableswitches = 20;71struct tableswitch switches[max_tableswitches];72int tableswitch_count;7374void init() { tableswitch_count = 0; }7576void deoptimize_trap(CodeEmitInfo *info);7778// remap input register (*s1 or *s2) to a temp one if it is at the same time79// used a result register (d) of a preceeding operation (so otherwise its80// contents gets effectively corrupt)81void check_register_collision(Register d, Register *s1, Register *s2 = NULL, Register tmp = rscratch1);8283public:8485void store_parameter(Register r, int offset_from_sp_in_words);86void store_parameter(jint c, int offset_from_sp_in_words);87void store_parameter(jobject c, int offset_from_sp_in_words);8889enum { call_stub_size = 12 * NativeInstruction::arm_insn_sz,90exception_handler_size = DEBUG_ONLY(1*K) NOT_DEBUG(175),91deopt_handler_size = 7 * NativeInstruction::arm_insn_sz };9293#endif // CPU_X86_VM_C1_LIRASSEMBLER_AARCH32_HPP949596