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

Unified Diff: pkg/kernel/test/interpreter/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/kernel/test/interpreter/suite.dart
diff --git a/pkg/kernel/test/interpreter/suite.dart b/pkg/kernel/test/interpreter/suite.dart
index cba9b0b967db165ee5f3e599bedc1001ad142c16..6d4f7dcb26eab37e0a3696a08ea6b5d65dc583b1 100644
--- a/pkg/kernel/test/interpreter/suite.dart
+++ b/pkg/kernel/test/interpreter/suite.dart
@@ -37,6 +37,8 @@ import 'package:kernel/kernel.dart' show loadProgramFromBinary;
import 'package:kernel/target/targets.dart' show TargetFlags;
+import 'package:kernel/target/vm_fasta.dart' show VmFastaTarget;
+
import 'package:kernel/interpreter/interpreter.dart';
const String STRONG_MODE = " strong mode ";
@@ -82,9 +84,8 @@ class FastaCompile extends Step<TestDescription, Program, InterpreterContext> {
TestDescription description, InterpreterContext context) async {
Program platform = await context.loadPlatform();
Ticker ticker = new Ticker();
- DillTarget dillTarget = new DillTarget(
- ticker, context.uriTranslator, "vm_fasta",
- flags: new TargetFlags(strongMode: context.strongMode));
+ DillTarget dillTarget = new DillTarget(ticker, context.uriTranslator,
+ new VmFastaTarget(new TargetFlags(strongMode: context.strongMode)));
platform.unbindCanonicalNames();
dillTarget.loader.appendLibraries(platform);
KernelTarget sourceTarget = new KernelTarget(
« pkg/front_end/lib/src/fasta/fasta.dart ('K') | « pkg/kernel/test/closures/suite.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698