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

Unified Diff: pkg/front_end/test/fasta/testing/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/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 428c7d94bfd1c9d2b430bfc6b01ef37f459ae225..733a1ab07986bbb3b93e26520d11c060bf4df949 100644
--- a/pkg/front_end/test/fasta/testing/suite.dart
+++ b/pkg/front_end/test/fasta/testing/suite.dart
@@ -50,6 +50,8 @@ import 'package:front_end/src/fasta/dill/dill_target.dart' show DillTarget;
import 'package:kernel/kernel.dart' show loadProgramFromBytes;
+import 'package:kernel/target/targets.dart' show TargetFlags;
+
export 'package:testing/testing.dart' show Chain, runMe;
const String STRONG_MODE = " strong mode ";
@@ -216,7 +218,9 @@ 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");
+ DillTarget dillTarget = new DillTarget(
+ ticker, context.uriTranslator, "vm_fasta",
+ flags: new TargetFlags(strongMode: strongMode));
platformOutline.unbindCanonicalNames();
dillTarget.loader.appendLibraries(platformOutline);
// We create a new URI translator to avoid reading plaform libraries from
@@ -228,7 +232,7 @@ class Outline extends Step<TestDescription, Program, FastaContext> {
KernelTarget sourceTarget = astKind == AstKind.Analyzer
? new AnalyzerTarget(dillTarget, uriTranslator, strongMode)
: new KernelTarget(
- PhysicalFileSystem.instance, dillTarget, uriTranslator, strongMode);
+ PhysicalFileSystem.instance, dillTarget, uriTranslator);
Program p;
try {

Powered by Google App Engine
This is Rietveld 408576698