| Index: src/arm/codegen-arm.cc
|
| diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc
|
| index e30de0d51fa0b37255ae0ac947aa55488cc94ffa..e7cd04d0615da4b9ee2c78cb0057b77889f9bba4 100644
|
| --- a/src/arm/codegen-arm.cc
|
| +++ b/src/arm/codegen-arm.cc
|
| @@ -3112,9 +3112,10 @@ void CodeGenerator::InstantiateFunction(
|
| bool pretenure) {
|
| // Use the fast case closure allocation code that allocates in new
|
| // space for nested functions that don't need literals cloning.
|
| - if (scope()->is_function_scope() &&
|
| + if (!pretenure &&
|
| + scope()->is_function_scope() &&
|
| function_info->num_literals() == 0 &&
|
| - !pretenure) {
|
| + !function_info->strict_mode()) { // Strict mode functions use slow path.
|
| FastNewClosureStub stub;
|
| frame_->EmitPush(Operand(function_info));
|
| frame_->SpillAll();
|
|
|