Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index c17ce17a1d1698f56cc49c73f720943354876bb8..2bf85f87c2a04592828fbff1f3068582266ed442 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -8703,7 +8703,7 @@ bool HOptimizedGraphBuilder::IsReadOnlyLengthDescriptor( |
// static |
bool HOptimizedGraphBuilder::CanInlineArrayResizeOperation( |
Handle<Map> receiver_map) { |
- return !receiver_map.is_null() && |
+ return !receiver_map.is_null() && receiver_map->prototype()->IsJSObject() && |
receiver_map->instance_type() == JS_ARRAY_TYPE && |
IsFastElementsKind(receiver_map->elements_kind()) && |
!receiver_map->is_dictionary_map() && !receiver_map->is_observed() && |