Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 0801881ff0cdb93a9ece6ed178325b48f2d26016..6fcc1a62db65b5c2f0fd445597eb390504570ced 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -480,8 +480,8 @@ void StoreBufferOverflowStub::Generate(MacroAssembler* masm) { |
// restore them. |
__ pushad(); |
if (save_doubles_ == kSaveFPRegs) { |
- __ sub(esp, Immediate(kDoubleSize * XMMRegister::kNumRegisters)); |
- for (int i = 0; i < XMMRegister::kNumRegisters; i++) { |
+ __ sub(esp, Immediate(kDoubleSize * XMMRegister::kMaxNumRegisters)); |
+ for (int i = 0; i < XMMRegister::kMaxNumRegisters; i++) { |
XMMRegister reg = XMMRegister::from_code(i); |
__ movsd(Operand(esp, i * kDoubleSize), reg); |
} |
@@ -496,11 +496,11 @@ void StoreBufferOverflowStub::Generate(MacroAssembler* masm) { |
ExternalReference::store_buffer_overflow_function(isolate()), |
argument_count); |
if (save_doubles_ == kSaveFPRegs) { |
- for (int i = 0; i < XMMRegister::kNumRegisters; i++) { |
+ for (int i = 0; i < XMMRegister::kMaxNumRegisters; i++) { |
XMMRegister reg = XMMRegister::from_code(i); |
__ movsd(reg, Operand(esp, i * kDoubleSize)); |
} |
- __ add(esp, Immediate(kDoubleSize * XMMRegister::kNumRegisters)); |
+ __ add(esp, Immediate(kDoubleSize * XMMRegister::kMaxNumRegisters)); |
} |
__ popad(); |
__ ret(0); |