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

Side by Side Diff: tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.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 unified diff | Download patch
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart ('k') | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // Tests of interceptors. 5 // Tests of interceptors.
6 6
7 library interceptors_tests; 7 library interceptors_tests;
8 8
9 import 'js_backend_cps_ir.dart'; 9 import 'js_backend_cps_ir.dart';
10 10
(...skipping 15 matching lines...) Expand all
26 print(l.length); 26 print(l.length);
27 for (int i = 0; i < l.length; i++) { 27 for (int i = 0; i < l.length; i++) {
28 var x = l[i]; 28 var x = l[i];
29 for (int j = 0; j < x.length; j++) { 29 for (int j = 0; j < x.length; j++) {
30 print(x[j]); 30 print(x[j]);
31 } 31 }
32 } 32 }
33 }""", 33 }""",
34 r""" 34 r"""
35 function() { 35 function() {
36 var l = ["hest", ["h", "e", "s", "t"]], i = 0, x_, x, j; 36 var l = ["hest", ["h", "e", "s", "t"]], i = 0, x, j;
37 for (P.print(l.length); i < l.length; i = i + 1) { 37 for (P.print(2); i < 2; i = i + 1) {
38 x_ = J.getInterceptor$as(x = l[i]); 38 x = l[i];
39 for (j = 0; j < x_.get$length(x); j = j + 1) { 39 for (j = 0; j < x.length; j = j + 1)
40 if (j >= x.length)
41 H.ioore(x, j);
42 P.print(x[j]); 40 P.print(x[j]);
43 }
44 } 41 }
45 }"""), 42 }"""),
46 ]; 43 ];
47 44
48 45
49 void main() { 46 void main() {
50 runTests(tests); 47 runTests(tests);
51 } 48 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698