Commit e25f3baf authored by whesse@chromium.org's avatar whesse@chromium.org

X64 Crankshaft: Fix another error in pushed registers at safepoints.

Review URL: http://codereview.chromium.org/6525014

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6789 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 52baacf5
......@@ -1443,13 +1443,15 @@ void MacroAssembler::Pushad() {
push(r14);
// r15 is kSmiConstantRegister
STATIC_ASSERT(11 == kNumSafepointSavedRegisters);
subq(rsp, Immediate(
(kNumSafepointRegisters-kNumSafepointSavedRegisters) * kPointerSize));
// Use lea for symmetry with Popad.
lea(rsp, Operand(rsp,
-(kNumSafepointRegisters-kNumSafepointSavedRegisters) * kPointerSize));
}
void MacroAssembler::Popad() {
addq(rsp, Immediate(
// Popad must not change the flags, so use lea instead of addq.
lea(rsp, Operand(rsp,
(kNumSafepointRegisters-kNumSafepointSavedRegisters) * kPointerSize));
pop(r14);
pop(r12);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment