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(); |