| Index: src/compiler/linkage.cc
|
| diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc
|
| index 66e5cda7d7536f01431f1bdf9edf4a1b114299b0..2bbedaceb26b075b7ddc60b8c65081e4be29bce5 100644
|
| --- a/src/compiler/linkage.cc
|
| +++ b/src/compiler/linkage.cc
|
| @@ -171,11 +171,11 @@ CallDescriptor* Linkage::ComputeIncoming(Zone* zone, CompilationInfo* info) {
|
| info->isolate(), zone, descriptor, stub->GetStackParameterCount(),
|
| CallDescriptor::kNoFlags, Operator::kNoProperties);
|
| }
|
| - if (info->function() != NULL) {
|
| + if (info->has_literal()) {
|
| // If we already have the function literal, use the number of parameters
|
| // plus the receiver.
|
| return GetJSCallDescriptor(zone, info->is_osr(),
|
| - 1 + info->function()->parameter_count(),
|
| + 1 + info->literal()->parameter_count(),
|
| CallDescriptor::kNoFlags);
|
| }
|
| if (!info->closure().is_null()) {
|
|
|