| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index efbdf135445b9988494af3affdfab5775f3bd9f4..01e109ee533e0c3a1719b64c13a0b88e1c506161 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -1213,6 +1213,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(Immediate(info));
|
|
|