303 I4_oop_opr = as_oop_opr(I4); 304 I5_oop_opr = as_oop_opr(I5); 305 I6_oop_opr = as_oop_opr(I6); 306 I7_oop_opr = as_oop_opr(I7); 307 308 FP_opr = as_pointer_opr(FP); 309 SP_opr = as_pointer_opr(SP); 310 311 F0_opr = as_float_opr(F0); 312 F0_double_opr = as_double_opr(F0); 313 314 Oexception_opr = as_oop_opr(Oexception); 315 Oissuing_pc_opr = as_opr(Oissuing_pc); 316 317 _caller_save_cpu_regs[0] = FrameMap::O0_opr; 318 _caller_save_cpu_regs[1] = FrameMap::O1_opr; 319 _caller_save_cpu_regs[2] = FrameMap::O2_opr; 320 _caller_save_cpu_regs[3] = FrameMap::O3_opr; 321 _caller_save_cpu_regs[4] = FrameMap::O4_opr; 322 _caller_save_cpu_regs[5] = FrameMap::O5_opr; 323 for (int i = 0; i < nof_caller_save_fpu_regs; i++) { 324 _caller_save_fpu_regs[i] = LIR_OprFact::single_fpu(i); 325 } 326 } 327 328 329 Address FrameMap::make_new_address(ByteSize sp_offset) const { 330 return Address(SP, STACK_BIAS + in_bytes(sp_offset)); 331 } 332 333 334 VMReg FrameMap::fpu_regname (int n) { 335 return as_FloatRegister(n)->as_VMReg(); 336 } 337 338 339 LIR_Opr FrameMap::stack_pointer() { 340 return SP_opr; 341 } 342 | 303 I4_oop_opr = as_oop_opr(I4); 304 I5_oop_opr = as_oop_opr(I5); 305 I6_oop_opr = as_oop_opr(I6); 306 I7_oop_opr = as_oop_opr(I7); 307 308 FP_opr = as_pointer_opr(FP); 309 SP_opr = as_pointer_opr(SP); 310 311 F0_opr = as_float_opr(F0); 312 F0_double_opr = as_double_opr(F0); 313 314 Oexception_opr = as_oop_opr(Oexception); 315 Oissuing_pc_opr = as_opr(Oissuing_pc); 316 317 _caller_save_cpu_regs[0] = FrameMap::O0_opr; 318 _caller_save_cpu_regs[1] = FrameMap::O1_opr; 319 _caller_save_cpu_regs[2] = FrameMap::O2_opr; 320 _caller_save_cpu_regs[3] = FrameMap::O3_opr; 321 _caller_save_cpu_regs[4] = FrameMap::O4_opr; 322 _caller_save_cpu_regs[5] = FrameMap::O5_opr; 323 _caller_save_cpu_regs[6] = FrameMap::G1_opr; 324 _caller_save_cpu_regs[7] = FrameMap::G3_opr; 325 _caller_save_cpu_regs[8] = FrameMap::G4_opr; 326 _caller_save_cpu_regs[9] = FrameMap::G5_opr; 327 for (int i = 0; i < nof_caller_save_fpu_regs; i++) { 328 _caller_save_fpu_regs[i] = LIR_OprFact::single_fpu(i); 329 } 330 } 331 332 333 Address FrameMap::make_new_address(ByteSize sp_offset) const { 334 return Address(SP, STACK_BIAS + in_bytes(sp_offset)); 335 } 336 337 338 VMReg FrameMap::fpu_regname (int n) { 339 return as_FloatRegister(n)->as_VMReg(); 340 } 341 342 343 LIR_Opr FrameMap::stack_pointer() { 344 return SP_opr; 345 } 346 |