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

Unified Diff: pkg/front_end/test/fasta/testing/suite.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/test/fasta/testing/suite.dart
diff --git a/pkg/front_end/test/fasta/testing/suite.dart b/pkg/front_end/test/fasta/testing/suite.dart
index 733a1ab07986bbb3b93e26520d11c060bf4df949..d45a76ee2a2a827a892e7f75019548e7fa7aa505 100644
--- a/pkg/front_end/test/fasta/testing/suite.dart
+++ b/pkg/front_end/test/fasta/testing/suite.dart
@@ -52,6 +52,8 @@ import 'package:kernel/kernel.dart' show loadProgramFromBytes;
import 'package:kernel/target/targets.dart' show TargetFlags;
+import 'package:kernel/target/vm_fasta.dart' show VmFastaTarget;
+
export 'package:testing/testing.dart' show Chain, runMe;
const String STRONG_MODE = " strong mode ";
@@ -218,9 +220,8 @@ class Outline extends Step<TestDescription, Program, FastaContext> {
CompilerContext.current.disableColors();
Program platformOutline = await context.loadPlatformOutline();
Ticker ticker = new Ticker();
- DillTarget dillTarget = new DillTarget(
- ticker, context.uriTranslator, "vm_fasta",
- flags: new TargetFlags(strongMode: strongMode));
+ DillTarget dillTarget = new DillTarget(ticker, context.uriTranslator,
+ new VmFastaTarget(new TargetFlags(strongMode: strongMode)));
platformOutline.unbindCanonicalNames();
dillTarget.loader.appendLibraries(platformOutline);
// We create a new URI translator to avoid reading plaform libraries from

Powered by Google App Engine
This is Rietveld 408576698