Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 3a76a1758698f238cfe71b0a694bf3869f4fe596..de42c6d398a4594892f594fc03cae04e0faec20c 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1629,7 +1629,6 @@ void AllocationSite::Initialize() { |
SetElementsKind(GetInitialFastElementsKind()); |
set_nested_site(Smi::FromInt(0)); |
set_pretenure_data(0); |
- set_pretenure_create_count(0); |
set_dependent_code(DependentCode::cast(GetHeap()->empty_fixed_array()), |
SKIP_WRITE_BARRIER); |
} |
@@ -1747,11 +1746,15 @@ void AllocationSite::set_deopt_dependent_code(bool deopt) { |
} |
-int AllocationSite::memento_create_count() { return pretenure_create_count(); } |
+int AllocationSite::memento_create_count() { |
+ int value = pretenure_data(); |
+ return MementoCreatedCountBits::decode(value); |
+} |
void AllocationSite::set_memento_create_count(int count) { |
- set_pretenure_create_count(count); |
+ int value = pretenure_data(); |
+ set_pretenure_data(MementoCreatedCountBits::update(value, count)); |
} |
@@ -5530,8 +5533,6 @@ ACCESSORS(ObjectTemplateInfo, internal_field_count, Object, |
ACCESSORS(AllocationSite, transition_info, Object, kTransitionInfoOffset) |
ACCESSORS(AllocationSite, nested_site, Object, kNestedSiteOffset) |
SMI_ACCESSORS(AllocationSite, pretenure_data, kPretenureDataOffset) |
-SMI_ACCESSORS(AllocationSite, pretenure_create_count, |
- kPretenureCreateCountOffset) |
ACCESSORS(AllocationSite, dependent_code, DependentCode, |
kDependentCodeOffset) |
ACCESSORS(AllocationSite, weak_next, Object, kWeakNextOffset) |