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

Unified Diff: pkg/front_end/lib/src/fasta/dill/dill_target.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/fasta/dill/dill_target.dart
diff --git a/pkg/front_end/lib/src/fasta/dill/dill_target.dart b/pkg/front_end/lib/src/fasta/dill/dill_target.dart
index 8906c3c981ec6cd95a4ced2ad089b50a812557c6..0333fbf176505802484dcbe963d5941f593432da 100644
--- a/pkg/front_end/lib/src/fasta/dill/dill_target.dart
+++ b/pkg/front_end/lib/src/fasta/dill/dill_target.dart
@@ -8,7 +8,7 @@ import 'dart:async' show Future;
import 'package:kernel/ast.dart' show Class;
-import 'package:kernel/target/targets.dart' show getTarget, TargetFlags;
+import 'package:kernel/target/targets.dart' show Target;
import '../errors.dart' show internalError;
import '../kernel/kernel_builder.dart' show ClassBuilder;
@@ -22,11 +22,8 @@ class DillTarget extends TargetImplementation {
bool isLoaded = false;
DillLoader loader;
- DillTarget(
- Ticker ticker, TranslateUri uriTranslator, String backendTargetName,
- {TargetFlags flags})
- : super(ticker, uriTranslator,
- getTarget(backendTargetName, flags ?? new TargetFlags())) {
+ DillTarget(Ticker ticker, TranslateUri uriTranslator, Target backendTarget)
+ : super(ticker, uriTranslator, backendTarget) {
loader = new DillLoader(this);
}

Powered by Google App Engine
This is Rietveld 408576698