Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 22a7046196ca4476d2136e603c20e34d52e82537..5a263abbdb83d8961a251e2ed8a7d131f633a0b7 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -898,7 +898,7 @@ void MacroAssembler::PushCallerSaved(SaveFPRegsMode fp_mode, |
} |
// R12 to r15 are callee save on all platforms. |
if (fp_mode == kSaveFPRegs) { |
- CpuFeatures::Scope scope(SSE2); |
+ CpuFeatureScope scope(this, SSE2); |
subq(rsp, Immediate(kDoubleSize * XMMRegister::kMaxNumRegisters)); |
for (int i = 0; i < XMMRegister::kMaxNumRegisters; i++) { |
XMMRegister reg = XMMRegister::from_code(i); |
@@ -913,7 +913,7 @@ void MacroAssembler::PopCallerSaved(SaveFPRegsMode fp_mode, |
Register exclusion2, |
Register exclusion3) { |
if (fp_mode == kSaveFPRegs) { |
- CpuFeatures::Scope scope(SSE2); |
+ CpuFeatureScope scope(this, SSE2); |
for (int i = 0; i < XMMRegister::kMaxNumRegisters; i++) { |
XMMRegister reg = XMMRegister::from_code(i); |
movsd(reg, Operand(rsp, i * kDoubleSize)); |