Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 5bf9f7b0d154f66c9e924695dc3c5dd2f1df0987..84de23dc5c79c6941cb957a71093a9b883ad6c05 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5861,6 +5861,10 @@ void HOptimizedGraphBuilder::VisitArrayLiteral(ArrayLiteral* expr) { |
for (int i = 0; i < length; i++) { |
Expression* subexpr = subexprs->at(i); |
+ if (subexpr->IsSpread()) { |
+ return Bailout(kSpread); |
+ } |
+ |
// If the subexpression is a literal or a simple materialized literal it |
// is already set in the cloned array. |
if (CompileTimeValue::IsCompileTimeValue(subexpr)) continue; |