| Index: runtime/vm/intermediate_language.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.cc (revision 8115)
|
| +++ runtime/vm/intermediate_language.cc (working copy)
|
| @@ -46,12 +46,8 @@
|
|
|
|
|
| intptr_t CreateClosureComp::InputCount() const {
|
| - intptr_t input_count = 0;
|
| - // Optional type arguments.
|
| - if (type_arguments() != NULL) input_count++;
|
| - // Optional receiver.
|
| - if (function().IsImplicitInstanceClosureFunction()) input_count++;
|
| - return input_count;
|
| + // Type arguments (or null object) and receiver of implicit instance closure.
|
| + return function().IsImplicitInstanceClosureFunction() ? 2 : 1;
|
| }
|
|
|
|
|
|
|