Reviewers: Igor Sheludko,
Message:
ptal
Description:
Don't insert elements transitions into normalized maps
BUG=chromium:499790
LOG=n
Please review this at https://codereview.chromium.org/1203653003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+5, -3 lines):
M src/objects.cc
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index
5f07c02f8116496c3382187b16a6acd03cd18f3c..59ebc31d40ea6d91e8fd64b8b9cf9deef75df7c3
100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -1764,9 +1764,11 @@ bool Map::InstancesNeedRewriting(Map* target, int
target_number_of_fields,
void Map::ConnectElementsTransition(Handle<Map> parent, Handle<Map> child)
{
- Isolate* isolate = parent->GetIsolate();
- Handle<Name> name = isolate->factory()->elements_transition_symbol();
- ConnectTransition(parent, child, name, SPECIAL_TRANSITION);
+ if (!parent->is_dictionary_map()) {
+ Isolate* isolate = parent->GetIsolate();
+ Handle<Name> name = isolate->factory()->elements_transition_symbol();
+ ConnectTransition(parent, child, name, SPECIAL_TRANSITION);
+ }
}
--
--
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.