Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 4789ef3ed66a8f6221aca28acc2139877ac0a2ea..51fb4d6f143a46439ca3109672c2e5f89d71ac06 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -88,8 +88,10 @@ void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable, |
void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable, |
CallDescriptor::Flags flags, |
Operator::Properties properties) { |
+ const CallInterfaceDescriptor& descriptor = callable.descriptor(); |
CallDescriptor* desc = Linkage::GetStubCallDescriptor( |
- isolate(), zone(), callable.descriptor(), 0, flags, properties); |
+ isolate(), zone(), descriptor, descriptor.GetStackParameterCount(), flags, |
+ properties); |
Node* stub_code = jsgraph()->HeapConstant(callable.code()); |
node->InsertInput(zone(), 0, stub_code); |
NodeProperties::ChangeOp(node, common()->Call(desc)); |