Index: src/compiler/linkage.cc |
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc |
index 08fef67c1f2b25dcd35a6824332ab94d979e2949..3027872ee0deec01cd968e853ddaa4bb57cd652a 100644 |
--- a/src/compiler/linkage.cc |
+++ b/src/compiler/linkage.cc |
@@ -51,11 +51,11 @@ bool CallDescriptor::HasSameReturnLocationsAs( |
CallDescriptor* Linkage::ComputeIncoming(Zone* zone, CompilationInfo* info) { |
if (info->code_stub() != NULL) { |
// Use the code stub interface descriptor. |
- CallInterfaceDescriptor descriptor = |
- info->code_stub()->GetCallInterfaceDescriptor(); |
- return GetStubCallDescriptor(info->isolate(), zone, descriptor, 0, |
- CallDescriptor::kNoFlags, |
- Operator::kNoProperties); |
+ CodeStub* stub = info->code_stub(); |
+ CallInterfaceDescriptor descriptor = stub->GetCallInterfaceDescriptor(); |
+ return GetStubCallDescriptor( |
+ info->isolate(), zone, descriptor, stub->GetStackParameterCount(), |
+ CallDescriptor::kNoFlags, Operator::kNoProperties); |
} |
if (info->function() != NULL) { |
// If we already have the function literal, use the number of parameters |