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

Unified Diff: pkg/kernel/test/closures/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/closures/suite.dart
diff --git a/pkg/kernel/test/closures/suite.dart b/pkg/kernel/test/closures/suite.dart
index 45bde02a7616b6d827e6d4f53c7c6b7a8038f165..3f66f338c7cbd6eea283e02f268a2fd8c6590e79 100644
--- a/pkg/kernel/test/closures/suite.dart
+++ b/pkg/kernel/test/closures/suite.dart
@@ -41,6 +41,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;
+
const String STRONG_MODE = " strong mode ";
class ClosureConversionContext extends ChainContext {
@@ -101,9 +103,8 @@ class FastaCompile
TestDescription description, ClosureConversionContext 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(

Powered by Google App Engine
This is Rietveld 408576698