Index: src/x64/codegen-x64.cc |
diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc |
index 10aa4519f1b1f1cbb1d302da53672b24afd802f9..21c90a1f164ddd56fa820b5c80aa85e7f675b30c 100644 |
--- a/src/x64/codegen-x64.cc |
+++ b/src/x64/codegen-x64.cc |
@@ -4260,10 +4260,9 @@ 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 (!pretenure && |
- scope()->is_function_scope() && |
+ if (scope()->is_function_scope() && |
function_info->num_literals() == 0 && |
- !function_info->strict_mode()) { // Strict mode functions use slow path. |
+ !pretenure) { |
FastNewClosureStub stub; |
frame_->Push(function_info); |
Result answer = frame_->CallStub(&stub, 1); |