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

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

Issue 2919003003: Reapply "Use backend targets to run Kernel transformations in Fasta" (Closed)
Patch Set: Follow dartanalyzer suggestions 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 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 578f9b1c6b7acb27e527ed4386f0c8c78ed7dc98..849b81af048a2951858acaff202290889f7270fd 100644
--- a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
+++ b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
@@ -20,6 +20,7 @@ import 'package:front_end/src/incremental/file_state.dart';
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;
dynamic unimplemented() {
// TODO(paulberry): get rid of this.
@@ -100,8 +101,9 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator {
});
CanonicalName nameRoot = new CanonicalName.root();
- DillTarget dillTarget =
- new DillTarget(new Ticker(isVerbose: false), _uriTranslator, "vm");
+ DillTarget dillTarget = new DillTarget(
+ new Ticker(isVerbose: false), _uriTranslator, "vm_fasta",
+ flags: new TargetFlags(strongMode: _options.strongMode));
List<_LibraryCycleResult> results = [];
await _logger.runAsync('Compute results for cycles', () async {
@@ -204,8 +206,8 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator {
}
// Create KernelTarget and configure it for compiling the cycle URIs.
- KernelTarget kernelTarget = new KernelTarget(_fsState.fileSystemView,
- dillTarget, _uriTranslator, _options.strongMode);
+ KernelTarget kernelTarget =
+ new KernelTarget(_fsState.fileSystemView, dillTarget, _uriTranslator);
for (FileState library in cycle.libraries) {
kernelTarget.read(library.uri);
}

Powered by Google App Engine
This is Rietveld 408576698