| Index: src/full-codegen.cc
|
| diff --git a/src/full-codegen.cc b/src/full-codegen.cc
|
| index 4ea455edfe9d2f1ac9c0b4f0109cb69d8297ea24..9dbe301b31978228dd3acfb9dec0a565b854b488 100644
|
| --- a/src/full-codegen.cc
|
| +++ b/src/full-codegen.cc
|
| @@ -412,7 +412,8 @@ bool FullCodeGenerator::MustCreateObjectLiteralWithRuntime(
|
|
|
| bool FullCodeGenerator::MustCreateArrayLiteralWithRuntime(
|
| ArrayLiteral* expr) const {
|
| - return expr->depth() > 1 ||
|
| + // TODO(rossberg): Teach strong mode to FastCloneShallowArrayStub.
|
| + return expr->depth() > 1 || expr->is_strong() ||
|
| expr->values()->length() > JSObject::kInitialMaxFastElementArray;
|
| }
|
|
|
|
|