Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: pkg/front_end/lib/src/fasta/compile_platform.dart

Issue 2893563003: Rename buildOutline() and separate 'build' and 'writeProgram()'. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/kernel_generator.dart ('k') | pkg/front_end/lib/src/fasta/dill/dill_target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698