Index: src/compiler/linkage.cc |
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc |
index b4c479170e2e72e0189d9da7523ede5067fb9055..7465bc675287d617af5b9716d9d28180e76caa5e 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): ? |
} |