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

Unified Diff: pkg/kernel/test/closures/suite.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/kernel/test/closures/suite.dart
diff --git a/pkg/kernel/test/closures/suite.dart b/pkg/kernel/test/closures/suite.dart
index 6aa048f59ffe9b28c7fbcb62b70e201e4c762bc6..45bde02a7616b6d827e6d4f53c7c6b7a8038f165 100644
--- a/pkg/kernel/test/closures/suite.dart
+++ b/pkg/kernel/test/closures/suite.dart
@@ -39,6 +39,8 @@ import 'package:front_end/src/fasta/testing/patched_sdk_location.dart';
import 'package:kernel/kernel.dart' show loadProgramFromBinary;
+import 'package:kernel/target/targets.dart' show TargetFlags;
+
const String STRONG_MODE = " strong mode ";
class ClosureConversionContext extends ChainContext {
@@ -99,11 +101,13 @@ class FastaCompile
TestDescription description, ClosureConversionContext context) async {
Program platform = await context.loadPlatform();
Ticker ticker = new Ticker();
- DillTarget dillTarget = new DillTarget(ticker, context.uriTranslator, "vm");
+ DillTarget dillTarget = new DillTarget(
+ ticker, context.uriTranslator, "vm_fasta",
+ flags: new TargetFlags(strongMode: context.strongMode));
platform.unbindCanonicalNames();
dillTarget.loader.appendLibraries(platform);
- KernelTarget sourceTarget = new KernelTarget(PhysicalFileSystem.instance,
- dillTarget, context.uriTranslator, context.strongMode);
+ KernelTarget sourceTarget = new KernelTarget(
+ PhysicalFileSystem.instance, dillTarget, context.uriTranslator);
Program p;
try {

Powered by Google App Engine
This is Rietveld 408576698