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

Unified Diff: pkg/compiler/tool/dart2js_stress.dart

Issue 2473553005: Code cleanup: moving compiler perf tests to compiler/tool (Closed)
Patch Set: fix path Created 4 years, 1 month 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: pkg/compiler/tool/dart2js_stress.dart
diff --git a/pkg/compiler/lib/src/dart2js_stress.dart b/pkg/compiler/tool/dart2js_stress.dart
similarity index 81%
rename from pkg/compiler/lib/src/dart2js_stress.dart
rename to pkg/compiler/tool/dart2js_stress.dart
index 804c577172e52fdc487dd15f0441497e4daba6f7..a1a56b2d4bdd2df4b9ddd04dfc86d5927d3df878 100644
--- a/pkg/compiler/lib/src/dart2js_stress.dart
+++ b/pkg/compiler/tool/dart2js_stress.dart
@@ -4,7 +4,8 @@
library dart2js.stress;
-import "dart2js.dart" as dart2js;
+import "../lib/src/dart2js.dart" as dart2js;
Siggi Cherem (dart-lang) 2016/11/03 21:38:40 ditto
Emily Fortuna 2016/11/03 22:26:13 Done.
+import 'dart:io' show Platform;
const ITERATIONS_FLAG_PREFIX = "--iterations=";
void main(List<String> args) {
@@ -20,7 +21,9 @@ void main(List<String> args) {
"Use '$ITERATIONS_FLAG_PREFIX<count>' to set a repetition count"
" (as first flag).");
}
- args = ["--suppress-warnings", "--suppress-hints"]..addAll(args);
+ args = ["--suppress-warnings", "--suppress-hints",
+ "--library-root=${Platform.script.toFilePath()}/../../../../sdk"]
Siggi Cherem (dart-lang) 2016/11/03 21:38:40 in case we run this in windows, we might need to u
Emily Fortuna 2016/11/03 22:26:13 I wondered about that when I wrote this, though it
+ ..addAll(args);
void iterate() {
count++;
sw.reset();
« pkg/compiler/tool/dart2js_profile_many.dart ('K') | « pkg/compiler/tool/dart2js_profile_many.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698