Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 322479dec60715085633e4642ff18b3c31d5ae29..9d179a93f84915eba94fda058379ced4da12d85e 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -1239,6 +1239,7 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, |
!FLAG_prepare_always_opt && |
!pretenure && |
scope()->is_function_scope() && |
+ !info->is_generator() && |
info->num_literals() == 0) { |
FastNewClosureStub stub(info->language_mode()); |
__ Push(info); |