| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 56fde30433158490204a50da96438175c046862b..4ee437214b61ba630d6f87ac204fecda7e7ae01a 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1323,6 +1323,13 @@ bool JSObject::ShouldTrackAllocationInfo() {
|
| }
|
|
|
|
|
| +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.
|
| AllocationSiteMode AllocationSite::GetMode(
|
| @@ -4480,6 +4487,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)
|
|
|
|
|