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

Side by Side Diff: pkg/compiler/lib/src/inferrer/node_tracer.dart

Issue 1230463003: dart2js: include 'any' and 'every' as possibly escaping the values in the collection (fix #23804) (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/23804_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 part of type_graph_inferrer; 5 part of type_graph_inferrer;
6 6
7 // A set of selectors we know do not escape the elements inside the 7 // A set of selectors we know do not escape the elements inside the
8 // list. 8 // list.
9 Set<String> doesNotEscapeListSet = new Set<String>.from( 9 Set<String> doesNotEscapeListSet = new Set<String>.from(
10 const <String>[ 10 const <String>[
11 // From Object. 11 // From Object.
12 '==', 12 '==',
13 'hashCode', 13 'hashCode',
14 'toString', 14 'toString',
15 'noSuchMethod', 15 'noSuchMethod',
16 'runtimeType', 16 'runtimeType',
17 17
18 // From Iterable. 18 // From Iterable.
19 'isEmpty', 19 'isEmpty',
20 'isNotEmpty', 20 'isNotEmpty',
21 'length', 21 'length',
22 'any',
23 'contains', 22 'contains',
24 'every',
25 'join', 23 'join',
26 24
27 // From List. 25 // From List.
28 'add', 26 'add',
29 'addAll', 27 'addAll',
30 'clear', 28 'clear',
31 'fillRange', 29 'fillRange',
32 'indexOf', 30 'indexOf',
33 'insert', 31 'insert',
34 'insertAll', 32 'insertAll',
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 } 387 }
390 if (isParameterOfListAddingMethod(info.element) || 388 if (isParameterOfListAddingMethod(info.element) ||
391 isParameterOfMapAddingMethod(info.element)) { 389 isParameterOfMapAddingMethod(info.element)) {
392 // These elements are being handled in 390 // These elements are being handled in
393 // [visitDynamicCallSiteTypeInformation]. 391 // [visitDynamicCallSiteTypeInformation].
394 return; 392 return;
395 } 393 }
396 addNewEscapeInformation(info); 394 addNewEscapeInformation(info);
397 } 395 }
398 } 396 }
OLDNEW
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/23804_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698