Reviewers: Jakob,

Message:
ptal

Description:
Remove map-copying for global objects. This was an old (broken) requirement that
has been fixed for a while.

BUG=

Please review this at https://codereview.chromium.org/1235113002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+1, -6 lines):
  M src/objects.cc


Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index e53df91d0ba67f99ba9bb1f422a4b68ff9fed72d..dfe7fce5ec39eae45531ca20f44f1efe4831b76b 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -7272,12 +7272,7 @@ Handle<Map> Map::TransitionToAccessorProperty(Handle<Map> map,
   Isolate* isolate = name->GetIsolate();

   // Dictionary maps can always have additional data properties.
-  if (map->is_dictionary_map()) {
- // For global objects, property cells are inlined. We need to change the
-    // map.
-    if (map->IsGlobalObjectMap()) return Copy(map, "GlobalAccessor");
-    return map;
-  }
+  if (map->is_dictionary_map()) return map;

   // Migrate to the newest map before transitioning to the new property.
   map = Update(map);


--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to