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

Unified Diff: pkg/kernel/test/interpreter/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/interpreter/suite.dart
diff --git a/pkg/kernel/test/interpreter/suite.dart b/pkg/kernel/test/interpreter/suite.dart
index 5ad53aac824317edc178270d42282f40eae039d8..cba9b0b967db165ee5f3e599bedc1001ad142c16 100644
--- a/pkg/kernel/test/interpreter/suite.dart
+++ b/pkg/kernel/test/interpreter/suite.dart
@@ -35,6 +35,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;
+
import 'package:kernel/interpreter/interpreter.dart';
const String STRONG_MODE = " strong mode ";
@@ -80,11 +82,13 @@ 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");
+ 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