Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Unified Diff: src/objects-inl.h

Issue 1571673002: [not for landing] Re-shuffle AllocationSite members (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rebased-scratchpad
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698