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 DEFINE_BOOL(es_staging, false, "enable upcoming ES6+ features") | 150 DEFINE_BOOL(es_staging, false, "enable upcoming ES6+ features") |
151 | 151 |
152 DEFINE_BOOL(harmony_scoping, false, "enable harmony block scoping") | 152 DEFINE_BOOL(harmony_scoping, false, "enable harmony block scoping") |
153 DEFINE_BOOL(harmony_modules, false, | 153 DEFINE_BOOL(harmony_modules, false, |
154 "enable harmony modules (implies block scoping)") | 154 "enable harmony modules (implies block scoping)") |
155 DEFINE_BOOL(harmony_proxies, false, "enable harmony proxies") | 155 DEFINE_BOOL(harmony_proxies, false, "enable harmony proxies") |
156 DEFINE_BOOL(harmony_numeric_literals, false, | 156 DEFINE_BOOL(harmony_numeric_literals, false, |
157 "enable harmony numeric literals (0o77, 0b11)") | 157 "enable harmony numeric literals (0o77, 0b11)") |
158 DEFINE_BOOL(harmony_strings, false, "enable harmony string") | 158 DEFINE_BOOL(harmony_strings, false, "enable harmony string") |
159 DEFINE_BOOL(harmony_arrays, false, "enable harmony arrays") | 159 DEFINE_BOOL(harmony_arrays, false, "enable harmony arrays") |
160 DEFINE_BOOL(harmony_typedarrays, false, "enable harmony typedarrays") | |
160 DEFINE_BOOL(harmony_arrow_functions, false, "enable harmony arrow functions") | 161 DEFINE_BOOL(harmony_arrow_functions, false, "enable harmony arrow functions") |
161 DEFINE_BOOL(harmony_classes, false, "enable harmony classes") | 162 DEFINE_BOOL(harmony_classes, false, "enable harmony classes") |
162 DEFINE_BOOL(harmony_object_literals, false, | 163 DEFINE_BOOL(harmony_object_literals, false, |
163 "enable harmony object literal extensions") | 164 "enable harmony object literal extensions") |
164 DEFINE_BOOL(harmony_regexps, false, "enable regexp-related harmony features") | 165 DEFINE_BOOL(harmony_regexps, false, "enable regexp-related harmony features") |
165 DEFINE_BOOL(harmony, false, "enable all harmony features (except proxies)") | 166 DEFINE_BOOL(harmony, false, "enable all harmony features (except proxies)") |
166 | 167 |
167 DEFINE_IMPLICATION(harmony, harmony_scoping) | 168 DEFINE_IMPLICATION(harmony, harmony_scoping) |
168 DEFINE_IMPLICATION(harmony, harmony_modules) | 169 DEFINE_IMPLICATION(harmony, harmony_modules) |
169 // TODO(rossberg): Reenable when problems are sorted out. | 170 // TODO(rossberg): Reenable when problems are sorted out. |
170 // DEFINE_IMPLICATION(harmony, harmony_proxies) | 171 // DEFINE_IMPLICATION(harmony, harmony_proxies) |
171 DEFINE_IMPLICATION(harmony, harmony_strings) | 172 DEFINE_IMPLICATION(harmony, harmony_strings) |
172 DEFINE_IMPLICATION(harmony, harmony_arrays) | 173 DEFINE_IMPLICATION(harmony, harmony_arrays) |
174 DEFINE_IMPLICATION(harmony, harmony_typedarrays) | |
Dmitry Lomov (no reviews)
2014/10/08 13:57:10
Let's not have an extra flag for typed arrays, and
| |
173 DEFINE_IMPLICATION(harmony, harmony_arrow_functions) | 175 DEFINE_IMPLICATION(harmony, harmony_arrow_functions) |
174 DEFINE_IMPLICATION(harmony, harmony_classes) | 176 DEFINE_IMPLICATION(harmony, harmony_classes) |
175 DEFINE_IMPLICATION(harmony, harmony_object_literals) | 177 DEFINE_IMPLICATION(harmony, harmony_object_literals) |
176 DEFINE_IMPLICATION(harmony, harmony_regexps) | 178 DEFINE_IMPLICATION(harmony, harmony_regexps) |
177 DEFINE_IMPLICATION(harmony_modules, harmony_scoping) | 179 DEFINE_IMPLICATION(harmony_modules, harmony_scoping) |
178 DEFINE_IMPLICATION(harmony_classes, harmony_scoping) | 180 DEFINE_IMPLICATION(harmony_classes, harmony_scoping) |
179 DEFINE_IMPLICATION(harmony_classes, harmony_object_literals) | 181 DEFINE_IMPLICATION(harmony_classes, harmony_object_literals) |
180 | 182 |
181 DEFINE_IMPLICATION(harmony, es_staging) | 183 DEFINE_IMPLICATION(harmony, es_staging) |
182 DEFINE_IMPLICATION(es_staging, harmony_numeric_literals) | 184 DEFINE_IMPLICATION(es_staging, harmony_numeric_literals) |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
928 #undef DEFINE_ALIAS_FLOAT | 930 #undef DEFINE_ALIAS_FLOAT |
929 #undef DEFINE_ALIAS_ARGS | 931 #undef DEFINE_ALIAS_ARGS |
930 | 932 |
931 #undef FLAG_MODE_DECLARE | 933 #undef FLAG_MODE_DECLARE |
932 #undef FLAG_MODE_DEFINE | 934 #undef FLAG_MODE_DEFINE |
933 #undef FLAG_MODE_DEFINE_DEFAULTS | 935 #undef FLAG_MODE_DEFINE_DEFAULTS |
934 #undef FLAG_MODE_META | 936 #undef FLAG_MODE_META |
935 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 937 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
936 | 938 |
937 #undef COMMA | 939 #undef COMMA |
OLD | NEW |