Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 006aff394c20cd517c516e0823424f3aa42c9c80..ff0855d0a2b2bf6ae1ec701346c7c3c61573a0b7 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1332,6 +1332,9 @@ bool JSObject::ShouldTrackAllocationInfo() { |
void AllocationSite::Initialize() { |
SetElementsKind(GetInitialFastElementsKind()); |
set_nested_site(Smi::FromInt(0)); |
+ set_memento_create_count(Smi::FromInt(0)); |
+ set_memento_found_count(Smi::FromInt(0)); |
+ set_pretenure_decision(Smi::FromInt(0)); |
set_dependent_code(DependentCode::cast(GetHeap()->empty_fixed_array()), |
SKIP_WRITE_BARRIER); |
} |
@@ -4552,6 +4555,10 @@ ACCESSORS(TypeSwitchInfo, types, Object, kTypesOffset) |
ACCESSORS(AllocationSite, transition_info, Object, kTransitionInfoOffset) |
ACCESSORS(AllocationSite, nested_site, Object, kNestedSiteOffset) |
+ACCESSORS_TO_SMI(AllocationSite, memento_found_count, kMementoFoundCountOffset) |
+ACCESSORS_TO_SMI(AllocationSite, memento_create_count, |
+ kMementoCreateCountOffset) |
+ACCESSORS_TO_SMI(AllocationSite, pretenure_decision, kPretenureDecisionOffset) |
ACCESSORS(AllocationSite, dependent_code, DependentCode, |
kDependentCodeOffset) |
ACCESSORS(AllocationSite, weak_next, Object, kWeakNextOffset) |