| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_arrays, "harmony arrays") \ | 160 V(harmony_arrays, "harmony arrays") \ |
| 161 V(harmony_classes, "harmony classes") \ | 161 V(harmony_classes, "harmony classes") \ |
| 162 V(harmony_object_literals, "harmony object literal extensions") \ | 162 V(harmony_object_literals, "harmony object literal extensions") \ |
| 163 V(harmony_regexps, "reg-exp related harmony features") \ | 163 V(harmony_regexps, "reg-exp related harmony features") \ |
| 164 V(harmony_arrow_functions, "harmony arrow functions") \ | 164 V(harmony_arrow_functions, "harmony arrow functions") \ |
| 165 V(harmony_tostring, "harmony Symbol.toStringTag") | 165 V(harmony_tostring, "harmony Symbol.toStringTag") \ |
| 166 V(harmony_templates, "harmony template literals") |
| 166 | 167 |
| 167 #define STAGED_FEATURES(V) \ | 168 #define STAGED_FEATURES(V) \ |
| 168 V(harmony_strings, "harmony strings") \ | 169 V(harmony_strings, "harmony strings") \ |
| 169 V(harmony_numeric_literals, "harmony numeric literals (0o77, 0b11)") | 170 V(harmony_numeric_literals, "harmony numeric literals (0o77, 0b11)") |
| 170 | 171 |
| 171 #define SHIPPING_FEATURES(V) | 172 #define SHIPPING_FEATURES(V) |
| 172 | 173 |
| 173 #define FLAG_FEATURES(id, description) \ | 174 #define FLAG_FEATURES(id, description) \ |
| 174 DEFINE_BOOL(id, false, "enable " #description) \ | 175 DEFINE_BOOL(id, false, "enable " #description) \ |
| 175 DEFINE_IMPLICATION(harmony, id) | 176 DEFINE_IMPLICATION(harmony, id) |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 #undef DEFINE_ALIAS_FLOAT | 952 #undef DEFINE_ALIAS_FLOAT |
| 952 #undef DEFINE_ALIAS_ARGS | 953 #undef DEFINE_ALIAS_ARGS |
| 953 | 954 |
| 954 #undef FLAG_MODE_DECLARE | 955 #undef FLAG_MODE_DECLARE |
| 955 #undef FLAG_MODE_DEFINE | 956 #undef FLAG_MODE_DEFINE |
| 956 #undef FLAG_MODE_DEFINE_DEFAULTS | 957 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 957 #undef FLAG_MODE_META | 958 #undef FLAG_MODE_META |
| 958 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 959 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| 959 | 960 |
| 960 #undef COMMA | 961 #undef COMMA |
| OLD | NEW |