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

Unified Diff: pkg/compiler/lib/src/kernel/fasta_support.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/compiler/lib/src/kernel/fasta_support.dart
diff --git a/pkg/compiler/lib/src/kernel/fasta_support.dart b/pkg/compiler/lib/src/kernel/fasta_support.dart
index dda0cffc3a2a7f04d6ed9eae0244bc07e6728395..04b4919eafd6923955e86432260ec1f72599c656 100644
--- a/pkg/compiler/lib/src/kernel/fasta_support.dart
+++ b/pkg/compiler/lib/src/kernel/fasta_support.dart
@@ -22,6 +22,7 @@ import 'package:front_end/file_system.dart';
import 'package:front_end/physical_file_system.dart';
import 'package:front_end/src/fasta/kernel/utils.dart';
import 'package:kernel/ast.dart' show Source, Library;
+import 'package:kernel/target/targets.dart' show TargetFlags;
import 'package:front_end/src/fasta/builder/builder.dart' show LibraryBuilder;
import 'package:front_end/src/fasta/compiler_context.dart' show CompilerContext;
@@ -89,8 +90,7 @@ class KernelTargetForDart2js extends KernelTarget {
KernelTargetForDart2js(
DillTarget target, TranslateUri uriTranslator, bool strongMode,
[Map<String, Source> uriToSource])
- : super(PhysicalFileSystem.instance, target, uriTranslator, strongMode,
- uriToSource);
+ : super(PhysicalFileSystem.instance, target, uriTranslator, uriToSource);
@override
SourceLoader<Library> createLoader() =>
new SourceLoaderForDart2js<Library>(fileSystem, this);
@@ -139,8 +139,9 @@ class SourceLoaderForDart2js<L> extends SourceLoader<L> {
/// Specializes [DillTarget] to build kernel for dart2js: JS-specific libraries
/// are included in the SDK, and native clauses have no string parameter.
class DillTargetForDart2js extends DillTarget {
- DillTargetForDart2js(Ticker ticker, TranslateUri uriTranslator)
- : super(ticker, uriTranslator, "none");
+ DillTargetForDart2js(Ticker ticker, TranslateUri uriTranslator,
+ {TargetFlags flags})
+ : super(ticker, uriTranslator, "none", flags: flags);
@override
Token skipNativeClause(Token token) => _skipNative(token);

Powered by Google App Engine
This is Rietveld 408576698