Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index f74b18297d5eb9f5ed14e505be2752d0d1020bad..2ff8722c8471f1368287264d2ad6b0ff3ee82675 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -9058,6 +9058,7 @@ bool HOptimizedGraphBuilder::TryInlineBuiltinMethodCall( |
case kArrayLastIndexOf: { |
if (receiver_map.is_null()) return false; |
if (receiver_map->instance_type() != JS_ARRAY_TYPE) return false; |
+ if (!receiver_map->prototype()->IsJSObject()) return false; |
ElementsKind kind = receiver_map->elements_kind(); |
if (!IsFastElementsKind(kind)) return false; |
if (receiver_map->is_observed()) return false; |