src/cpu/x86/vm/c1_FrameMap_x86.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File c1-coops Sdiff src/cpu/x86/vm

src/cpu/x86/vm/c1_FrameMap_x86.hpp

Print this page




 113     return LIR_OprFact::double_cpu(cpu_reg2rnr(r), cpu_reg2rnr(r2));
 114   }
 115   static LIR_Opr as_pointer_opr(Register r) {
 116     return LIR_OprFact::single_cpu(cpu_reg2rnr(r));
 117   }
 118 #endif // _LP64
 119 
 120   // VMReg name for spilled physical FPU stack slot n
 121   static VMReg fpu_regname (int n);
 122 
 123   static XMMRegister nr2xmmreg(int rnr);
 124 
 125   static bool is_caller_save_register (LIR_Opr opr) { return true; }
 126   static bool is_caller_save_register (Register r) { return true; }
 127 
 128   static LIR_Opr caller_save_xmm_reg_at(int i) {
 129     assert(i >= 0 && i < nof_caller_save_xmm_regs, "out of bounds");
 130     return _caller_save_xmm_regs[i];
 131   }
 132 










 133 #endif // CPU_X86_VM_C1_FRAMEMAP_X86_HPP



 113     return LIR_OprFact::double_cpu(cpu_reg2rnr(r), cpu_reg2rnr(r2));
 114   }
 115   static LIR_Opr as_pointer_opr(Register r) {
 116     return LIR_OprFact::single_cpu(cpu_reg2rnr(r));
 117   }
 118 #endif // _LP64
 119 
 120   // VMReg name for spilled physical FPU stack slot n
 121   static VMReg fpu_regname (int n);
 122 
 123   static XMMRegister nr2xmmreg(int rnr);
 124 
 125   static bool is_caller_save_register (LIR_Opr opr) { return true; }
 126   static bool is_caller_save_register (Register r) { return true; }
 127 
 128   static LIR_Opr caller_save_xmm_reg_at(int i) {
 129     assert(i >= 0 && i < nof_caller_save_xmm_regs, "out of bounds");
 130     return _caller_save_xmm_regs[i];
 131   }
 132 
 133   static int adjust_reg_range(int range) {
 134     // Reduce the number of available regs (to free r12) in case of compressed oops
 135     if (UseCompressedOops) return range - 1;
 136     return range;
 137   }
 138 
 139   static int nof_caller_save_cpu_regs() { return adjust_reg_range(pd_nof_caller_save_cpu_regs_frame_map); }
 140   static int last_cpu_reg()             { return adjust_reg_range(pd_last_cpu_reg);  }
 141   static int last_byte_reg()            { return adjust_reg_range(pd_last_byte_reg); }
 142 
 143 #endif // CPU_X86_VM_C1_FRAMEMAP_X86_HPP
 144 
src/cpu/x86/vm/c1_FrameMap_x86.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File