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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // Flags for language modes and experimental language features. | 150 // Flags for language modes and experimental language features. |
151 DEFINE_BOOL(use_strict, false, "enforce strict mode") | 151 DEFINE_BOOL(use_strict, false, "enforce strict mode") |
152 | 152 |
153 DEFINE_BOOL(es_staging, false, "enable upcoming ES6+ features") | 153 DEFINE_BOOL(es_staging, false, "enable upcoming ES6+ features") |
154 DEFINE_BOOL(harmony, false, "enable all harmony features (except proxies)") | 154 DEFINE_BOOL(harmony, false, "enable all harmony features (except proxies)") |
155 DEFINE_IMPLICATION(harmony, es_staging) | 155 DEFINE_IMPLICATION(harmony, es_staging) |
156 | 156 |
157 #define HARMONY_FEATURES(V) \ | 157 #define HARMONY_FEATURES(V) \ |
158 V(harmony_scoping, "harmony block scoping") \ | 158 V(harmony_scoping, "harmony block scoping") \ |
159 V(harmony_modules, "harmony modules (implies block scoping)") \ | 159 V(harmony_modules, "harmony modules (implies block scoping)") \ |
160 V(harmony_strings, "harmony strings") \ | |
161 V(harmony_arrays, "harmony arrays") \ | 160 V(harmony_arrays, "harmony arrays") \ |
162 V(harmony_classes, "harmony classes") \ | 161 V(harmony_classes, "harmony classes") \ |
163 V(harmony_object_literals, "harmony object literal extensions") \ | 162 V(harmony_object_literals, "harmony object literal extensions") \ |
164 V(harmony_regexps, "reg-exp related harmony features") \ | 163 V(harmony_regexps, "reg-exp related harmony features") \ |
165 V(harmony_arrow_functions, "harmony arrow functions") \ | 164 V(harmony_arrow_functions, "harmony arrow functions") \ |
166 V(harmony_tostring, "harmony Symbol.toStringTag") | 165 V(harmony_tostring, "harmony Symbol.toStringTag") |
167 | 166 |
168 #define STAGED_FEATURES(V) \ | 167 #define STAGED_FEATURES(V) \ |
| 168 V(harmony_strings, "harmony strings") \ |
169 V(harmony_numeric_literals, "harmony numeric literals (0o77, 0b11)") | 169 V(harmony_numeric_literals, "harmony numeric literals (0o77, 0b11)") |
170 | 170 |
171 #define SHIPPING_FEATURES(V) | 171 #define SHIPPING_FEATURES(V) |
172 | 172 |
173 #define FLAG_FEATURES(id, description) \ | 173 #define FLAG_FEATURES(id, description) \ |
174 DEFINE_BOOL(id, false, "enable " #description) \ | 174 DEFINE_BOOL(id, false, "enable " #description) \ |
175 DEFINE_IMPLICATION(harmony, id) | 175 DEFINE_IMPLICATION(harmony, id) |
176 | 176 |
177 HARMONY_FEATURES(FLAG_FEATURES) | 177 HARMONY_FEATURES(FLAG_FEATURES) |
178 STAGED_FEATURES(FLAG_FEATURES) | 178 STAGED_FEATURES(FLAG_FEATURES) |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 #undef DEFINE_ALIAS_FLOAT | 951 #undef DEFINE_ALIAS_FLOAT |
952 #undef DEFINE_ALIAS_ARGS | 952 #undef DEFINE_ALIAS_ARGS |
953 | 953 |
954 #undef FLAG_MODE_DECLARE | 954 #undef FLAG_MODE_DECLARE |
955 #undef FLAG_MODE_DEFINE | 955 #undef FLAG_MODE_DEFINE |
956 #undef FLAG_MODE_DEFINE_DEFAULTS | 956 #undef FLAG_MODE_DEFINE_DEFAULTS |
957 #undef FLAG_MODE_META | 957 #undef FLAG_MODE_META |
958 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 958 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
959 | 959 |
960 #undef COMMA | 960 #undef COMMA |
OLD | NEW |