| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 13ae603520b222ff9f4a6bdfacbf57718742af15..4187704ae11c45716588c78c996966e5e3adcb8f 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1323,6 +1323,12 @@ bool JSObject::ShouldTrackAllocationInfo() {
|
| return false;
|
| }
|
|
|
| +void AllocationSite::Initialize() {
|
| + SetElementsKind(GetInitialFastElementsKind());
|
| + set_dependent_code(DependentCode::cast(GetHeap()->empty_fixed_array()),
|
| + SKIP_WRITE_BARRIER);
|
| +}
|
| +
|
|
|
| // Heuristic: We only need to create allocation site info if the boilerplate
|
| // elements kind is the initial elements kind.
|
| @@ -4505,6 +4511,8 @@ ACCESSORS(SignatureInfo, args, Object, kArgsOffset)
|
| ACCESSORS(TypeSwitchInfo, types, Object, kTypesOffset)
|
|
|
| ACCESSORS(AllocationSite, transition_info, Object, kTransitionInfoOffset)
|
| +ACCESSORS(AllocationSite, dependent_code, DependentCode,
|
| + kDependentCodeOffset)
|
| ACCESSORS(AllocationSite, weak_next, Object, kWeakNextOffset)
|
| ACCESSORS(AllocationMemento, allocation_site, Object, kAllocationSiteOffset)
|
|
|
|
|