| 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 d1353979d145a3d1fa3a0142e9467c7efd29c125..faa8c1c229a2cecb096917982c5a9e09c44fd852 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
|
| @@ -713,9 +713,11 @@ class IrBuilder {
|
| /// Creates a non-constant list literal of the provided [type] and with the
|
| /// provided [values].
|
| ir.Primitive buildListLiteral(InterfaceType type,
|
| - Iterable<ir.Primitive> values) {
|
| + Iterable<ir.Primitive> values,
|
| + {TypeMask allocationSiteType}) {
|
| assert(isOpen);
|
| - return addPrimitive(new ir.LiteralList(type, values.toList()));
|
| + return addPrimitive(new ir.LiteralList(type, values.toList(),
|
| + allocationSiteType: allocationSiteType));
|
| }
|
|
|
| /// Creates a non-constant map literal of the provided [type] and with the
|
| @@ -2606,7 +2608,8 @@ class IrBuilder {
|
| CallStructure callStructure,
|
| DartType type,
|
| List<ir.Primitive> arguments,
|
| - SourceInformation sourceInformation) {
|
| + SourceInformation sourceInformation,
|
| + {TypeMask allocationSiteType}) {
|
| assert(isOpen);
|
| Selector selector =
|
| new Selector(SelectorKind.CALL, element.memberName, callStructure);
|
| @@ -2624,7 +2627,8 @@ class IrBuilder {
|
| }
|
| return _continueWithExpression(
|
| (k) => new ir.InvokeConstructor(
|
| - type, element, selector, arguments, k, sourceInformation));
|
| + type, element, selector, arguments, k, sourceInformation,
|
| + allocationSiteType: allocationSiteType));
|
| }
|
|
|
| ir.Primitive buildTypeExpression(DartType type) {
|
|
|