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

Unified Diff: pkg/compiler/lib/src/dart2js_stress.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « pkg/compiler/lib/src/dart2js_profile_many.dart ('k') | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart2js_stress.dart
diff --git a/pkg/compiler/lib/src/dart2js_stress.dart b/pkg/compiler/lib/src/dart2js_stress.dart
index 7daedea9a92370dd514067fa6f07909fb5b4a771..453d95ce0c80d2b4f5665d060b54c3d8e4bd36cb 100644
--- a/pkg/compiler/lib/src/dart2js_stress.dart
+++ b/pkg/compiler/lib/src/dart2js_stress.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library dart2js.stress;
+
import "dart2js.dart" as dart2js;
const ITERATIONS_FLAG_PREFIX = "--iterations=";
@@ -16,23 +17,21 @@ void main(List<String> args) {
}
if (maxCount == null) {
print("Running indefinitely.\n"
- "Use '$ITERATIONS_FLAG_PREFIX<count>' to set a repetition count"
- " (as first flag).");
+ "Use '$ITERATIONS_FLAG_PREFIX<count>' to set a repetition count"
+ " (as first flag).");
}
args = ["--suppress-warnings", "--suppress-hints"]..addAll(args);
void iterate() {
count++;
sw.reset();
sw.start();
- dart2js.internalMain(args)
- .then((_) {
- print("$count: ${sw.elapsedMilliseconds}ms");
- })
- .then((_) {
- if (maxCount == null || count < maxCount) {
- iterate();
- }
- });
+ dart2js.internalMain(args).then((_) {
+ print("$count: ${sw.elapsedMilliseconds}ms");
+ }).then((_) {
+ if (maxCount == null || count < maxCount) {
+ iterate();
+ }
+ });
}
iterate();
}
« no previous file with comments | « pkg/compiler/lib/src/dart2js_profile_many.dart ('k') | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698