Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index d9c324c424598f2830ed8ddd1ffb776a1d0b80f7..5b62ab5d9d84d121d5033cf8d5ba913fe7ea2355 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -1680,7 +1680,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
int array_index = 0; |
for (; array_index < length; array_index++) { |
Expression* subexpr = subexprs->at(array_index); |
- if (subexpr->IsSpread()) break; |
+ DCHECK(!subexpr->IsSpread()); |
// If the subexpression is a literal or a simple materialized literal it |
// is already set in the cloned array. |
if (CompileTimeValue::IsCompileTimeValue(subexpr)) continue; |
@@ -1715,14 +1715,9 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
Expression* subexpr = subexprs->at(array_index); |
__ Push(r3); |
- if (subexpr->IsSpread()) { |
- VisitForStackValue(subexpr->AsSpread()->expression()); |
- __ InvokeBuiltin(Context::CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, |
- CALL_FUNCTION); |
- } else { |
- VisitForStackValue(subexpr); |
- __ CallRuntime(Runtime::kAppendElement); |
- } |
+ DCHECK(!subexpr->IsSpread()); |
+ VisitForStackValue(subexpr); |
+ __ CallRuntime(Runtime::kAppendElement); |
PrepareForBailoutForId(expr->GetIdForElement(array_index), NO_REGISTERS); |
} |