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

Unified Diff: src/transitions.cc

Issue 1203653003: Don't insert elements transitions into normalized maps (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/objects.cc ('k') | test/mjsunit/regress/regress-499790.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/transitions.cc
diff --git a/src/transitions.cc b/src/transitions.cc
index c39534bbb566a2930934d2a56482517a2d18e1c6..f00f33146792df503ffe9cd333bb0206e87c97b2 100644
--- a/src/transitions.cc
+++ b/src/transitions.cc
@@ -223,6 +223,7 @@ Handle<String> TransitionArray::ExpectedTransitionKey(Handle<Map> map) {
// static
bool TransitionArray::CanHaveMoreTransitions(Handle<Map> map) {
+ if (map->is_dictionary_map()) return false;
Object* raw_transitions = map->raw_transitions();
if (IsFullTransitionArray(raw_transitions)) {
TransitionArray* transitions = TransitionArray::cast(raw_transitions);
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/regress/regress-499790.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698