OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library fasta.compile_platform; | 5 library fasta.compile_platform; |
6 | 6 |
7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
8 | 8 |
9 import 'ticker.dart' show Ticker; | 9 import 'ticker.dart' show Ticker; |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 TranslateUri uriTranslator = | 68 TranslateUri uriTranslator = |
69 await TranslateUri.parse(c.fileSystem, patchedSdk, c.options.packages); | 69 await TranslateUri.parse(c.fileSystem, patchedSdk, c.options.packages); |
70 ticker.logMs("Read packages file"); | 70 ticker.logMs("Read packages file"); |
71 | 71 |
72 DillTarget dillTarget = new DillTarget(ticker, uriTranslator); | 72 DillTarget dillTarget = new DillTarget(ticker, uriTranslator); |
73 KernelTarget kernelTarget = new KernelTarget(c.fileSystem, dillTarget, | 73 KernelTarget kernelTarget = new KernelTarget(c.fileSystem, dillTarget, |
74 uriTranslator, c.options.strongMode, c.uriToSource); | 74 uriTranslator, c.options.strongMode, c.uriToSource); |
75 | 75 |
76 kernelTarget.read(Uri.parse("dart:core")); | 76 kernelTarget.read(Uri.parse("dart:core")); |
77 await dillTarget.computeOutline(); | 77 await dillTarget.buildOutlines(); |
78 await kernelTarget.computeOutline(); | 78 await kernelTarget.buildOutlines(); |
79 await kernelTarget.writeOutline(outlineOutput); | 79 await kernelTarget.writeOutline(outlineOutput); |
80 | 80 |
81 if (exitCode != 0) return null; | 81 if (exitCode != 0) return null; |
| 82 await kernelTarget.buildProgram(); |
82 await kernelTarget.writeProgram(fullOutput, | 83 await kernelTarget.writeProgram(fullOutput, |
83 dumpIr: c.options.dumpIr, verify: c.options.verify); | 84 dumpIr: c.options.dumpIr, verify: c.options.verify); |
84 await kernelTarget.writeDepsFile(fullOutput, deps); | 85 await kernelTarget.writeDepsFile(fullOutput, deps); |
85 } | 86 } |
OLD | NEW |