| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library compiler.src.inferrer.list_tracer; | 5 library compiler.src.inferrer.list_tracer; |
| 6 | 6 |
| 7 import '../elements/elements.dart'; | 7 import '../elements/elements.dart'; |
| 8 import '../universe/selector.dart' show Selector; | 8 import '../universe/selector.dart' show Selector; |
| 9 import '../util/util.dart' show Setlet; | 9 import '../util/util.dart' show Setlet; |
| 10 | |
| 11 import 'node_tracer.dart'; | 10 import 'node_tracer.dart'; |
| 12 import 'type_graph_nodes.dart'; | 11 import 'type_graph_nodes.dart'; |
| 13 | 12 |
| 14 /** | 13 /** |
| 15 * A set of selector names that [List] implements, that we know do not | 14 * A set of selector names that [List] implements, that we know do not |
| 16 * change the element type of the list, or let the list escape to code | 15 * change the element type of the list, or let the list escape to code |
| 17 * that might change the element type. | 16 * that might change the element type. |
| 18 */ | 17 */ |
| 19 Set<String> okListSelectorsSet = new Set<String>.from(const <String>[ | 18 Set<String> okListSelectorsSet = new Set<String>.from(const <String>[ |
| 20 // From Object. | 19 // From Object. |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 callsGrowableMethod = true; | 203 callsGrowableMethod = true; |
| 205 assignments.add(inferrer.types.nullType); | 204 assignments.add(inferrer.types.nullType); |
| 206 } | 205 } |
| 207 } else if (selector.isCall && | 206 } else if (selector.isCall && |
| 208 !info.targets.every((element) => element.isFunction)) { | 207 !info.targets.every((element) => element.isFunction)) { |
| 209 bailout('Passed to a closure'); | 208 bailout('Passed to a closure'); |
| 210 return; | 209 return; |
| 211 } | 210 } |
| 212 } | 211 } |
| 213 } | 212 } |
| OLD | NEW |