Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 56798d32c1978329060653e49aac8801489de9be..beaf3206a6c1aff2e6fb72eaab8029a0358b73f1 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -2918,8 +2918,12 @@ void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { |
RecordWriteStub::GenerateFixedRegStubsAheadOfTime(isolate); |
ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
CreateAllocationSiteStub::GenerateAheadOfTime(isolate); |
- PlatformFeatureScope sse2(SSE2); |
- BinaryOpStub::GenerateAheadOfTime(isolate); |
+ if (Serializer::enabled()) { |
+ PlatformFeatureScope sse2(SSE2); |
+ BinaryOpStub::GenerateAheadOfTime(isolate); |
+ } else { |
+ BinaryOpStub::GenerateAheadOfTime(isolate); |
+ } |
} |