Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index aa533bf836bffd4c551f894eef6b98b420f2bb5a..539348abb2fe94bd0d9edfb956a08a14ecb60c25 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -7818,8 +7818,12 @@ static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) { |
TERMINAL_FAST_ELEMENTS_KIND); |
for (int i = 0; i <= to_index; ++i) { |
ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); |
- T stub(kind); |
+ T stub(kind, false); |
stub.GetCode(isolate)->set_is_pregenerated(true); |
+ if (AllocationSiteInfo::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) { |
+ T stub1(kind, true); |
+ stub1.GetCode(isolate)->set_is_pregenerated(true); |
+ } |
} |
} |