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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_control_flow_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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
index 62f2537b39f9df3c34514d2ed48849a4d101d83e..00eef59365e0828961b8bc26a64b6286e6c079fa 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
@@ -153,7 +153,7 @@ main() {
}""",r"""
function() {
var list = [1, 2, 3, 4, 5, 6], i = 0, v0;
- for (; i < 6; i = i + 1) {
+ for (; i < 6; ++i) {
v0 = H.S(list[i]);
if (typeof dartPrint == "function")
dartPrint(v0);
@@ -177,7 +177,7 @@ main() {
}""",r"""
function() {
var xs = ["x", "y", "z"], ys = ["A", "B", "C"], i = 0, i1 = 0, current, current1;
- for (; i < 3; i = i + 1, i1 = i1 + 1) {
+ for (; i < 3; ++i, ++i1) {
current = xs[i];
if (!(i1 < 3))
break;
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_codeUnitAt_test.dart ('k') | tests/compiler/dart2js/js_backend_cps_ir_gvn_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698