Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 68a1ad8fb0d712fc122706e959353d8262832c4d..3cb52e6c9e90b01f5e078a4f7fe8882374b14e02 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -2516,7 +2516,7 @@ void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { |
// It is important that the store buffer overflow stubs are generated first. |
ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
CreateAllocationSiteStub::GenerateAheadOfTime(isolate); |
- if (Serializer::enabled()) { |
+ if (Serializer::enabled(isolate)) { |
PlatformFeatureScope sse2(isolate, SSE2); |
BinaryOpICStub::GenerateAheadOfTime(isolate); |
BinaryOpICWithAllocationSiteStub::GenerateAheadOfTime(isolate); |
@@ -3158,7 +3158,7 @@ void StringHelper::GenerateHashInit(MacroAssembler* masm, |
Register character, |
Register scratch) { |
// hash = (seed + character) + ((seed + character) << 10); |
- if (Serializer::enabled()) { |
+ if (Serializer::enabled(masm->isolate())) { |
__ LoadRoot(scratch, Heap::kHashSeedRootIndex); |
__ SmiUntag(scratch); |
__ add(scratch, character); |
@@ -4234,7 +4234,7 @@ void StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime( |
Isolate* isolate) { |
StoreBufferOverflowStub stub(isolate, kDontSaveFPRegs); |
stub.GetCode(); |
- if (CpuFeatures::IsSafeForSnapshot(SSE2)) { |
+ if (CpuFeatures::IsSafeForSnapshot(isolate, SSE2)) { |
StoreBufferOverflowStub stub2(isolate, kSaveFPRegs); |
stub2.GetCode(); |
} |