Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart

Issue 1416723008: dart2js cps: Propagate container types for lists. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove unreachable handling of list constructor in type propagation Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/common/names.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « pkg/compiler/lib/src/common/names.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698