Index: pkg/front_end/lib/src/fasta/outline.dart |
diff --git a/pkg/front_end/lib/src/fasta/outline.dart b/pkg/front_end/lib/src/fasta/outline.dart |
index 3d328e761903c36cee438544b8770b2135533067..0604a26958585c8e60c3ebc5888dba450261e27a 100644 |
--- a/pkg/front_end/lib/src/fasta/outline.dart |
+++ b/pkg/front_end/lib/src/fasta/outline.dart |
@@ -24,6 +24,26 @@ import 'ticker.dart' show Ticker; |
import 'translate_uri.dart' show TranslateUri; |
+const int iterations = const int.fromEnvironment("iterations", defaultValue: 1); |
+ |
+compileEntryPoint(List<String> arguments) async { |
+ for (int i = 0; i < iterations; i++) { |
+ if (i > 0) { |
+ print("\n"); |
+ } |
+ await compile(arguments); |
+ } |
+} |
+ |
+outlineEntryPoint(List<String> arguments) async { |
+ for (int i = 0; i < iterations; i++) { |
+ if (i > 0) { |
+ print("\n"); |
+ } |
+ await outline(arguments); |
+ } |
+} |
+ |
Future<KernelTarget> outline(List<String> arguments) async { |
try { |
return await CompilerCommandLine.withGlobalOptions("outline", arguments, |