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

Unified Diff: pkg/front_end/tool/fasta_perf.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/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 1325cf7e400a349eef9c68d56fe88bd6b9918705..934bbe8e1f651ae267291220d8ccdc5d00b20c57 100644
--- a/pkg/front_end/tool/fasta_perf.dart
+++ b/pkg/front_end/tool/fasta_perf.dart
@@ -23,6 +23,7 @@ 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;
+import 'package:kernel/target/vm_fasta.dart' show VmFastaTarget;
/// Cumulative total number of chars scanned.
int inputSize = 0;
@@ -215,8 +216,8 @@ generateKernel(Uri entryUri,
var timer = new Stopwatch()..start();
final Ticker ticker = new Ticker();
- final DillTarget dillTarget = new DillTarget(ticker, uriResolver, "vm_fasta",
- flags: new TargetFlags(strongMode: strongMode));
+ final DillTarget dillTarget = new DillTarget(ticker, uriResolver,
+ new VmFastaTarget(new TargetFlags(strongMode: strongMode)));
final KernelTarget kernelTarget =
new KernelTarget(PhysicalFileSystem.instance, dillTarget, uriResolver);
var entrypoints = [

Powered by Google App Engine
This is Rietveld 408576698