| Index: src/ia32/stub-cache-ia32.cc
|
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
|
| index 0b9befe04f274b576779e32fe91cf21046585c38..4f4c69ad7dd7d69c4ce97298458fc4f472503a22 100644
|
| --- a/src/ia32/stub-cache-ia32.cc
|
| +++ b/src/ia32/stub-cache-ia32.cc
|
| @@ -2035,7 +2035,7 @@ Handle<Code> CallStubCompiler::CompileMathFloorCall(
|
| return Handle<Code>::null();
|
| }
|
|
|
| - CpuFeatures::Scope use_sse2(SSE2);
|
| + CpuFeatureScope use_sse2(masm(), SSE2);
|
|
|
| const int argc = arguments().immediate();
|
|
|
| @@ -3180,7 +3180,7 @@ Handle<Code> ConstructStubCompiler::CompileConstructStub(
|
| __ mov(ebx, edi);
|
| __ cmp(eax, arg_number);
|
| if (CpuFeatures::IsSupported(CMOV)) {
|
| - CpuFeatures::Scope use_cmov(CMOV);
|
| + CpuFeatureScope use_cmov(masm(), CMOV);
|
| __ cmov(above, ebx, Operand(ecx, arg_number * -kPointerSize));
|
| } else {
|
| Label not_passed;
|
| @@ -3293,7 +3293,7 @@ static void GenerateSmiKeyCheck(MacroAssembler* masm,
|
| // Check that key is a smi and if SSE2 is available a heap number
|
| // containing a smi and branch if the check fails.
|
| if (CpuFeatures::IsSupported(SSE2)) {
|
| - CpuFeatures::Scope use_sse2(SSE2);
|
| + CpuFeatureScope use_sse2(masm, SSE2);
|
| Label key_ok;
|
| __ JumpIfSmi(key, &key_ok);
|
| __ cmp(FieldOperand(key, HeapObject::kMapOffset),
|
| @@ -3430,7 +3430,7 @@ void KeyedStoreStubCompiler::GenerateStoreExternalArray(
|
| if ((elements_kind == EXTERNAL_INT_ELEMENTS ||
|
| elements_kind == EXTERNAL_UNSIGNED_INT_ELEMENTS) &&
|
| CpuFeatures::IsSupported(SSE3)) {
|
| - CpuFeatures::Scope scope(SSE3);
|
| + CpuFeatureScope scope(masm, SSE3);
|
| // fisttp stores values as signed integers. To represent the
|
| // entire range of int and unsigned int arrays, store as a
|
| // 64-bit int and discard the high 32 bits.
|
| @@ -3455,7 +3455,7 @@ void KeyedStoreStubCompiler::GenerateStoreExternalArray(
|
| __ mov(Operand(edi, ecx, times_2, 0), ebx);
|
| } else {
|
| ASSERT(CpuFeatures::IsSupported(SSE2));
|
| - CpuFeatures::Scope scope(SSE2);
|
| + CpuFeatureScope scope(masm, SSE2);
|
| __ cvttsd2si(ebx, FieldOperand(eax, HeapNumber::kValueOffset));
|
| __ cmp(ebx, 0x80000000u);
|
| __ j(equal, &slow);
|
|
|