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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 DEFINE_BOOL(use_strict, false, "enforce strict mode") | 174 DEFINE_BOOL(use_strict, false, "enforce strict mode") |
175 DEFINE_BOOL(use_strong, false, "enforce strong mode") | 175 DEFINE_BOOL(use_strong, false, "enforce strong mode") |
176 DEFINE_IMPLICATION(use_strong, use_strict) | 176 DEFINE_IMPLICATION(use_strong, use_strict) |
177 | 177 |
178 DEFINE_BOOL(strong_mode, false, "experimental strong language mode") | 178 DEFINE_BOOL(strong_mode, false, "experimental strong language mode") |
179 DEFINE_IMPLICATION(use_strong, strong_mode) | 179 DEFINE_IMPLICATION(use_strong, strong_mode) |
180 DEFINE_BOOL(strong_this, true, "don't allow 'this' to escape from constructors") | 180 DEFINE_BOOL(strong_this, true, "don't allow 'this' to escape from constructors") |
181 | 181 |
182 DEFINE_BOOL(es_staging, false, "enable all completed harmony features") | 182 DEFINE_BOOL(es_staging, false, "enable all completed harmony features") |
183 DEFINE_BOOL(harmony, false, "enable all completed harmony features") | 183 DEFINE_BOOL(harmony, false, "enable all completed harmony features") |
184 DEFINE_BOOL(harmony_shipping, true, "enable all shipped harmony fetaures") | 184 DEFINE_BOOL(harmony_shipping, true, "enable all shipped harmony features") |
185 DEFINE_IMPLICATION(harmony, es_staging) | 185 DEFINE_IMPLICATION(harmony, es_staging) |
186 DEFINE_IMPLICATION(es_staging, harmony) | 186 DEFINE_IMPLICATION(es_staging, harmony) |
187 | 187 |
188 DEFINE_BOOL(legacy_const, true, "legacy semantics for const in sloppy mode") | 188 DEFINE_BOOL(legacy_const, true, "legacy semantics for const in sloppy mode") |
189 // ES2015 const semantics are staged | 189 // ES2015 const semantics are staged |
190 DEFINE_NEG_IMPLICATION(es_staging, legacy_const) | 190 DEFINE_NEG_IMPLICATION(es_staging, legacy_const) |
191 | 191 |
192 // Features that are still work in progress (behind individual flags). | 192 // Features that are still work in progress (behind individual flags). |
193 #define HARMONY_INPROGRESS(V) \ | 193 #define HARMONY_INPROGRESS(V) \ |
194 V(harmony_modules, "harmony modules") \ | 194 V(harmony_modules, "harmony modules") \ |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 "make maps embedded in optimized code weak") | 651 "make maps embedded in optimized code weak") |
652 DEFINE_BOOL(weak_embedded_objects_in_optimized_code, true, | 652 DEFINE_BOOL(weak_embedded_objects_in_optimized_code, true, |
653 "make objects embedded in optimized code weak") | 653 "make objects embedded in optimized code weak") |
654 DEFINE_BOOL(flush_code, true, "flush code that we expect not to use again") | 654 DEFINE_BOOL(flush_code, true, "flush code that we expect not to use again") |
655 DEFINE_BOOL(trace_code_flushing, false, "trace code flushing progress") | 655 DEFINE_BOOL(trace_code_flushing, false, "trace code flushing progress") |
656 DEFINE_BOOL(age_code, true, | 656 DEFINE_BOOL(age_code, true, |
657 "track un-executed functions to age code and flush only " | 657 "track un-executed functions to age code and flush only " |
658 "old code (required for code flushing)") | 658 "old code (required for code flushing)") |
659 DEFINE_BOOL(incremental_marking, true, "use incremental marking") | 659 DEFINE_BOOL(incremental_marking, true, "use incremental marking") |
660 DEFINE_BOOL(overapproximate_weak_closure, true, | 660 DEFINE_BOOL(overapproximate_weak_closure, true, |
661 "overapproximate weak closer to reduce atomic pause time") | 661 "overapproximate weak closure to reduce atomic pause time") |
662 DEFINE_INT(min_progress_during_object_groups_marking, 128, | 662 DEFINE_INT(min_progress_during_object_groups_marking, 128, |
663 "keep overapproximating the weak closure as long as we discover at " | 663 "keep overapproximating the weak closure as long as we discover at " |
664 "least this many unmarked objects") | 664 "least this many unmarked objects") |
665 DEFINE_INT(max_object_groups_marking_rounds, 3, | 665 DEFINE_INT(max_object_groups_marking_rounds, 3, |
666 "at most try this many times to over approximate the weak closure") | 666 "at most try this many times to over approximate the weak closure") |
667 DEFINE_BOOL(concurrent_sweeping, true, "use concurrent sweeping") | 667 DEFINE_BOOL(concurrent_sweeping, true, "use concurrent sweeping") |
668 DEFINE_BOOL(parallel_compaction, false, "use parallel compaction") | 668 DEFINE_BOOL(parallel_compaction, false, "use parallel compaction") |
669 DEFINE_BOOL(trace_incremental_marking, false, | 669 DEFINE_BOOL(trace_incremental_marking, false, |
670 "trace progress of the incremental marking") | 670 "trace progress of the incremental marking") |
671 DEFINE_BOOL(track_gc_object_stats, false, | 671 DEFINE_BOOL(track_gc_object_stats, false, |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 #undef DEFINE_ALIAS_FLOAT | 1108 #undef DEFINE_ALIAS_FLOAT |
1109 #undef DEFINE_ALIAS_ARGS | 1109 #undef DEFINE_ALIAS_ARGS |
1110 | 1110 |
1111 #undef FLAG_MODE_DECLARE | 1111 #undef FLAG_MODE_DECLARE |
1112 #undef FLAG_MODE_DEFINE | 1112 #undef FLAG_MODE_DEFINE |
1113 #undef FLAG_MODE_DEFINE_DEFAULTS | 1113 #undef FLAG_MODE_DEFINE_DEFAULTS |
1114 #undef FLAG_MODE_META | 1114 #undef FLAG_MODE_META |
1115 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1115 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1116 | 1116 |
1117 #undef COMMA | 1117 #undef COMMA |
OLD | NEW |