| Index: src/full-codegen/full-codegen.cc
|
| diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc
|
| index 20eb47e05652d3d40e9d8700d296a35b459b5d00..444dd8ec25d86f6b2b6d6a8487fa6d733fd25816 100644
|
| --- a/src/full-codegen/full-codegen.cc
|
| +++ b/src/full-codegen/full-codegen.cc
|
| @@ -183,8 +183,7 @@ bool FullCodeGenerator::MustCreateObjectLiteralWithRuntime(
|
|
|
| bool FullCodeGenerator::MustCreateArrayLiteralWithRuntime(
|
| ArrayLiteral* expr) const {
|
| - return expr->depth() > 1 ||
|
| - expr->values()->length() > JSArray::kInitialMaxFastElementArray;
|
| + return !FastCloneShallowArrayStub::IsSupported(expr);
|
| }
|
|
|
| void FullCodeGenerator::Initialize(uintptr_t stack_limit) {
|
|
|