Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index e0e0254b633fd658b277d676457b4ae6467ec850..34d48cd86568f18625165d13e08471836db3ef5e 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -5930,7 +5930,8 @@ void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { |
Handle<SharedFunctionInfo> shared_info = instr->shared_info(); |
bool pretenure = instr->hydrogen()->pretenure(); |
if (!pretenure && shared_info->num_literals() == 0) { |
- FastNewClosureStub stub(shared_info->language_mode()); |
+ FastNewClosureStub stub(shared_info->language_mode(), |
+ shared_info->is_generator()); |
__ push(Immediate(shared_info)); |
CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
} else { |