Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 81292816dd237d075152e10564dd5ecfe3a6fca7..d80f1374cbd8abcb2ec749c09509b458ec9180be 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -979,10 +979,10 @@ void MacroAssembler::EnterExitFramePrologue() { |
void MacroAssembler::EnterExitFrameEpilogue(int argc, bool save_doubles) { |
// Optionally save all XMM registers. |
if (save_doubles) { |
- int space = XMMRegister::kNumRegisters * kDoubleSize + argc * kPointerSize; |
+ int space = XMMRegister::NumRegisters() * kDoubleSize + argc * kPointerSize; |
sub(esp, Immediate(space)); |
const int offset = -2 * kPointerSize; |
- for (int i = 0; i < XMMRegister::kNumRegisters; i++) { |
+ for (int i = 0; i < XMMRegister::NumRegisters(); i++) { |
XMMRegister reg = XMMRegister::from_code(i); |
movsd(Operand(ebp, offset - ((i + 1) * kDoubleSize)), reg); |
} |
@@ -1025,7 +1025,7 @@ void MacroAssembler::LeaveExitFrame(bool save_doubles) { |
// Optionally restore all XMM registers. |
if (save_doubles) { |
const int offset = -2 * kPointerSize; |
- for (int i = 0; i < XMMRegister::kNumRegisters; i++) { |
+ for (int i = 0; i < XMMRegister::NumRegisters(); i++) { |
XMMRegister reg = XMMRegister::from_code(i); |
movsd(reg, Operand(ebp, offset - ((i + 1) * kDoubleSize))); |
} |