mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Add dart2js target to fasta CLI
Change-Id: I28cbfcebb75f698493cba64d1dfa6484832ed70d Reviewed-on: https://dart-review.googlesource.com/31300 Reviewed-by: Aske Simon Christensen <askesc@google.com> Commit-Queue: Karl Klose <karlklose@google.com>
This commit is contained in:
parent
9fe7c0e806
commit
38c4eff017
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,10 @@ import 'dart:convert' show JSON;
|
|||
|
||||
import 'dart:io' show File, exitCode;
|
||||
|
||||
import 'package:compiler/src/kernel/dart2js_target.dart' show Dart2jsTarget;
|
||||
|
||||
import 'package:kernel/target/targets.dart' show TargetFlags, targets;
|
||||
|
||||
import 'package:front_end/src/fasta/compiler_context.dart' show CompilerContext;
|
||||
|
||||
import 'package:front_end/src/fasta/deprecated_problems.dart'
|
||||
|
@ -38,6 +42,8 @@ const bool summary = const bool.fromEnvironment("summary", defaultValue: false);
|
|||
const int iterations = const int.fromEnvironment("iterations", defaultValue: 1);
|
||||
|
||||
compileEntryPoint(List<String> arguments) async {
|
||||
targets["dart2js"] = (TargetFlags flags) => new Dart2jsTarget(flags);
|
||||
|
||||
// Timing results for each iteration
|
||||
List<double> elapsedTimes = <double>[];
|
||||
|
||||
|
|
Loading…
Reference in a new issue