| OLD | NEW |
| 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'; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 static const String enableExperimentalMirrors = | 25 static const String enableExperimentalMirrors = |
| 26 '--enable-experimental-mirrors'; | 26 '--enable-experimental-mirrors'; |
| 27 static const String experimentalTrackAllocations = | 27 static const String experimentalTrackAllocations = |
| 28 '--experimental-track-allocations'; | 28 '--experimental-track-allocations'; |
| 29 static const String experimentalAllocationsPath = | 29 static const String experimentalAllocationsPath = |
| 30 '--experimental-allocations-path'; | 30 '--experimental-allocations-path'; |
| 31 static const String fastStartup = '--fast-startup'; | 31 static const String fastStartup = '--fast-startup'; |
| 32 static const String fatalWarnings = '--fatal-warnings'; | 32 static const String fatalWarnings = '--fatal-warnings'; |
| 33 static const String generateCodeWithCompileTimeErrors = | 33 static const String generateCodeWithCompileTimeErrors = |
| 34 '--generate-code-with-compile-time-errors'; | 34 '--generate-code-with-compile-time-errors'; |
| 35 // Temporary flag to also integrate Kernel into global type inference. | |
| 36 // TODO(efortuna): Remove when fully implemented and simply use "useKernel". | |
| 37 static const String kernelGlobalInference = '--kernel-global-inference'; | |
| 38 | 35 |
| 39 /// Enable the unified front end, loading from .dill files, and compilation | 36 /// Enable the unified front end, loading from .dill files, and compilation |
| 40 /// using the kernel representation. | 37 /// using the kernel representation. |
| 41 /// See [CompilerOptions.useKernel] for details. | 38 /// See [CompilerOptions.useKernel] for details. |
| 42 static const String useKernel = '--use-kernel'; | 39 static const String useKernel = '--use-kernel'; |
| 43 | 40 |
| 44 /// Only enable the kernel ssa builder, but continue using the old compiler | 41 /// Only enable the kernel ssa builder, but continue using the old compiler |
| 45 /// pipeline. Only used for testing the ssa builder. | 42 /// pipeline. Only used for testing the ssa builder. |
| 46 // TODO(sigmund): delete. | 43 // TODO(sigmund): delete. |
| 47 static const String useKernelInSsa = '--use-kernel-in-ssa'; | 44 static const String useKernelInSsa = '--use-kernel-in-ssa'; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 98 } |
| 102 | 99 |
| 103 class Option { | 100 class Option { |
| 104 static const String showPackageWarnings = | 101 static const String showPackageWarnings = |
| 105 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; | 102 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; |
| 106 | 103 |
| 107 // Experimental options. | 104 // Experimental options. |
| 108 static const String resolutionInput = '--resolution-input=.+'; | 105 static const String resolutionInput = '--resolution-input=.+'; |
| 109 static const String bazelPaths = '--bazel-paths=.+'; | 106 static const String bazelPaths = '--bazel-paths=.+'; |
| 110 } | 107 } |
| OLD | NEW |