Index: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart |
index 98ff014abd7d200d8e646b8a0569fabd78d760f8..15910c86650599864686f42384496e24544ed5f3 100644 |
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart |
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart |
@@ -656,11 +656,9 @@ abstract class IrBuilder { |
} |
ir.Primitive _buildInvokeCall(ir.Primitive target, |
- Selector selector, |
- List<ir.Definition> arguments) { |
- Selector callSelector = new Selector.callClosure( |
- selector.argumentCount, |
- selector.namedArguments); |
+ Selector selector, |
+ List<ir.Definition> arguments) { |
+ Selector callSelector = new Selector.callClosureFrom(selector); |
return _buildInvokeDynamic(target, callSelector, arguments); |
} |