Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index c5d601ca2e3dde6b2f00a3426077a54d16e1e355..dbb882170be1e953912e6e93808633c6b5d248ac 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7878,6 +7878,7 @@ bool HOptimizedGraphBuilder::TryInlineBuiltinMethodCall( |
ElementsKind elements_kind = receiver_map->elements_kind(); |
if (!IsFastElementsKind(elements_kind)) return false; |
if (receiver_map->is_observed()) return false; |
+ if (JSArray::IsReadOnlyLengthDescriptor(receiver_map)) return false; |
ASSERT(receiver_map->is_extensible()); |
// If there may be elements accessors in the prototype chain, the fast |