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

Unified Diff: pkg/front_end/lib/src/incremental_kernel_generator_impl.dart

Issue 2924833002: Pass a Target instance to DillTarget instead of its name (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
diff --git a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
index 849b81af048a2951858acaff202290889f7270fd..c6653299d58d6ea1695e71f29c5db6bf45f7d9c4 100644
--- a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
+++ b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
@@ -21,6 +21,7 @@ import 'package:kernel/binary/ast_from_binary.dart';
import 'package:kernel/binary/limited_ast_to_binary.dart';
import 'package:kernel/kernel.dart' hide Source;
import 'package:kernel/target/targets.dart' show TargetFlags;
+import 'package:kernel/target/vm_fasta.dart' show VmFastaTarget;
dynamic unimplemented() {
// TODO(paulberry): get rid of this.
@@ -102,8 +103,9 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator {
CanonicalName nameRoot = new CanonicalName.root();
DillTarget dillTarget = new DillTarget(
- new Ticker(isVerbose: false), _uriTranslator, "vm_fasta",
- flags: new TargetFlags(strongMode: _options.strongMode));
+ new Ticker(isVerbose: false),
+ _uriTranslator,
+ new VmFastaTarget(new TargetFlags(strongMode: _options.strongMode)));
List<_LibraryCycleResult> results = [];
await _logger.runAsync('Compute results for cycles', () async {

Powered by Google App Engine
This is Rietveld 408576698