Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 8b148624d86b8792207fac3e3125d273299a1e8f..c4ae1cd36c1c3becdd02fc6ad9a6b1114b1e2006 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -1041,9 +1041,8 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, |
!FLAG_prepare_always_opt && |
!pretenure && |
scope()->is_function_scope() && |
- info->num_literals() == 0 && |
- !info->strict_mode()) { // Strict mode functions use slow path. |
- FastNewClosureStub stub; |
+ info->num_literals() == 0) { |
+ FastNewClosureStub stub(info->strict_mode() ? kStrictMode : kNonStrictMode); |
__ Push(info); |
__ CallStub(&stub); |
} else { |