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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 DEFINE_BOOL(harmony_classes, false, "enable harmony classes") | 161 DEFINE_BOOL(harmony_classes, false, "enable harmony classes") |
162 DEFINE_BOOL(harmony_object_literals, false, | 162 DEFINE_BOOL(harmony_object_literals, false, |
163 "enable harmony object literal extensions") | 163 "enable harmony object literal extensions") |
164 DEFINE_BOOL(harmony_regexps, false, "enable regexp-related harmony features") | 164 DEFINE_BOOL(harmony_regexps, false, "enable regexp-related harmony features") |
165 DEFINE_BOOL(harmony, false, "enable all harmony features (except proxies)") | 165 DEFINE_BOOL(harmony, false, "enable all harmony features (except proxies)") |
166 | 166 |
167 DEFINE_IMPLICATION(harmony, harmony_scoping) | 167 DEFINE_IMPLICATION(harmony, harmony_scoping) |
168 DEFINE_IMPLICATION(harmony, harmony_modules) | 168 DEFINE_IMPLICATION(harmony, harmony_modules) |
169 // TODO(rossberg): Reenable when problems are sorted out. | 169 // TODO(rossberg): Reenable when problems are sorted out. |
170 // DEFINE_IMPLICATION(harmony, harmony_proxies) | 170 // DEFINE_IMPLICATION(harmony, harmony_proxies) |
171 DEFINE_IMPLICATION(harmony, harmony_numeric_literals) | |
172 DEFINE_IMPLICATION(harmony, harmony_strings) | 171 DEFINE_IMPLICATION(harmony, harmony_strings) |
173 DEFINE_IMPLICATION(harmony, harmony_arrays) | 172 DEFINE_IMPLICATION(harmony, harmony_arrays) |
174 DEFINE_IMPLICATION(harmony, harmony_arrow_functions) | 173 DEFINE_IMPLICATION(harmony, harmony_arrow_functions) |
175 DEFINE_IMPLICATION(harmony, harmony_classes) | 174 DEFINE_IMPLICATION(harmony, harmony_classes) |
176 DEFINE_IMPLICATION(harmony, harmony_object_literals) | 175 DEFINE_IMPLICATION(harmony, harmony_object_literals) |
177 DEFINE_IMPLICATION(harmony, harmony_regexps) | 176 DEFINE_IMPLICATION(harmony, harmony_regexps) |
178 DEFINE_IMPLICATION(harmony_modules, harmony_scoping) | 177 DEFINE_IMPLICATION(harmony_modules, harmony_scoping) |
179 DEFINE_IMPLICATION(harmony_classes, harmony_scoping) | 178 DEFINE_IMPLICATION(harmony_classes, harmony_scoping) |
180 DEFINE_IMPLICATION(harmony_classes, harmony_object_literals) | 179 DEFINE_IMPLICATION(harmony_classes, harmony_object_literals) |
181 | 180 |
182 DEFINE_IMPLICATION(harmony, es_staging) | 181 DEFINE_IMPLICATION(harmony, es_staging) |
| 182 DEFINE_IMPLICATION(es_staging, harmony_numeric_literals) |
183 | 183 |
184 // Flags for experimental implementation features. | 184 // Flags for experimental implementation features. |
185 DEFINE_BOOL(compiled_keyed_generic_loads, false, | 185 DEFINE_BOOL(compiled_keyed_generic_loads, false, |
186 "use optimizing compiler to generate keyed generic load stubs") | 186 "use optimizing compiler to generate keyed generic load stubs") |
187 DEFINE_BOOL(clever_optimizations, true, | 187 DEFINE_BOOL(clever_optimizations, true, |
188 "Optimize object size, Array shift, DOM strings and string +") | 188 "Optimize object size, Array shift, DOM strings and string +") |
189 // TODO(hpayer): We will remove this flag as soon as we have pretenuring | 189 // TODO(hpayer): We will remove this flag as soon as we have pretenuring |
190 // support for specific allocation sites. | 190 // support for specific allocation sites. |
191 DEFINE_BOOL(pretenuring_call_new, false, "pretenure call new") | 191 DEFINE_BOOL(pretenuring_call_new, false, "pretenure call new") |
192 DEFINE_BOOL(allocation_site_pretenuring, true, | 192 DEFINE_BOOL(allocation_site_pretenuring, true, |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 #undef DEFINE_ALIAS_FLOAT | 934 #undef DEFINE_ALIAS_FLOAT |
935 #undef DEFINE_ALIAS_ARGS | 935 #undef DEFINE_ALIAS_ARGS |
936 | 936 |
937 #undef FLAG_MODE_DECLARE | 937 #undef FLAG_MODE_DECLARE |
938 #undef FLAG_MODE_DEFINE | 938 #undef FLAG_MODE_DEFINE |
939 #undef FLAG_MODE_DEFINE_DEFAULTS | 939 #undef FLAG_MODE_DEFINE_DEFAULTS |
940 #undef FLAG_MODE_META | 940 #undef FLAG_MODE_META |
941 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 941 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
942 | 942 |
943 #undef COMMA | 943 #undef COMMA |
OLD | NEW |