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

Side by Side Diff: pkg/front_end/lib/incremental_kernel_generator.dart

Issue 2999563002: Add support for SDK outline in IKG. (Closed)
Patch Set: Created 3 years, 4 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:front_end/src/base/processed_options.dart'; 7 import 'package:front_end/src/base/processed_options.dart';
8 import 'package:front_end/src/incremental_kernel_generator_impl.dart'; 8 import 'package:front_end/src/incremental_kernel_generator_impl.dart';
9 import 'package:front_end/src/fasta/compiler_context.dart'; 9 import 'package:front_end/src/fasta/compiler_context.dart';
10 import 'package:kernel/kernel.dart'; 10 import 'package:kernel/kernel.dart';
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 /// 96 ///
97 /// The initial "previous program state" is an empty program containing no 97 /// The initial "previous program state" is an empty program containing no
98 /// code, and the initial set of valid sources is empty. To obtain a kernel 98 /// code, and the initial set of valid sources is empty. To obtain a kernel
99 /// representation of the program, call [computeDelta]. 99 /// representation of the program, call [computeDelta].
100 static Future<IncrementalKernelGenerator> newInstance( 100 static Future<IncrementalKernelGenerator> newInstance(
101 CompilerOptions options, Uri entryPoint, 101 CompilerOptions options, Uri entryPoint,
102 {WatchUsedFilesFn watch}) async { 102 {WatchUsedFilesFn watch}) async {
103 var processedOptions = new ProcessedOptions(options, false, [entryPoint]); 103 var processedOptions = new ProcessedOptions(options, false, [entryPoint]);
104 return await CompilerContext.runWithOptions(processedOptions, (_) async { 104 return await CompilerContext.runWithOptions(processedOptions, (_) async {
105 var uriTranslator = await processedOptions.getUriTranslator(); 105 var uriTranslator = await processedOptions.getUriTranslator();
106 var sdkOutlineBytes = await processedOptions.loadSdkSummaryBytes();
Siggi Cherem (dart-lang) 2017/08/07 19:12:52 What do we want the default behavior to use a summ
scheglov 2017/08/07 20:47:51 Well, on this level it does not matter - IKG uses
Siggi Cherem (dart-lang) 2017/08/07 22:16:17 Correct, this is about what do we want the default
scheglov 2017/08/07 23:34:11 Flutter tools is the only known client of IKG, and
106 return new IncrementalKernelGeneratorImpl( 107 return new IncrementalKernelGeneratorImpl(
107 processedOptions, uriTranslator, entryPoint, 108 processedOptions, uriTranslator, sdkOutlineBytes, entryPoint,
108 watch: watch); 109 watch: watch);
109 }); 110 });
110 } 111 }
111 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698