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

Unified Diff: pkg/compiler/lib/src/commandline_options.dart

Issue 2989453002: Add support for compiling Dart via the FE in dart2js. (Closed)
Patch Set: update status Created 3 years, 5 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/compiler/lib/src/commandline_options.dart
diff --git a/pkg/compiler/lib/src/commandline_options.dart b/pkg/compiler/lib/src/commandline_options.dart
index e1a646e26fb69b97b42b60f718a0b7d86338355c..25087ae3bb35e48afbc6ed211a417c65f350230c 100644
--- a/pkg/compiler/lib/src/commandline_options.dart
+++ b/pkg/compiler/lib/src/commandline_options.dart
@@ -35,9 +35,17 @@ class Flags {
// Temporary flag to also integrate Kernel into global type inference.
// TODO(efortuna): Remove when fully implemented and simply use "useKernel".
static const String kernelGlobalInference = '--kernel-global-inference';
- // Read input from a .dill file rather than a .dart input (use only in
- // conjunction with --use-kernel=true).
- static const String loadFromDill = '--read-dill';
+
+ /// Enable the unified front end, loading from .dill files, and compilation
+ /// using the kernel representation.
+ /// See [CompilerOptions.useKernel] for details.
+ static const String useKernel = '--use-kernel';
+
+ /// Only enable the kernel ssa builder, but continue using the old compiler
+ /// pipeline. Only used for testing the ssa builder.
+ // TODO(sigmund): delete.
+ static const String useKernelInSsa = '--use-kernel-in-ssa';
+
static const String minify = '--minify';
static const String noFrequencyBasedMinification =
'--no-frequency-based-minification';
@@ -54,7 +62,6 @@ class Flags {
static const String trustJSInteropTypeAnnotations =
'--experimental-trust-js-interop-type-annotations';
static const String useContentSecurityPolicy = '--csp';
- static const String useKernel = '--use-kernel';
static const String useMultiSourceInfo = '--use-multi-source-info';
static const String useNewSourceInfo = '--use-new-source-info';
static const String verbose = '--verbose';

Powered by Google App Engine
This is Rietveld 408576698