Path: blob/master/src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.hpp
40930 views
/*1* Copyright (c) 2000, 2021, 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*/2425#ifndef CPU_AARCH64_C1_LIRASSEMBLER_AARCH64_HPP26#define CPU_AARCH64_C1_LIRASSEMBLER_AARCH64_HPP2728// ArrayCopyStub needs access to bailout29friend class ArrayCopyStub;3031private:3233int array_element_size(BasicType type) const;3435void arith_fpu_implementation(LIR_Code code, int left_index, int right_index, int dest_index, bool pop_fpu_stack);3637// helper functions which checks for overflow and sets bailout if it38// occurs. Always returns a valid embeddable pointer but in the39// bailout case the pointer won't be to unique storage.40address float_constant(float f);41address double_constant(double d);4243address int_constant(jlong n);4445bool is_literal_address(LIR_Address* addr);4647// When we need to use something other than rscratch1 use this method.48Address as_Address(LIR_Address* addr, Register tmp);4950// Ensure we have a valid Address (base+offset) to a stack-slot.51Address stack_slot_address(int index, uint shift, Register tmp, int adjust = 0);5253// Record the type of the receiver in ReceiverTypeData54void type_profile_helper(Register mdo,55ciMethodData *md, ciProfileData *data,56Register recv, Label* update_done);57void add_debug_info_for_branch(address adr, CodeEmitInfo* info);5859void casw(Register addr, Register newval, Register cmpval);60void casl(Register addr, Register newval, Register cmpval);6162void poll_for_safepoint(relocInfo::relocType rtype, CodeEmitInfo* info = NULL);6364static const int max_tableswitches = 20;65struct tableswitch switches[max_tableswitches];66int tableswitch_count;6768void init() { tableswitch_count = 0; }6970void deoptimize_trap(CodeEmitInfo *info);7172enum {73// call stub: CompiledStaticCall::to_interp_stub_size() +74// CompiledStaticCall::to_trampoline_stub_size()75_call_stub_size = 13 * NativeInstruction::instruction_size,76_exception_handler_size = DEBUG_ONLY(1*K) NOT_DEBUG(175),77_deopt_handler_size = 7 * NativeInstruction::instruction_size78};7980public:8182void store_parameter(Register r, int offset_from_esp_in_words);83void store_parameter(jint c, int offset_from_esp_in_words);84void store_parameter(jobject c, int offset_from_esp_in_words);8586#endif // CPU_AARCH64_C1_LIRASSEMBLER_AARCH64_HPP878889