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

Unified Diff: test/codegen/expect/BenchmarkBase.js

Issue 977153002: Fix increment on nullable (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Remove assignments Created 5 years, 10 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
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/BenchmarkBase.js
diff --git a/test/codegen/expect/BenchmarkBase.js b/test/codegen/expect/BenchmarkBase.js
index 05a3c954f7c078ae782d68fb2516c52d04d3ae04..cc0f4a451ba12a47dfc11df75f595d5483a66a10 100644
--- a/test/codegen/expect/BenchmarkBase.js
+++ b/test/codegen/expect/BenchmarkBase.js
@@ -11,7 +11,7 @@ var BenchmarkBase;
if (expected.length !== actual.length) {
throw `Lists have different lengths: ${expected.length} vs ${actual.length}`;
}
- for (let i = 0; dart.notNull(i) < dart.notNull(actual.length); dart.notNull(i)++) {
+ for (let i = 0; dart.notNull(i) < dart.notNull(actual.length); i = dart.notNull(i) + 1) {
equals(expected.get(i), actual.get(i));
}
}
@@ -28,7 +28,7 @@ var BenchmarkBase;
this.run();
}
exercise() {
- for (let i = 0; dart.notNull(i) < 10; dart.notNull(i)++) {
+ for (let i = 0; dart.notNull(i) < 10; i = dart.notNull(i) + 1) {
this.run();
}
}
@@ -43,7 +43,7 @@ var BenchmarkBase;
while (dart.notNull(elapsed) < dart.notNull(timeMinimum)) {
dart.dinvokef(f);
elapsed = watch.elapsedMilliseconds;
- dart.notNull(iter)++;
+ iter = dart.notNull(iter) + 1;
}
return 1000.0 * dart.notNull(elapsed) / dart.notNull(iter);
}
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698