Path: blob/master/src/hotspot/cpu/aarch64/c1_FrameMap_aarch64.hpp
40930 views
/*1* Copyright (c) 1999, 2019, 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_FRAMEMAP_AARCH64_HPP26#define CPU_AARCH64_C1_FRAMEMAP_AARCH64_HPP2728// On AArch64 the frame looks as follows:29//30// +-----------------------------+---------+----------------------------------------+----------------+-----------31// | size_arguments-nof_reg_args | 2 words | size_locals-size_arguments+numreg_args | _size_monitors | spilling .32// +-----------------------------+---------+----------------------------------------+----------------+-----------3334public:35static const int pd_c_runtime_reserved_arg_size;3637enum {38first_available_sp_in_frame = 0,39frame_pad_in_bytes = 16,40nof_reg_args = 841};4243public:44static LIR_Opr receiver_opr;4546static LIR_Opr r0_opr;47static LIR_Opr r1_opr;48static LIR_Opr r2_opr;49static LIR_Opr r3_opr;50static LIR_Opr r4_opr;51static LIR_Opr r5_opr;52static LIR_Opr r6_opr;53static LIR_Opr r7_opr;54static LIR_Opr r8_opr;55static LIR_Opr r9_opr;56static LIR_Opr r10_opr;57static LIR_Opr r11_opr;58static LIR_Opr r12_opr;59static LIR_Opr r13_opr;60static LIR_Opr r14_opr;61static LIR_Opr r15_opr;62static LIR_Opr r16_opr;63static LIR_Opr r17_opr;64static LIR_Opr r18_opr;65static LIR_Opr r19_opr;66static LIR_Opr r20_opr;67static LIR_Opr r21_opr;68static LIR_Opr r22_opr;69static LIR_Opr r23_opr;70static LIR_Opr r24_opr;71static LIR_Opr r25_opr;72static LIR_Opr r26_opr;73static LIR_Opr r27_opr;74static LIR_Opr r28_opr;75static LIR_Opr r29_opr;76static LIR_Opr r30_opr;77static LIR_Opr rfp_opr;78static LIR_Opr sp_opr;7980static LIR_Opr r0_oop_opr;81static LIR_Opr r1_oop_opr;82static LIR_Opr r2_oop_opr;83static LIR_Opr r3_oop_opr;84static LIR_Opr r4_oop_opr;85static LIR_Opr r5_oop_opr;86static LIR_Opr r6_oop_opr;87static LIR_Opr r7_oop_opr;88static LIR_Opr r8_oop_opr;89static LIR_Opr r9_oop_opr;90static LIR_Opr r10_oop_opr;91static LIR_Opr r11_oop_opr;92static LIR_Opr r12_oop_opr;93static LIR_Opr r13_oop_opr;94static LIR_Opr r14_oop_opr;95static LIR_Opr r15_oop_opr;96static LIR_Opr r16_oop_opr;97static LIR_Opr r17_oop_opr;98static LIR_Opr r18_oop_opr;99static LIR_Opr r19_oop_opr;100static LIR_Opr r20_oop_opr;101static LIR_Opr r21_oop_opr;102static LIR_Opr r22_oop_opr;103static LIR_Opr r23_oop_opr;104static LIR_Opr r24_oop_opr;105static LIR_Opr r25_oop_opr;106static LIR_Opr r26_oop_opr;107static LIR_Opr r27_oop_opr;108static LIR_Opr r28_oop_opr;109static LIR_Opr r29_oop_opr;110static LIR_Opr r30_oop_opr;111112static LIR_Opr rscratch1_opr;113static LIR_Opr rscratch2_opr;114static LIR_Opr rscratch1_long_opr;115static LIR_Opr rscratch2_long_opr;116117static LIR_Opr r0_metadata_opr;118static LIR_Opr r1_metadata_opr;119static LIR_Opr r2_metadata_opr;120static LIR_Opr r3_metadata_opr;121static LIR_Opr r4_metadata_opr;122static LIR_Opr r5_metadata_opr;123124static LIR_Opr long0_opr;125static LIR_Opr long1_opr;126static LIR_Opr fpu0_float_opr;127static LIR_Opr fpu0_double_opr;128129static LIR_Opr as_long_opr(Register r) {130return LIR_OprFact::double_cpu(cpu_reg2rnr(r), cpu_reg2rnr(r));131}132static LIR_Opr as_pointer_opr(Register r) {133return LIR_OprFact::double_cpu(cpu_reg2rnr(r), cpu_reg2rnr(r));134}135136// VMReg name for spilled physical FPU stack slot n137static VMReg fpu_regname (int n);138139static bool is_caller_save_register (LIR_Opr opr) { return true; }140static bool is_caller_save_register (Register r) { return true; }141142static int nof_caller_save_cpu_regs() { return pd_nof_caller_save_cpu_regs_frame_map; }143static int last_cpu_reg() { return pd_last_cpu_reg; }144static int last_byte_reg() { return pd_last_byte_reg; }145146#endif // CPU_AARCH64_C1_FRAMEMAP_AARCH64_HPP147148149