| Index: src/compiler/linkage.cc
|
| diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc
|
| index eedf9ed746336fd4241c9fa9c15942956018bbe4..c5829322ffe1721d6c89bdb124facae4ab1e43ce 100644
|
| --- a/src/compiler/linkage.cc
|
| +++ b/src/compiler/linkage.cc
|
| @@ -39,6 +39,14 @@ std::ostream& operator<<(std::ostream& os, const CallDescriptor& d) {
|
|
|
|
|
| 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);
|
| + }
|
| if (info->function() != NULL) {
|
| // If we already have the function literal, use the number of parameters
|
| // plus the receiver.
|
| @@ -54,14 +62,6 @@ CallDescriptor* Linkage::ComputeIncoming(Zone* zone, CompilationInfo* info) {
|
| 1 + shared->internal_formal_parameter_count(),
|
| CallDescriptor::kNoFlags);
|
| }
|
| - 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);
|
| - }
|
| return NULL; // TODO(titzer): ?
|
| }
|
|
|
|
|