Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/cpu/aarch64/vm/c1_FrameMap_aarch64.hpp
32285 views
/*1* Copyright (c) 2013, Red Hat Inc.2* Copyright (c) 1999, 2012, 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_AARCH64_VM_C1_FRAMEMAP_AARCH64_HPP27#define CPU_AARCH64_VM_C1_FRAMEMAP_AARCH64_HPP2829// On AArch64 the frame looks as follows:30//31// +-----------------------------+---------+----------------------------------------+----------------+-----------32// | size_arguments-nof_reg_args | 2 words | size_locals-size_arguments+numreg_args | _size_monitors | spilling .33// +-----------------------------+---------+----------------------------------------+----------------+-----------3435public:36static const int pd_c_runtime_reserved_arg_size;3738enum {39first_available_sp_in_frame = 0,40frame_pad_in_bytes = 16,41nof_reg_args = 842};4344public:45static LIR_Opr receiver_opr;4647static LIR_Opr r0_opr;48static LIR_Opr r1_opr;49static LIR_Opr r2_opr;50static LIR_Opr r3_opr;51static LIR_Opr r4_opr;52static LIR_Opr r5_opr;53static LIR_Opr r6_opr;54static LIR_Opr r7_opr;55static LIR_Opr r8_opr;56static LIR_Opr r9_opr;57static LIR_Opr r10_opr;58static LIR_Opr r11_opr;59static LIR_Opr r12_opr;60static LIR_Opr r13_opr;61static LIR_Opr r14_opr;62static LIR_Opr r15_opr;63static LIR_Opr r16_opr;64static LIR_Opr r17_opr;65static LIR_Opr r18_opr;66static LIR_Opr r19_opr;67static LIR_Opr r20_opr;68static LIR_Opr r21_opr;69static LIR_Opr r22_opr;70static LIR_Opr r23_opr;71static LIR_Opr r24_opr;72static LIR_Opr r25_opr;73static LIR_Opr r26_opr;74static LIR_Opr r27_opr;75static LIR_Opr r28_opr;76static LIR_Opr r29_opr;77static LIR_Opr r30_opr;78static LIR_Opr rfp_opr;79static LIR_Opr sp_opr;8081static LIR_Opr r0_oop_opr;82static LIR_Opr r1_oop_opr;83static LIR_Opr r2_oop_opr;84static LIR_Opr r3_oop_opr;85static LIR_Opr r4_oop_opr;86static LIR_Opr r5_oop_opr;87static LIR_Opr r6_oop_opr;88static LIR_Opr r7_oop_opr;89static LIR_Opr r8_oop_opr;90static LIR_Opr r9_oop_opr;91static LIR_Opr r10_oop_opr;92static LIR_Opr r11_oop_opr;93static LIR_Opr r12_oop_opr;94static LIR_Opr r13_oop_opr;95static LIR_Opr r14_oop_opr;96static LIR_Opr r15_oop_opr;97static LIR_Opr r16_oop_opr;98static LIR_Opr r17_oop_opr;99static LIR_Opr r18_oop_opr;100static LIR_Opr r19_oop_opr;101static LIR_Opr r20_oop_opr;102static LIR_Opr r21_oop_opr;103static LIR_Opr r22_oop_opr;104static LIR_Opr r23_oop_opr;105static LIR_Opr r24_oop_opr;106static LIR_Opr r25_oop_opr;107static LIR_Opr r26_oop_opr;108static LIR_Opr r27_oop_opr;109static LIR_Opr r28_oop_opr;110static LIR_Opr r29_oop_opr;111static LIR_Opr r30_oop_opr;112113static LIR_Opr rscratch1_opr;114static LIR_Opr rscratch2_opr;115static LIR_Opr rscratch1_long_opr;116static LIR_Opr rscratch2_long_opr;117118static LIR_Opr r0_metadata_opr;119static LIR_Opr r1_metadata_opr;120static LIR_Opr r2_metadata_opr;121static LIR_Opr r3_metadata_opr;122static LIR_Opr r4_metadata_opr;123static LIR_Opr r5_metadata_opr;124125static LIR_Opr long0_opr;126static LIR_Opr long1_opr;127static LIR_Opr fpu0_float_opr;128static LIR_Opr fpu0_double_opr;129130static LIR_Opr as_long_opr(Register r) {131return LIR_OprFact::double_cpu(cpu_reg2rnr(r), cpu_reg2rnr(r));132}133static LIR_Opr as_pointer_opr(Register r) {134return LIR_OprFact::double_cpu(cpu_reg2rnr(r), cpu_reg2rnr(r));135}136137// VMReg name for spilled physical FPU stack slot n138static VMReg fpu_regname (int n);139140static bool is_caller_save_register (LIR_Opr opr) { return true; }141static bool is_caller_save_register (Register r) { return true; }142143static int nof_caller_save_cpu_regs() { return pd_nof_caller_save_cpu_regs_frame_map; }144static int last_cpu_reg() { return pd_last_cpu_reg; }145static int last_byte_reg() { return pd_last_byte_reg; }146147#endif // CPU_AARCH64_VM_C1_FRAMEMAP_AARCH64_HPP148149150151