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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 DEFINE_BOOL(intl_extra, false, "additional V8 Intl functions") | 184 DEFINE_BOOL(intl_extra, false, "additional V8 Intl functions") |
185 // Removing extra Intl functions is shipped | 185 // Removing extra Intl functions is shipped |
186 DEFINE_NEG_VALUE_IMPLICATION(harmony_shipping, intl_extra, true) | 186 DEFINE_NEG_VALUE_IMPLICATION(harmony_shipping, intl_extra, true) |
187 #endif | 187 #endif |
188 | 188 |
189 // Activate on ClusterFuzz. | 189 // Activate on ClusterFuzz. |
190 DEFINE_IMPLICATION(es_staging, harmony_regexp_lookbehind) | 190 DEFINE_IMPLICATION(es_staging, harmony_regexp_lookbehind) |
191 DEFINE_IMPLICATION(es_staging, move_object_start) | 191 DEFINE_IMPLICATION(es_staging, move_object_start) |
192 | 192 |
193 // Features that are still work in progress (behind individual flags). | 193 // Features that are still work in progress (behind individual flags). |
194 #define HARMONY_INPROGRESS_BASE(V) \ | 194 #define HARMONY_INPROGRESS(V) \ |
195 V(harmony_array_prototype_values, "harmony Array.prototype.values") \ | 195 V(harmony_array_prototype_values, "harmony Array.prototype.values") \ |
196 V(harmony_function_sent, "harmony function.sent") \ | 196 V(harmony_function_sent, "harmony function.sent") \ |
197 V(harmony_sharedarraybuffer, "harmony sharedarraybuffer") \ | 197 V(harmony_sharedarraybuffer, "harmony sharedarraybuffer") \ |
198 V(harmony_simd, "harmony simd") \ | 198 V(harmony_simd, "harmony simd") \ |
199 V(harmony_explicit_tailcalls, "harmony explicit tail calls") \ | 199 V(harmony_explicit_tailcalls, "harmony explicit tail calls") \ |
200 V(harmony_do_expressions, "harmony do-expressions") \ | 200 V(harmony_do_expressions, "harmony do-expressions") \ |
201 V(harmony_restrictive_generators, \ | 201 V(harmony_restrictive_generators, \ |
202 "harmony restrictions on generator declarations") \ | 202 "harmony restrictions on generator declarations") \ |
203 V(harmony_regexp_named_captures, "harmony regexp named captures") \ | 203 V(harmony_regexp_named_captures, "harmony regexp named captures") \ |
204 V(harmony_regexp_property, "harmony unicode regexp property classes") \ | 204 V(harmony_regexp_property, "harmony unicode regexp property classes") \ |
205 V(harmony_for_in, "harmony for-in syntax") \ | 205 V(harmony_for_in, "harmony for-in syntax") \ |
206 V(harmony_trailing_commas, \ | 206 V(harmony_trailing_commas, \ |
207 "harmony trailing commas in function parameter lists") | 207 "harmony trailing commas in function parameter lists") |
208 | 208 |
209 #ifdef V8_I18N_SUPPORT | |
210 #define HARMONY_INPROGRESS(V) \ | |
211 HARMONY_INPROGRESS_BASE(V) \ | |
212 V(datetime_format_to_parts, "Intl.DateTimeFormat.formatToParts") | |
213 #else | |
214 #define HARMONY_INPROGRESS(V) HARMONY_INPROGRESS_BASE(V) | |
215 #endif | |
216 | |
217 // Features that are complete (but still behind --harmony/es-staging flag). | 209 // Features that are complete (but still behind --harmony/es-staging flag). |
218 #define HARMONY_STAGED_BASE(V) \ | 210 #define HARMONY_STAGED_BASE(V) \ |
219 V(harmony_regexp_lookbehind, "harmony regexp lookbehind") \ | 211 V(harmony_regexp_lookbehind, "harmony regexp lookbehind") \ |
220 V(harmony_tailcalls, "harmony tail calls") \ | 212 V(harmony_tailcalls, "harmony tail calls") \ |
221 V(harmony_async_await, "harmony async-await") \ | 213 V(harmony_async_await, "harmony async-await") \ |
222 V(harmony_string_padding, "harmony String-padding methods") | 214 V(harmony_string_padding, "harmony String-padding methods") |
223 | 215 |
224 #ifdef V8_I18N_SUPPORT | 216 #ifdef V8_I18N_SUPPORT |
225 #define HARMONY_STAGED(V) \ | 217 #define HARMONY_STAGED(V) \ |
226 HARMONY_STAGED_BASE(V) \ | 218 HARMONY_STAGED_BASE(V) \ |
| 219 V(datetime_format_to_parts, "Intl.DateTimeFormat.formatToParts") \ |
227 V(icu_case_mapping, "case mapping with ICU rather than Unibrow") | 220 V(icu_case_mapping, "case mapping with ICU rather than Unibrow") |
228 #else | 221 #else |
229 #define HARMONY_STAGED(V) HARMONY_STAGED_BASE(V) | 222 #define HARMONY_STAGED(V) HARMONY_STAGED_BASE(V) |
230 #endif | 223 #endif |
231 | 224 |
232 // Features that are shipping (turned on by default, but internal flag remains). | 225 // Features that are shipping (turned on by default, but internal flag remains). |
233 #define HARMONY_SHIPPING(V) \ | 226 #define HARMONY_SHIPPING(V) \ |
234 V(harmony_restrictive_declarations, \ | 227 V(harmony_restrictive_declarations, \ |
235 "harmony limitations on sloppy mode function declarations") \ | 228 "harmony limitations on sloppy mode function declarations") \ |
236 V(harmony_object_values_entries, "harmony Object.values / Object.entries") \ | 229 V(harmony_object_values_entries, "harmony Object.values / Object.entries") \ |
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1207 #undef DEFINE_ALIAS_FLOAT | 1200 #undef DEFINE_ALIAS_FLOAT |
1208 #undef DEFINE_ALIAS_ARGS | 1201 #undef DEFINE_ALIAS_ARGS |
1209 | 1202 |
1210 #undef FLAG_MODE_DECLARE | 1203 #undef FLAG_MODE_DECLARE |
1211 #undef FLAG_MODE_DEFINE | 1204 #undef FLAG_MODE_DEFINE |
1212 #undef FLAG_MODE_DEFINE_DEFAULTS | 1205 #undef FLAG_MODE_DEFINE_DEFAULTS |
1213 #undef FLAG_MODE_META | 1206 #undef FLAG_MODE_META |
1214 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1207 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1215 | 1208 |
1216 #undef COMMA | 1209 #undef COMMA |
OLD | NEW |