Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index d907c3d14ffa883569fe25d785101a96a460662c..da42aba523c3f635bf22e3caedf2b5c17497410b 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -529,6 +529,9 @@ void JSGenericLowering::LowerJSCallFunction(Node* node) { |
CallFunctionStub stub(isolate(), arg_count, p.flags()); |
CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor(); |
CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
+ if (p.AllowTailCalls()) { |
+ flags |= CallDescriptor::kSupportsTailCalls; |
+ } |
CallDescriptor* desc = Linkage::GetStubCallDescriptor( |
isolate(), zone(), d, static_cast<int>(p.arity() - 1), flags); |
Node* stub_code = jsgraph()->HeapConstant(stub.GetCode()); |