| Index: runtime/vm/intermediate_language.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.cc (revision 8103)
|
| +++ runtime/vm/intermediate_language.cc (working copy)
|
| @@ -46,8 +46,12 @@
|
|
|
|
|
| intptr_t CreateClosureComp::InputCount() const {
|
| + intptr_t input_count = 0;
|
| // Optional type arguments.
|
| - return (type_arguments() == NULL) ? 0 : 1;
|
| + if (type_arguments() != NULL) input_count++;
|
| + // Optional receiver.
|
| + if (function().IsImplicitInstanceClosureFunction()) input_count++;
|
| + return input_count;
|
| }
|
|
|
|
|
|
|