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

Unified Diff: src/objects.cc

Issue 2379633002: [runtime] Mark maps created as a result of field representation generalization as transition targets (Closed)
Patch Set: Rebased Created 3 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 | « no previous file | no next file » | 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 1ffd3b5faca8947b63bda51462f4d2f371a72b81..fa2dcdbfc4fc6b15a97c48e9964bf10a003176b0 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -9159,8 +9159,10 @@ Handle<Map> UpdateDescriptorForValue(Handle<Map> map, int descriptor,
Handle<FieldType> type = value->OptimalType(isolate, representation);
MapUpdater mu(isolate, map);
- return mu.ReconfigureToDataField(descriptor, attributes, representation,
- type);
+ Handle<Map> new_map =
+ mu.ReconfigureToDataField(descriptor, attributes, representation, type);
+ new_map->set_migration_target(true);
+ return new_map;
}
} // namespace
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698