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

Unified Diff: src/objects.cc

Issue 379893002: Clean up and update const / var (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 6 years, 5 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/ia32/full-codegen-ia32.cc ('k') | src/parser.cc » ('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 702d8a222dcdd8ee31d06fec4206eaf3d6445c33..cd897970b9720b554a22313fc10dd05b67c53f02 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -2350,6 +2350,11 @@ Handle<Map> Map::CopyGeneralizeAllRepresentations(Handle<Map> map,
unused_property_fields += JSObject::kFieldsAdded;
}
new_map->set_unused_property_fields(unused_property_fields);
+ } else if (details.attributes() != attributes) {
+ FieldDescriptor d(handle(descriptors->GetKey(modify_index), isolate),
+ details.field_index(), attributes,
+ Representation::Tagged());
+ descriptors->Replace(modify_index, &d);
}
if (FLAG_trace_generalization) {
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698