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

Unified Diff: pkg/front_end/tool/fasta_perf.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/tool/fasta_perf.dart
diff --git a/pkg/front_end/tool/fasta_perf.dart b/pkg/front_end/tool/fasta_perf.dart
index d8ccbaa4efbdad9b1671acc2ae7cfa71a504cdea..1325cf7e400a349eef9c68d56fe88bd6b9918705 100644
--- a/pkg/front_end/tool/fasta_perf.dart
+++ b/pkg/front_end/tool/fasta_perf.dart
@@ -22,6 +22,7 @@ import 'package:front_end/src/fasta/translate_uri.dart' show TranslateUri;
import 'package:front_end/src/fasta/translate_uri.dart';
import 'package:front_end/src/fasta/parser/dart_vm_native.dart'
show skipNativeClause;
+import 'package:kernel/target/targets.dart' show TargetFlags;
/// Cumulative total number of chars scanned.
int inputSize = 0;
@@ -214,9 +215,10 @@ generateKernel(Uri entryUri,
var timer = new Stopwatch()..start();
final Ticker ticker = new Ticker();
- final DillTarget dillTarget = new DillTarget(ticker, uriResolver, "vm");
- final KernelTarget kernelTarget = new KernelTarget(
- PhysicalFileSystem.instance, dillTarget, uriResolver, strongMode);
+ final DillTarget dillTarget = new DillTarget(ticker, uriResolver, "vm_fasta",
+ flags: new TargetFlags(strongMode: strongMode));
+ final KernelTarget kernelTarget =
+ new KernelTarget(PhysicalFileSystem.instance, dillTarget, uriResolver);
var entrypoints = [
entryUri,
// These extra libraries are added to match the same set of libraries

Powered by Google App Engine
This is Rietveld 408576698