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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart

Issue 17334003: Do not treat elements of lists allocated through new List() and new List.filled() as potentially nu… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 months 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
Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (revision 24172)
+++ sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (working copy)
@@ -1726,7 +1726,8 @@
return inferrer.concreteTypes.putIfAbsent(
node, () => new ContainerTypeMask(
inferrer.growableListType, node, outermostElement));
- } else if (Elements.isFixedListConstructorCall(element, node, compiler)) {
+ } else if (Elements.isFixedListConstructorCall(element, node, compiler)
+ || Elements.isFilledListConstructorCall(element, node, compiler)) {
return inferrer.concreteTypes.putIfAbsent(
node, () => new ContainerTypeMask(
inferrer.fixedListType, node, outermostElement));
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/types/container_tracer.dart ('k') | tests/compiler/dart2js/list_tracer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698