Path: blob/master/src/hotspot/cpu/arm/c1_LIRAssembler_arm.hpp
40930 views
/*1* Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef CPU_ARM_C1_LIRASSEMBLER_ARM_HPP25#define CPU_ARM_C1_LIRASSEMBLER_ARM_HPP2627private:2829// Record the type of the receiver in ReceiverTypeData30void type_profile_helper(Register mdo, int mdo_offset_bias,31ciMethodData *md, ciProfileData *data,32Register recv, Register tmp1, Label* update_done);33// Setup pointers to MDO, MDO slot, also compute offset bias to access the slot.34void setup_md_access(ciMethod* method, int bci,35ciMethodData*& md, ciProfileData*& data, int& mdo_offset_bias);3637void typecheck_profile_helper1(ciMethod* method, int bci,38ciMethodData*& md, ciProfileData*& data, int& mdo_offset_bias,39Register obj, Register mdo, Register data_val, Label* obj_is_null);4041void typecheck_profile_helper2(ciMethodData* md, ciProfileData* data, int mdo_offset_bias,42Register mdo, Register recv, Register value, Register tmp1,43Label* profile_cast_success, Label* profile_cast_failure,44Label* success, Label* failure);454647// Saves 4 given registers in reserved argument area.48void save_in_reserved_area(Register r1, Register r2, Register r3, Register r4);4950// Restores 4 given registers from reserved argument area.51void restore_from_reserved_area(Register r1, Register r2, Register r3, Register r4);5253enum {54_call_stub_size = 16,55_exception_handler_size = PRODUCT_ONLY(68) NOT_PRODUCT(68+60),56_deopt_handler_size = 1657};5859public:6061void verify_reserved_argument_area_size(int args_count) PRODUCT_RETURN;6263void store_parameter(jint c, int offset_from_sp_in_words);64void store_parameter(Metadata* m, int offset_from_sp_in_words);6566#endif // CPU_ARM_C1_LIRASSEMBLER_ARM_HPP676869