} else {
// Put the value to the top of stack
X87Register src = ToX87Register(instr->object());
- X87LoadForUsage(src);
+ X87Fxch(src);
__ fld(0);
__ fld(0);
__ FCmp();
}
__ add(esp, Immediate(kDoubleSize));
- __ cmp(MemOperand(esp, -sizeof(kHoleNanUpper32)), Immediate(kHoleNanUpper32));
+ int offset = sizeof(kHoleNanUpper32);
+ __ cmp(MemOperand(esp, -offset), Immediate(kHoleNanUpper32));
EmitBranch(instr, equal);
}
__ movsd(MemOperand(rsp, 0), input_reg);
__ addq(rsp, Immediate(kDoubleSize));
- int size = sizeof(kHoleNanUpper32);
- __ cmpl(MemOperand(rsp, -size),
- Immediate(kHoleNanUpper32));
+ int offset = sizeof(kHoleNanUpper32);
+ __ cmpl(MemOperand(rsp, -offset), Immediate(kHoleNanUpper32));
EmitBranch(instr, equal);
}