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

Unified Diff: tests/compiler/dart2js/cps_ir/expected/codeUnitAt_2.js

Issue 1560963002: Do TypePropagation again after inlining (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: fix tests 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/cps_ir/expected/codeUnitAt_2.js
diff --git a/tests/compiler/dart2js/cps_ir/expected/codeUnitAt_2.js b/tests/compiler/dart2js/cps_ir/expected/codeUnitAt_2.js
index 73e278b67792408f658af7253931f00d575c1d04..4fdd8a219abedac7e4bbaf2aaf50ee7191a3e49a 100644
--- a/tests/compiler/dart2js/cps_ir/expected/codeUnitAt_2.js
+++ b/tests/compiler/dart2js/cps_ir/expected/codeUnitAt_2.js
@@ -11,13 +11,12 @@
// }
function() {
- var v0 = "ABC".length, sum = 0, i = 0;
- for (; i < v0; sum += "ABC".charCodeAt(i), ++i)
+ var sum = 0, i = 0;
+ for (; i < 3; sum += "ABC".charCodeAt(i), ++i)
;
P.print(sum);
- v0 = "Hello".length;
sum = 0;
- for (i = 0; i < v0; sum += "Hello".charCodeAt(i), ++i)
+ for (i = 0; i < 5; sum += "Hello".charCodeAt(i), ++i)
;
P.print(sum);
}
« no previous file with comments | « tests/compiler/dart2js/cps_ir/expected/closures_16.js ('k') | tests/compiler/dart2js/cps_ir/expected/control_flow_2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698