| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file defines all of the flags. It is separated into different section, | 5 // This file defines all of the flags. It is separated into different section, |
| 6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the | 6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the |
| 7 // correct section, and use one of the DEFINE_ macros, without a trailing ';'. | 7 // correct section, and use one of the DEFINE_ macros, without a trailing ';'. |
| 8 // | 8 // |
| 9 // This include does not have a guard, because it is a template-style include, | 9 // This include does not have a guard, because it is a template-style include, |
| 10 // which can be included multiple times in different modes. It expects to have | 10 // which can be included multiple times in different modes. It expects to have |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 // | 144 // |
| 145 // Flags in all modes. | 145 // Flags in all modes. |
| 146 // | 146 // |
| 147 #define FLAG FLAG_FULL | 147 #define FLAG FLAG_FULL |
| 148 | 148 |
| 149 // Flags for language modes and experimental language features. | 149 // Flags for language modes and experimental language features. |
| 150 DEFINE_BOOL(use_strict, false, "enforce strict mode") | 150 DEFINE_BOOL(use_strict, false, "enforce strict mode") |
| 151 DEFINE_BOOL(es_staging, false, "enable upcoming ES6+ features") | 151 DEFINE_BOOL(es_staging, false, "enable upcoming ES6+ features") |
| 152 | 152 |
| 153 DEFINE_BOOL(harmony_typeof, false, "enable harmony semantics for typeof") | |
| 154 DEFINE_BOOL(harmony_scoping, false, "enable harmony block scoping") | 153 DEFINE_BOOL(harmony_scoping, false, "enable harmony block scoping") |
| 155 DEFINE_BOOL(harmony_modules, false, | 154 DEFINE_BOOL(harmony_modules, false, |
| 156 "enable harmony modules (implies block scoping)") | 155 "enable harmony modules (implies block scoping)") |
| 157 DEFINE_BOOL(harmony_symbols, false, "enable harmony symbols") | 156 DEFINE_BOOL(harmony_symbols, false, "enable harmony symbols") |
| 158 DEFINE_BOOL(harmony_proxies, false, "enable harmony proxies") | 157 DEFINE_BOOL(harmony_proxies, false, "enable harmony proxies") |
| 159 DEFINE_BOOL(harmony_collections, false, | 158 DEFINE_BOOL(harmony_collections, false, |
| 160 "enable harmony collections (sets, maps)") | 159 "enable harmony collections (sets, maps)") |
| 161 DEFINE_BOOL(harmony_generators, false, "enable harmony generators") | 160 DEFINE_BOOL(harmony_generators, false, "enable harmony generators") |
| 162 DEFINE_BOOL(harmony_iteration, false, "enable harmony iteration (for-of)") | 161 DEFINE_BOOL(harmony_iteration, false, "enable harmony iteration (for-of)") |
| 163 DEFINE_BOOL(harmony_numeric_literals, false, | 162 DEFINE_BOOL(harmony_numeric_literals, false, |
| 164 "enable harmony numeric literals (0o77, 0b11)") | 163 "enable harmony numeric literals (0o77, 0b11)") |
| 165 DEFINE_BOOL(harmony_strings, false, "enable harmony string") | 164 DEFINE_BOOL(harmony_strings, false, "enable harmony string") |
| 166 DEFINE_BOOL(harmony_arrays, false, "enable harmony arrays") | 165 DEFINE_BOOL(harmony_arrays, false, "enable harmony arrays") |
| 167 DEFINE_BOOL(harmony_arrow_functions, false, "enable harmony arrow functions") | 166 DEFINE_BOOL(harmony_arrow_functions, false, "enable harmony arrow functions") |
| 168 DEFINE_BOOL(harmony, false, "enable all harmony features (except typeof)") | 167 DEFINE_BOOL(harmony, false, "enable all harmony features") |
| 169 | 168 |
| 170 DEFINE_IMPLICATION(harmony, harmony_scoping) | 169 DEFINE_IMPLICATION(harmony, harmony_scoping) |
| 171 DEFINE_IMPLICATION(harmony, harmony_modules) | 170 DEFINE_IMPLICATION(harmony, harmony_modules) |
| 172 DEFINE_IMPLICATION(harmony, harmony_proxies) | 171 DEFINE_IMPLICATION(harmony, harmony_proxies) |
| 173 DEFINE_IMPLICATION(harmony, harmony_collections) | 172 DEFINE_IMPLICATION(harmony, harmony_collections) |
| 174 DEFINE_IMPLICATION(harmony, harmony_generators) | 173 DEFINE_IMPLICATION(harmony, harmony_generators) |
| 175 DEFINE_IMPLICATION(harmony, harmony_iteration) | 174 DEFINE_IMPLICATION(harmony, harmony_iteration) |
| 176 DEFINE_IMPLICATION(harmony, harmony_numeric_literals) | 175 DEFINE_IMPLICATION(harmony, harmony_numeric_literals) |
| 177 DEFINE_IMPLICATION(harmony, harmony_strings) | 176 DEFINE_IMPLICATION(harmony, harmony_strings) |
| 178 DEFINE_IMPLICATION(harmony, harmony_arrays) | 177 DEFINE_IMPLICATION(harmony, harmony_arrays) |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 #undef DEFINE_ALIAS_FLOAT | 913 #undef DEFINE_ALIAS_FLOAT |
| 915 #undef DEFINE_ALIAS_ARGS | 914 #undef DEFINE_ALIAS_ARGS |
| 916 | 915 |
| 917 #undef FLAG_MODE_DECLARE | 916 #undef FLAG_MODE_DECLARE |
| 918 #undef FLAG_MODE_DEFINE | 917 #undef FLAG_MODE_DEFINE |
| 919 #undef FLAG_MODE_DEFINE_DEFAULTS | 918 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 920 #undef FLAG_MODE_META | 919 #undef FLAG_MODE_META |
| 921 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 920 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| 922 | 921 |
| 923 #undef COMMA | 922 #undef COMMA |
| OLD | NEW |