| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index a89c049ebca8da32f0b60fbb2c331f6e144555c0..5014c91e1352bc1ded9f1eba4d90f70a375252cf 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1330,6 +1330,7 @@ bool JSObject::ShouldTrackAllocationInfo() {
|
|
|
|
|
| void AllocationSite::Initialize() {
|
| + set_transition_info(Smi::FromInt(0));
|
| SetElementsKind(GetInitialFastElementsKind());
|
| set_nested_site(Smi::FromInt(0));
|
| set_dependent_code(DependentCode::cast(GetHeap()->empty_fixed_array()),
|
| @@ -1367,6 +1368,21 @@ inline bool AllocationSite::CanTrack(InstanceType type) {
|
| }
|
|
|
|
|
| +inline DependentCode::DependencyGroup AllocationSite::ToDependencyGroup(
|
| + Reason reason) {
|
| + switch (reason) {
|
| + case TENURING:
|
| + return DependentCode::kAllocationSiteTenuringChangedGroup;
|
| + break;
|
| + case TRANSITIONS:
|
| + return DependentCode::kAllocationSiteTransitionChangedGroup;
|
| + break;
|
| + }
|
| + UNREACHABLE();
|
| + return DependentCode::kAllocationSiteTransitionChangedGroup;
|
| +}
|
| +
|
| +
|
| void JSObject::EnsureCanContainHeapObjectElements(Handle<JSObject> object) {
|
| object->ValidateElements();
|
| ElementsKind elements_kind = object->map()->elements_kind();
|
|
|