| 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 80%
|
| rename from pkg/compiler/lib/src/dart2js_stress.dart
|
| rename to pkg/compiler/tool/dart2js_stress.dart
|
| index 804c577172e52fdc487dd15f0441497e4daba6f7..d699e2b9149b91fe4602212bb1676c940651844e 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 'package:compiler/src/dart2js.dart' as dart2js;
|
| +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.resolve('../../../sdk').toFilePath()}"]
|
| + ..addAll(args);
|
| void iterate() {
|
| count++;
|
| sw.reset();
|
|
|