Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/cpu/sparc/vm/c1_FrameMap_sparc.hpp
32285 views
/*1* Copyright (c) 1999, 2012, 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_SPARC_VM_C1_FRAMEMAP_SPARC_HPP25#define CPU_SPARC_VM_C1_FRAMEMAP_SPARC_HPP2627public:2829enum {30nof_reg_args = 6, // registers o0-o5 are available for parameter passing31first_available_sp_in_frame = frame::memory_parameter_word_sp_offset * BytesPerWord,32frame_pad_in_bytes = 033};3435static const int pd_c_runtime_reserved_arg_size;3637static LIR_Opr G0_opr;38static LIR_Opr G1_opr;39static LIR_Opr G2_opr;40static LIR_Opr G3_opr;41static LIR_Opr G4_opr;42static LIR_Opr G5_opr;43static LIR_Opr G6_opr;44static LIR_Opr G7_opr;45static LIR_Opr O0_opr;46static LIR_Opr O1_opr;47static LIR_Opr O2_opr;48static LIR_Opr O3_opr;49static LIR_Opr O4_opr;50static LIR_Opr O5_opr;51static LIR_Opr O6_opr;52static LIR_Opr O7_opr;53static LIR_Opr L0_opr;54static LIR_Opr L1_opr;55static LIR_Opr L2_opr;56static LIR_Opr L3_opr;57static LIR_Opr L4_opr;58static LIR_Opr L5_opr;59static LIR_Opr L6_opr;60static LIR_Opr L7_opr;61static LIR_Opr I0_opr;62static LIR_Opr I1_opr;63static LIR_Opr I2_opr;64static LIR_Opr I3_opr;65static LIR_Opr I4_opr;66static LIR_Opr I5_opr;67static LIR_Opr I6_opr;68static LIR_Opr I7_opr;6970static LIR_Opr SP_opr;71static LIR_Opr FP_opr;7273static LIR_Opr G0_oop_opr;74static LIR_Opr G1_oop_opr;75static LIR_Opr G2_oop_opr;76static LIR_Opr G3_oop_opr;77static LIR_Opr G4_oop_opr;78static LIR_Opr G5_oop_opr;79static LIR_Opr G6_oop_opr;80static LIR_Opr G7_oop_opr;81static LIR_Opr O0_oop_opr;82static LIR_Opr O1_oop_opr;83static LIR_Opr O2_oop_opr;84static LIR_Opr O3_oop_opr;85static LIR_Opr O4_oop_opr;86static LIR_Opr O5_oop_opr;87static LIR_Opr O6_oop_opr;88static LIR_Opr O7_oop_opr;89static LIR_Opr L0_oop_opr;90static LIR_Opr L1_oop_opr;91static LIR_Opr L2_oop_opr;92static LIR_Opr L3_oop_opr;93static LIR_Opr L4_oop_opr;94static LIR_Opr L5_oop_opr;95static LIR_Opr L6_oop_opr;96static LIR_Opr L7_oop_opr;97static LIR_Opr I0_oop_opr;98static LIR_Opr I1_oop_opr;99static LIR_Opr I2_oop_opr;100static LIR_Opr I3_oop_opr;101static LIR_Opr I4_oop_opr;102static LIR_Opr I5_oop_opr;103static LIR_Opr I6_oop_opr;104static LIR_Opr I7_oop_opr;105106static LIR_Opr G0_metadata_opr;107static LIR_Opr G1_metadata_opr;108static LIR_Opr G2_metadata_opr;109static LIR_Opr G3_metadata_opr;110static LIR_Opr G4_metadata_opr;111static LIR_Opr G5_metadata_opr;112static LIR_Opr G6_metadata_opr;113static LIR_Opr G7_metadata_opr;114static LIR_Opr O0_metadata_opr;115static LIR_Opr O1_metadata_opr;116static LIR_Opr O2_metadata_opr;117static LIR_Opr O3_metadata_opr;118static LIR_Opr O4_metadata_opr;119static LIR_Opr O5_metadata_opr;120static LIR_Opr O6_metadata_opr;121static LIR_Opr O7_metadata_opr;122static LIR_Opr L0_metadata_opr;123static LIR_Opr L1_metadata_opr;124static LIR_Opr L2_metadata_opr;125static LIR_Opr L3_metadata_opr;126static LIR_Opr L4_metadata_opr;127static LIR_Opr L5_metadata_opr;128static LIR_Opr L6_metadata_opr;129static LIR_Opr L7_metadata_opr;130static LIR_Opr I0_metadata_opr;131static LIR_Opr I1_metadata_opr;132static LIR_Opr I2_metadata_opr;133static LIR_Opr I3_metadata_opr;134static LIR_Opr I4_metadata_opr;135static LIR_Opr I5_metadata_opr;136static LIR_Opr I6_metadata_opr;137static LIR_Opr I7_metadata_opr;138139static LIR_Opr in_long_opr;140static LIR_Opr out_long_opr;141static LIR_Opr g1_long_single_opr;142143static LIR_Opr F0_opr;144static LIR_Opr F0_double_opr;145146static LIR_Opr Oexception_opr;147static LIR_Opr Oissuing_pc_opr;148149private:150static FloatRegister _fpu_regs [nof_fpu_regs];151152static LIR_Opr as_long_single_opr(Register r) {153return LIR_OprFact::double_cpu(cpu_reg2rnr(r), cpu_reg2rnr(r));154}155static LIR_Opr as_long_pair_opr(Register r) {156return LIR_OprFact::double_cpu(cpu_reg2rnr(r->successor()), cpu_reg2rnr(r));157}158159public:160161#ifdef _LP64162static LIR_Opr as_long_opr(Register r) {163return as_long_single_opr(r);164}165static LIR_Opr as_pointer_opr(Register r) {166return as_long_single_opr(r);167}168#else169static LIR_Opr as_long_opr(Register r) {170return as_long_pair_opr(r);171}172static LIR_Opr as_pointer_opr(Register r) {173return as_opr(r);174}175#endif176static LIR_Opr as_float_opr(FloatRegister r) {177return LIR_OprFact::single_fpu(r->encoding());178}179static LIR_Opr as_double_opr(FloatRegister r) {180return LIR_OprFact::double_fpu(r->successor()->encoding(), r->encoding());181}182183static FloatRegister nr2floatreg (int rnr);184185static VMReg fpu_regname (int n);186187static bool is_caller_save_register (LIR_Opr reg);188static bool is_caller_save_register (Register r);189190static int nof_caller_save_cpu_regs() { return pd_nof_caller_save_cpu_regs_frame_map; }191static int last_cpu_reg() { return pd_last_cpu_reg; }192193#endif // CPU_SPARC_VM_C1_FRAMEMAP_SPARC_HPP194195196