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

Unified Diff: src/objects.cc

Issue 1861073002: Version 5.0.71.30 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
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 | « include/v8-version.h ('k') | 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 58d51c11ae874ce2ed087636dd84b3844b358a7d..99a0bf1f3c712d2e8ffedc9e0bc1d6eeae11dfaf 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -12586,6 +12586,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.
@@ -12596,6 +12599,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 | « include/v8-version.h ('k') | test/mjsunit/regress/regress-crbug-599003.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698