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

Unified Diff: src/objects.cc

Issue 1856653002: Properly complete in-object slack tracking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | test/mjsunit/regress/regress-crbug-599003.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 026f01d826542960581dc4c58a39e76b57a07184..251a3a81ffdee8edda516eb358ea30776bcd4c72 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -12519,6 +12519,9 @@ static void ShrinkInstanceSize(Map* map, void* data) {
map->set_visitor_id(Heap::GetStaticVisitorIdForMap(map));
}
+static void StopSlackTracking(Map* map, void* data) {
+ map->set_construction_counter(Map::kNoSlackTracking);
+}
void Map::CompleteInobjectSlackTracking() {
// Has to be an initial map.
@@ -12529,6 +12532,8 @@ void Map::CompleteInobjectSlackTracking() {
if (slack != 0) {
// Resize the initial map and all maps in its transition tree.
TransitionArray::TraverseTransitionTree(this, &ShrinkInstanceSize, &slack);
+ } else {
+ TransitionArray::TraverseTransitionTree(this, &StopSlackTracking, nullptr);
}
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-599003.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698