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

Side by Side Diff: tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart

Issue 1562893002: dart2js cps: Generate increment and compound operators. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Also compound string concatenation Created 4 years, 11 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 | « tests/compiler/dart2js/js_backend_cps_ir_gvn_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 25 matching lines...) Expand all
36 for (int i = 0; i < l.length; i++) { 36 for (int i = 0; i < l.length; i++) {
37 var x = l[i]; 37 var x = l[i];
38 for (int j = 0; j < x.length; j++) { 38 for (int j = 0; j < x.length; j++) {
39 print(x[j]); 39 print(x[j]);
40 } 40 }
41 } 41 }
42 }""", 42 }""",
43 r""" 43 r"""
44 function() { 44 function() {
45 var l = ["hest", ["h", "e", "s", "t"]], i = 0, x, j; 45 var l = ["hest", ["h", "e", "s", "t"]], i = 0, x, j;
46 for (P.print(2); i < 2; i = i + 1) { 46 for (P.print(2); i < 2; ++i) {
47 x = l[i]; 47 x = l[i];
48 for (j = 0; j < x.length; j = j + 1) 48 for (j = 0; j < x.length; ++j)
49 P.print(x[j]); 49 P.print(x[j]);
50 } 50 }
51 }"""), 51 }"""),
52 ]; 52 ];
53 53
54 54
55 void main() { 55 void main() {
56 runTests(tests); 56 runTests(tests);
57 } 57 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_gvn_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698