Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 8c59ce86c9fe11f4c8ed1cfb76a8ed69cfcd3f2f..3e4a169b56be5a20dac293cdb0ac9ced5fb40599 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8601,9 +8601,10 @@ bool HOptimizedGraphBuilder::CanInlineArrayResizeOperation( |
return !receiver_map.is_null() && |
receiver_map->instance_type() == JS_ARRAY_TYPE && |
IsFastElementsKind(receiver_map->elements_kind()) && |
- !receiver_map->is_dictionary_map() && |
- !IsReadOnlyLengthDescriptor(receiver_map) && |
- !receiver_map->is_observed() && receiver_map->is_extensible(); |
+ !receiver_map->is_dictionary_map() && !receiver_map->is_observed() && |
+ receiver_map->is_extensible() && |
+ (!receiver_map->is_prototype_map() || receiver_map->is_stable()) && |
+ !IsReadOnlyLengthDescriptor(receiver_map); |
} |