| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 V(harmony_regexp_lookbehind, "harmony regexp lookbehind") \ | 214 V(harmony_regexp_lookbehind, "harmony regexp lookbehind") \ |
| 215 V(harmony_instanceof, "harmony instanceof support") \ | 215 V(harmony_instanceof, "harmony instanceof support") \ |
| 216 V(harmony_object_values_entries, "harmony Object.values / Object.entries") \ | 216 V(harmony_object_values_entries, "harmony Object.values / Object.entries") \ |
| 217 V(harmony_object_own_property_descriptors, \ | 217 V(harmony_object_own_property_descriptors, \ |
| 218 "harmony Object.getOwnPropertyDescriptors()") \ | 218 "harmony Object.getOwnPropertyDescriptors()") \ |
| 219 V(harmony_restrictive_declarations, \ | 219 V(harmony_restrictive_declarations, \ |
| 220 "harmony limitations on sloppy mode function declarations") | 220 "harmony limitations on sloppy mode function declarations") |
| 221 | 221 |
| 222 // Features that are shipping (turned on by default, but internal flag remains). | 222 // Features that are shipping (turned on by default, but internal flag remains). |
| 223 #define HARMONY_SHIPPING(V) \ | 223 #define HARMONY_SHIPPING(V) \ |
| 224 V(harmony_default_parameters, "harmony default parameters") \ | |
| 225 V(harmony_destructuring_assignment, "harmony destructuring assignment") \ | |
| 226 V(harmony_destructuring_bind, "harmony destructuring bind") \ | |
| 227 V(harmony_function_name, "harmony Function name inference") \ | 224 V(harmony_function_name, "harmony Function name inference") \ |
| 228 V(harmony_iterator_close, "harmony iterator finalization") \ | 225 V(harmony_iterator_close, "harmony iterator finalization") \ |
| 229 V(harmony_tostring, "harmony toString") \ | 226 V(harmony_tostring, "harmony toString") \ |
| 230 V(harmony_regexps, "harmony regular expression extensions") \ | 227 V(harmony_regexps, "harmony regular expression extensions") \ |
| 231 V(harmony_unicode_regexps, "harmony unicode regexps") \ | 228 V(harmony_unicode_regexps, "harmony unicode regexps") \ |
| 232 V(harmony_sloppy, "harmony features in sloppy mode") \ | 229 V(harmony_sloppy, "harmony features in sloppy mode") \ |
| 233 V(harmony_sloppy_let, "harmony let in sloppy mode") \ | 230 V(harmony_sloppy_let, "harmony let in sloppy mode") \ |
| 234 V(harmony_sloppy_function, "harmony sloppy function block scoping") \ | 231 V(harmony_sloppy_function, "harmony sloppy function block scoping") \ |
| 235 V(harmony_proxies, "harmony proxies") \ | 232 V(harmony_proxies, "harmony proxies") \ |
| 236 V(harmony_reflect, "harmony Reflect API") \ | 233 V(harmony_reflect, "harmony Reflect API") \ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 258 DEFINE_BOOL(id, true, "enable " #description) \ | 255 DEFINE_BOOL(id, true, "enable " #description) \ |
| 259 DEFINE_NEG_NEG_IMPLICATION(harmony_shipping, id) | 256 DEFINE_NEG_NEG_IMPLICATION(harmony_shipping, id) |
| 260 HARMONY_SHIPPING(FLAG_SHIPPING_FEATURES) | 257 HARMONY_SHIPPING(FLAG_SHIPPING_FEATURES) |
| 261 #undef FLAG_SHIPPING_FEATURES | 258 #undef FLAG_SHIPPING_FEATURES |
| 262 | 259 |
| 263 | 260 |
| 264 // Feature dependencies. | 261 // Feature dependencies. |
| 265 DEFINE_IMPLICATION(harmony_sloppy_let, harmony_sloppy) | 262 DEFINE_IMPLICATION(harmony_sloppy_let, harmony_sloppy) |
| 266 DEFINE_IMPLICATION(harmony_sloppy_function, harmony_sloppy) | 263 DEFINE_IMPLICATION(harmony_sloppy_function, harmony_sloppy) |
| 267 | 264 |
| 268 // Destructuring shares too much parsing architecture with default parameters | |
| 269 // to be enabled on its own. | |
| 270 DEFINE_IMPLICATION(harmony_destructuring_bind, harmony_default_parameters) | |
| 271 | |
| 272 // Flags for experimental implementation features. | 265 // Flags for experimental implementation features. |
| 273 DEFINE_BOOL(compiled_keyed_generic_loads, false, | 266 DEFINE_BOOL(compiled_keyed_generic_loads, false, |
| 274 "use optimizing compiler to generate keyed generic load stubs") | 267 "use optimizing compiler to generate keyed generic load stubs") |
| 275 DEFINE_BOOL(allocation_site_pretenuring, true, | 268 DEFINE_BOOL(allocation_site_pretenuring, true, |
| 276 "pretenure with allocation sites") | 269 "pretenure with allocation sites") |
| 277 DEFINE_BOOL(trace_pretenuring, false, | 270 DEFINE_BOOL(trace_pretenuring, false, |
| 278 "trace pretenuring decisions of HAllocate instructions") | 271 "trace pretenuring decisions of HAllocate instructions") |
| 279 DEFINE_BOOL(trace_pretenuring_statistics, false, | 272 DEFINE_BOOL(trace_pretenuring_statistics, false, |
| 280 "trace allocation site pretenuring statistics") | 273 "trace allocation site pretenuring statistics") |
| 281 DEFINE_BOOL(track_fields, true, "track fields with only smi values") | 274 DEFINE_BOOL(track_fields, true, "track fields with only smi values") |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 #undef DEFINE_ALIAS_FLOAT | 1160 #undef DEFINE_ALIAS_FLOAT |
| 1168 #undef DEFINE_ALIAS_ARGS | 1161 #undef DEFINE_ALIAS_ARGS |
| 1169 | 1162 |
| 1170 #undef FLAG_MODE_DECLARE | 1163 #undef FLAG_MODE_DECLARE |
| 1171 #undef FLAG_MODE_DEFINE | 1164 #undef FLAG_MODE_DEFINE |
| 1172 #undef FLAG_MODE_DEFINE_DEFAULTS | 1165 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 1173 #undef FLAG_MODE_META | 1166 #undef FLAG_MODE_META |
| 1174 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1167 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| 1175 | 1168 |
| 1176 #undef COMMA | 1169 #undef COMMA |
| OLD | NEW |