Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 687f6d9a115f7fa887bf4894915422b4e9f8e364..e413fb242867ecbec471b58954ffbdb7c2e1f532 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -6029,7 +6029,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()); |
__ mov(r1, Operand(shared_info)); |
__ push(r1); |
CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |