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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
197 V(harmony_new_target, "harmony new.target") | 197 V(harmony_new_target, "harmony new.target") |
198 | 198 |
199 // Features that are complete (but still behind --harmony/es-staging flag). | 199 // Features that are complete (but still behind --harmony/es-staging flag). |
200 #define HARMONY_STAGED(V) \ | 200 #define HARMONY_STAGED(V) \ |
201 V(harmony_tostring, "harmony toString") | 201 V(harmony_tostring, "harmony toString") |
202 | 202 |
203 // Features that are shipping (turned on by default, but internal flag remains). | 203 // Features that are shipping (turned on by default, but internal flag remains). |
204 #define HARMONY_SHIPPING(V) \ | 204 #define HARMONY_SHIPPING(V) \ |
205 V(harmony_arrays, "harmony array methods") \ | 205 V(harmony_arrays, "harmony array methods") \ |
206 V(harmony_arrow_functions, "harmony arrow functions") \ | 206 V(harmony_arrow_functions, "harmony arrow functions") \ |
207 V(harmony_classes, "harmony classes (implies object literal extension)") \ | 207 V(harmony_classes, "harmony classes (implies object literal extension)") \ |
adamk
2015/06/26 18:48:32
Maybe you already have a change in flight for this
arv (Not doing code reviews)
2015/06/26 18:50:34
I was going to remove harmony classes next
| |
208 V(harmony_computed_property_names, "harmony computed property names") \ | 208 V(harmony_computed_property_names, "harmony computed property names") \ |
209 V(harmony_object_literals, "harmony object literal extensions") \ | |
210 V(harmony_spreadcalls, "harmony spread-calls") \ | 209 V(harmony_spreadcalls, "harmony spread-calls") \ |
211 V(harmony_spread_arrays, "harmony spread in array literals") \ | 210 V(harmony_spread_arrays, "harmony spread in array literals") \ |
212 V(harmony_unicode, "harmony unicode escapes") \ | 211 V(harmony_unicode, "harmony unicode escapes") \ |
213 V(harmony_object, "harmony Object methods") \ | 212 V(harmony_object, "harmony Object methods") \ |
214 V(harmony_rest_parameters, "harmony rest parameters") | 213 V(harmony_rest_parameters, "harmony rest parameters") |
215 | 214 |
216 // Once a shipping feature has proved stable in the wild, it will be dropped | 215 // Once a shipping feature has proved stable in the wild, it will be dropped |
217 // from HARMONY_SHIPPING, all occurrences of the FLAG_ variable are removed, | 216 // from HARMONY_SHIPPING, all occurrences of the FLAG_ variable are removed, |
218 // and associated tests are moved from the harmony directory to the appropriate | 217 // and associated tests are moved from the harmony directory to the appropriate |
219 // esN directory. | 218 // esN directory. |
(...skipping 11 matching lines...) Expand all Loading... | |
231 #undef FLAG_STAGED_FEATURES | 230 #undef FLAG_STAGED_FEATURES |
232 | 231 |
233 #define FLAG_SHIPPING_FEATURES(id, description) \ | 232 #define FLAG_SHIPPING_FEATURES(id, description) \ |
234 DEFINE_BOOL(id, true, "enable " #description) \ | 233 DEFINE_BOOL(id, true, "enable " #description) \ |
235 DEFINE_NEG_NEG_IMPLICATION(harmony_shipping, id) | 234 DEFINE_NEG_NEG_IMPLICATION(harmony_shipping, id) |
236 HARMONY_SHIPPING(FLAG_SHIPPING_FEATURES) | 235 HARMONY_SHIPPING(FLAG_SHIPPING_FEATURES) |
237 #undef FLAG_SHIPPING_FEATURES | 236 #undef FLAG_SHIPPING_FEATURES |
238 | 237 |
239 | 238 |
240 // Feature dependencies. | 239 // Feature dependencies. |
241 DEFINE_IMPLICATION(harmony_classes, harmony_object_literals) | |
242 DEFINE_IMPLICATION(harmony_unicode_regexps, harmony_unicode) | 240 DEFINE_IMPLICATION(harmony_unicode_regexps, harmony_unicode) |
243 | 241 |
244 | 242 |
245 // Flags for experimental implementation features. | 243 // Flags for experimental implementation features. |
246 DEFINE_BOOL(compiled_keyed_generic_loads, false, | 244 DEFINE_BOOL(compiled_keyed_generic_loads, false, |
247 "use optimizing compiler to generate keyed generic load stubs") | 245 "use optimizing compiler to generate keyed generic load stubs") |
248 // TODO(hpayer): We will remove this flag as soon as we have pretenuring | 246 // TODO(hpayer): We will remove this flag as soon as we have pretenuring |
249 // support for specific allocation sites. | 247 // support for specific allocation sites. |
250 DEFINE_BOOL(pretenuring_call_new, false, "pretenure call new") | 248 DEFINE_BOOL(pretenuring_call_new, false, "pretenure call new") |
251 DEFINE_BOOL(allocation_site_pretenuring, true, | 249 DEFINE_BOOL(allocation_site_pretenuring, true, |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1069 #undef DEFINE_ALIAS_FLOAT | 1067 #undef DEFINE_ALIAS_FLOAT |
1070 #undef DEFINE_ALIAS_ARGS | 1068 #undef DEFINE_ALIAS_ARGS |
1071 | 1069 |
1072 #undef FLAG_MODE_DECLARE | 1070 #undef FLAG_MODE_DECLARE |
1073 #undef FLAG_MODE_DEFINE | 1071 #undef FLAG_MODE_DEFINE |
1074 #undef FLAG_MODE_DEFINE_DEFAULTS | 1072 #undef FLAG_MODE_DEFINE_DEFAULTS |
1075 #undef FLAG_MODE_META | 1073 #undef FLAG_MODE_META |
1076 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1074 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1077 | 1075 |
1078 #undef COMMA | 1076 #undef COMMA |
OLD | NEW |