| Index: src/x64/codegen-x64.cc
|
| diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc
|
| index 3c054cd49a0d11aec75c2a49e545cad922ceb7ea..8074b4a38a3d7fc21b17430a6bab333e67798cdd 100644
|
| --- a/src/x64/codegen-x64.cc
|
| +++ b/src/x64/codegen-x64.cc
|
| @@ -4261,9 +4261,10 @@ void CodeGenerator::InstantiateFunction(
|
|
|
| // 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_->Push(function_info);
|
| Result answer = frame_->CallStub(&stub, 1);
|
|
|