Lines Matching defs:reg
35 LIR_Opr FrameMap::map_to_opr(BasicType type, VMRegPair* reg, bool outgoing) {
37 VMReg r_1 = reg->first();
38 VMReg r_2 = reg->second();
46 Register reg = r_1->as_Register();
48 assert(!reg->is_in(), "should be using I regs");
50 assert(!reg->is_out(), "should be using O regs");
53 opr = as_long_opr(reg);
55 opr = as_oop_opr(reg);
57 opr = as_opr(reg);
167 // returns true if reg could be smashed by a callee.
168 bool FrameMap::is_caller_save_register (LIR_Opr reg) {
169 if (reg->is_single_fpu() || reg->is_double_fpu()) { return true; }
170 if (reg->is_double_cpu()) {
171 return is_caller_save_register(reg->as_register_lo()) ||
172 is_caller_save_register(reg->as_register_hi());
174 return is_caller_save_register(reg->as_register());