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

Side by Side Diff: pkg/compiler/lib/src/commandline_options.dart

Issue 2746293006: Pulling the element model out of global type inference. (Closed)
Patch Set: . Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.cmdline.options; 5 library dart2js.cmdline.options;
6 6
7 /// Commandline flags used in `dart2js.dart` and/or `apiimpl.dart`. 7 /// Commandline flags used in `dart2js.dart` and/or `apiimpl.dart`.
8 class Flags { 8 class Flags {
9 static const String allowMockCompilation = '--allow-mock-compilation'; 9 static const String allowMockCompilation = '--allow-mock-compilation';
10 static const String allowNativeExtensions = '--allow-native-extensions'; 10 static const String allowNativeExtensions = '--allow-native-extensions';
11 static const String analyzeAll = '--analyze-all'; 11 static const String analyzeAll = '--analyze-all';
12 static const String analyzeMain = '--analyze-main'; 12 static const String analyzeMain = '--analyze-main';
13 static const String analyzeOnly = '--analyze-only'; 13 static const String analyzeOnly = '--analyze-only';
14 static const String analyzeSignaturesOnly = '--analyze-signatures-only'; 14 static const String analyzeSignaturesOnly = '--analyze-signatures-only';
15 static const String disableInlining = '--disable-inlining'; 15 static const String disableInlining = '--disable-inlining';
16 static const String disableDiagnosticColors = '--disable-diagnostic-colors'; 16 static const String disableDiagnosticColors = '--disable-diagnostic-colors';
17 static const String disableNativeLiveTypeAnalysis = 17 static const String disableNativeLiveTypeAnalysis =
18 '--disable-native-live-type-analysis'; 18 '--disable-native-live-type-analysis';
19 static const String disableTypeInference = '--disable-type-inference'; 19 static const String disableTypeInference = '--disable-type-inference';
20 static const String dumpInfo = '--dump-info'; 20 static const String dumpInfo = '--dump-info';
21 static const String enableAssertMessage = '--assert-message'; 21 static const String enableAssertMessage = '--assert-message';
22 static const String enableCheckedMode = '--enable-checked-mode'; 22 static const String enableCheckedMode = '--enable-checked-mode';
23 static const String enableDiagnosticColors = '--enable-diagnostic-colors'; 23 static const String enableDiagnosticColors = '--enable-diagnostic-colors';
24 static const String enableExperimentalMirrors = 24 static const String enableExperimentalMirrors =
25 '--enable-experimental-mirrors'; 25 '--enable-experimental-mirrors';
26 static const String fastStartup = '--fast-startup'; 26 static const String fastStartup = '--fast-startup';
27 static const String fatalWarnings = '--fatal-warnings'; 27 static const String fatalWarnings = '--fatal-warnings';
28 static const String generateCodeWithCompileTimeErrors = 28 static const String generateCodeWithCompileTimeErrors =
29 '--generate-code-with-compile-time-errors'; 29 '--generate-code-with-compile-time-errors';
30 // Temporary flag to also integrate Kernel into global type inference.
31 // TODO(efortuna): Remove when fully implemented and simply use "useKernel".
32 static const String kernelGlobalInference = '--kernel-global-inference';
30 static const String minify = '--minify'; 33 static const String minify = '--minify';
31 static const String noFrequencyBasedMinification = 34 static const String noFrequencyBasedMinification =
32 '--no-frequency-based-minification'; 35 '--no-frequency-based-minification';
33 static const String noSourceMaps = '--no-source-maps'; 36 static const String noSourceMaps = '--no-source-maps';
34 static const String preserveComments = '--preserve-comments'; 37 static const String preserveComments = '--preserve-comments';
35 static const String preserveUris = '--preserve-uris'; 38 static const String preserveUris = '--preserve-uris';
36 static const String showPackageWarnings = '--show-package-warnings'; 39 static const String showPackageWarnings = '--show-package-warnings';
37 static const String suppressHints = '--suppress-hints'; 40 static const String suppressHints = '--suppress-hints';
38 static const String suppressWarnings = '--suppress-warnings'; 41 static const String suppressWarnings = '--suppress-warnings';
39 static const String terse = '--terse'; 42 static const String terse = '--terse';
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 86 }
84 87
85 class Option { 88 class Option {
86 static const String showPackageWarnings = 89 static const String showPackageWarnings =
87 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; 90 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*';
88 91
89 // Experimental options. 92 // Experimental options.
90 static const String resolutionInput = '--resolution-input=.+'; 93 static const String resolutionInput = '--resolution-input=.+';
91 static const String bazelPaths = '--bazel-paths=.+'; 94 static const String bazelPaths = '--bazel-paths=.+';
92 } 95 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dart2js.dart » ('j') | pkg/compiler/lib/src/inferrer/builder_kernel.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698