| Index: pkg/compiler/lib/src/js_backend/resolution_listener.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/resolution_listener.dart b/pkg/compiler/lib/src/js_backend/resolution_listener.dart
|
| index af08ceb09f0406da16425f04c5134988776a90f6..b009d63ff1acea45dbb393acfb5ddd578ff390fe 100644
|
| --- a/pkg/compiler/lib/src/js_backend/resolution_listener.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/resolution_listener.dart
|
| @@ -152,8 +152,11 @@ class ResolutionEnqueuerListener extends EnqueuerListener {
|
| /// Computes the [WorldImpact] of calling [mainMethod] as the entry point.
|
| WorldImpact _computeMainImpact(FunctionEntity mainMethod) {
|
| WorldImpactBuilderImpl mainImpact = new WorldImpactBuilderImpl();
|
| - CallStructure callStructure =
|
| - _elementEnvironment.getCallStructure(mainMethod);
|
| + ParameterStructure parameterStructure = mainMethod.parameterStructure;
|
| + CallStructure callStructure = new CallStructure(
|
| + parameterStructure.positionalParameters +
|
| + parameterStructure.namedParameters.length,
|
| + parameterStructure.namedParameters);
|
| if (callStructure.argumentCount > 0) {
|
| _impacts.mainWithArguments
|
| .registerImpact(mainImpact, _elementEnvironment);
|
|
|