Commit 83199460 authored by ishell's avatar ishell Committed by Commit bot

[runtime] Mark maps created as a result of field type or representation...

[runtime] Mark maps created as a result of field type or representation generalization as migration targets.

BUG=v8:5444

Review-Url: https://codereview.chromium.org/2379633002
Cr-Commit-Position: refs/heads/master@{#42307}
parent baf5a217
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment