Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.hpp
32285 views
/*1* Copyright (c) 2013, Red Hat Inc.2* Copyright (c) 2000, 2010, Oracle and/or its affiliates.3* All rights reserved.4* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.5*6* This code is free software; you can redistribute it and/or modify it7* under the terms of the GNU General Public License version 2 only, as8* published by the Free Software Foundation.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*24*/2526#ifndef CPU_X86_VM_C1_LIRASSEMBLER_X86_HPP27#define CPU_X86_VM_C1_LIRASSEMBLER_X86_HPP2829// ArrayCopyStub needs access to bailout30friend class ArrayCopyStub;3132private:3334int array_element_size(BasicType type) const;3536void arith_fpu_implementation(LIR_Code code, int left_index, int right_index, int dest_index, bool pop_fpu_stack);3738// helper functions which checks for overflow and sets bailout if it39// occurs. Always returns a valid embeddable pointer but in the40// bailout case the pointer won't be to unique storage.41address float_constant(float f);42address double_constant(double d);4344address int_constant(jlong n);4546bool is_literal_address(LIR_Address* addr);4748// When we need to use something other than rscratch1 use this49// method.50Address as_Address(LIR_Address* addr, Register tmp);5152// Record the type of the receiver in ReceiverTypeData53void type_profile_helper(Register mdo,54ciMethodData *md, ciProfileData *data,55Register recv, Label* update_done);56void add_debug_info_for_branch(address adr, CodeEmitInfo* info);5758void casw(Register addr, Register newval, Register cmpval);59void casl(Register addr, Register newval, Register cmpval);6061void poll_for_safepoint(relocInfo::relocType rtype, CodeEmitInfo* info = NULL);6263static const int max_tableswitches = 20;64struct tableswitch switches[max_tableswitches];65int tableswitch_count;6667void init() { tableswitch_count = 0; }6869void deoptimize_trap(CodeEmitInfo *info);7071public:7273void store_parameter(Register r, int offset_from_esp_in_words);74void store_parameter(jint c, int offset_from_esp_in_words);75void store_parameter(jobject c, int offset_from_esp_in_words);7677enum { call_stub_size = 12 * NativeInstruction::instruction_size,78exception_handler_size = DEBUG_ONLY(1*K) NOT_DEBUG(175),79deopt_handler_size = 7 * NativeInstruction::instruction_size };808182#endif // CPU_X86_VM_C1_LIRASSEMBLER_X86_HPP838485