Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index c9c1933422e8a8bec03705242cc5ddb6d2f93cea..1b27540317ccd4ad3b138b59de2fa43c75864698 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -7516,11 +7516,9 @@ bool RecordWriteStub::IsPregenerated() { |
void StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime( |
Isolate* isolate) { |
- StoreBufferOverflowStub stub1(kDontSaveFPRegs); |
- stub1.GetCode(isolate)->set_is_pregenerated(true); |
- |
- CpuFeatures::TryForceFeatureScope scope(SSE2); |
- if (CpuFeatures::IsSupported(SSE2)) { |
+ StoreBufferOverflowStub stub(kDontSaveFPRegs); |
+ stub.GetCode(isolate)->set_is_pregenerated(true); |
+ if (CpuFeatures::IsSafeForSnapshot(SSE2)) { |
StoreBufferOverflowStub stub2(kSaveFPRegs); |
stub2.GetCode(isolate)->set_is_pregenerated(true); |
} |