Index: pkg/compiler/lib/src/kernel/fasta_support.dart |
diff --git a/pkg/compiler/lib/src/kernel/fasta_support.dart b/pkg/compiler/lib/src/kernel/fasta_support.dart |
index 0c496f9a4c3367a6bcdffb3235246b4079279f2b..e366fdf3adbc73d5f81bb2b75b367daa91a70dbb 100644 |
--- a/pkg/compiler/lib/src/kernel/fasta_support.dart |
+++ b/pkg/compiler/lib/src/kernel/fasta_support.dart |
@@ -19,6 +19,7 @@ import 'dart:async' show Future; |
import 'dart:io' show exitCode; |
import 'package:front_end/physical_file_system.dart'; |
+import 'package:front_end/src/fasta/kernel/utils.dart'; |
import 'package:kernel/ast.dart' show Source; |
import 'package:front_end/src/fasta/compiler_context.dart' show CompilerContext; |
@@ -46,12 +47,14 @@ Future compilePlatform(Uri patchedSdk, Uri fullOutput, |
kernelTarget.read(Uri.parse("dart:core")); |
await dillTarget.buildOutlines(); |
- await kernelTarget.buildOutlines(); |
- await kernelTarget.writeOutline(outlineOutput); |
+ var outline = await kernelTarget.buildOutlines(); |
+ await writeProgramToFile(outline, outlineOutput); |
+ ticker.logMs("Wrote outline to ${outlineOutput.toFilePath()}"); |
if (exitCode != 0) return null; |
- await kernelTarget.buildProgram(); |
- await kernelTarget.writeProgram(fullOutput); |
+ var program = await kernelTarget.buildProgram(); |
+ await writeProgramToFile(program, fullOutput); |
+ ticker.logMs("Wrote program to ${outlineOutput.toFilePath()}"); |
await kernelTarget.writeDepsFile(fullOutput, deps); |
} |