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 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 | 745 |
746 // code-stubs-hydrogen.cc | 746 // code-stubs-hydrogen.cc |
747 DEFINE_BOOL(profile_hydrogen_code_stub_compilation, false, | 747 DEFINE_BOOL(profile_hydrogen_code_stub_compilation, false, |
748 "Print the time it takes to lazily compile hydrogen code stubs.") | 748 "Print the time it takes to lazily compile hydrogen code stubs.") |
749 | 749 |
750 DEFINE_BOOL(predictable, false, "enable predictable mode") | 750 DEFINE_BOOL(predictable, false, "enable predictable mode") |
751 DEFINE_NEG_IMPLICATION(predictable, concurrent_recompilation) | 751 DEFINE_NEG_IMPLICATION(predictable, concurrent_recompilation) |
752 DEFINE_NEG_IMPLICATION(predictable, concurrent_osr) | 752 DEFINE_NEG_IMPLICATION(predictable, concurrent_osr) |
753 DEFINE_NEG_IMPLICATION(predictable, concurrent_sweeping) | 753 DEFINE_NEG_IMPLICATION(predictable, concurrent_sweeping) |
754 | 754 |
| 755 // mark-compact.cc |
| 756 DEFINE_BOOL(force_marking_deque_overflows, false, |
| 757 "force overflows of marking deque by reducing it's size " |
| 758 "to 64 words") |
| 759 |
| 760 DEFINE_BOOL(stress_compaction, false, |
| 761 "stress the GC compactor to flush out bugs (implies " |
| 762 "--force_marking_deque_overflows)") |
755 | 763 |
756 // | 764 // |
757 // Dev shell flags | 765 // Dev shell flags |
758 // | 766 // |
759 | 767 |
760 DEFINE_BOOL(help, false, "Print usage message, including flags, on console") | 768 DEFINE_BOOL(help, false, "Print usage message, including flags, on console") |
761 DEFINE_BOOL(dump_counters, false, "Dump counters on exit") | 769 DEFINE_BOOL(dump_counters, false, "Dump counters on exit") |
762 | 770 |
763 DEFINE_BOOL(debugger, false, "Enable JavaScript debugger") | 771 DEFINE_BOOL(debugger, false, "Enable JavaScript debugger") |
764 | 772 |
765 DEFINE_STRING(map_counters, "", "Map counters to a file") | 773 DEFINE_STRING(map_counters, "", "Map counters to a file") |
766 DEFINE_ARGS(js_arguments, | 774 DEFINE_ARGS(js_arguments, |
767 "Pass all remaining arguments to the script. Alias for \"--\".") | 775 "Pass all remaining arguments to the script. Alias for \"--\".") |
768 | 776 |
769 // | 777 // |
770 // GDB JIT integration flags. | 778 // GDB JIT integration flags. |
771 // | 779 // |
| 780 #undef FLAG |
| 781 #ifdef ENABLE_GDB_JIT_INTERFACE |
| 782 #define FLAG FLAG_FULL |
| 783 #else |
| 784 #define FLAG FLAG_READONLY |
| 785 #endif |
772 | 786 |
773 DEFINE_BOOL(gdbjit, false, "enable GDBJIT interface (disables compacting GC)") | 787 DEFINE_BOOL(gdbjit, false, "enable GDBJIT interface") |
774 DEFINE_BOOL(gdbjit_full, false, "enable GDBJIT interface for all code objects") | 788 DEFINE_BOOL(gdbjit_full, false, "enable GDBJIT interface for all code objects") |
775 DEFINE_BOOL(gdbjit_dump, false, "dump elf objects with debug info to disk") | 789 DEFINE_BOOL(gdbjit_dump, false, "dump elf objects with debug info to disk") |
776 DEFINE_STRING(gdbjit_dump_filter, "", | 790 DEFINE_STRING(gdbjit_dump_filter, "", |
777 "dump only objects containing this substring") | 791 "dump only objects containing this substring") |
778 | 792 |
779 // mark-compact.cc | 793 #ifdef ENABLE_GDB_JIT_INTERFACE |
780 DEFINE_BOOL(force_marking_deque_overflows, false, | 794 DEFINE_IMPLICATION(gdbjit_full, gdbjit) |
781 "force overflows of marking deque by reducing it's size " | 795 DEFINE_IMPLICATION(gdbjit_dump, gdbjit) |
782 "to 64 words") | 796 #endif |
783 | 797 DEFINE_NEG_IMPLICATION(gdbjit, compact_code_space) |
784 DEFINE_BOOL(stress_compaction, false, | |
785 "stress the GC compactor to flush out bugs (implies " | |
786 "--force_marking_deque_overflows)") | |
787 | 798 |
788 // | 799 // |
789 // Debug only flags | 800 // Debug only flags |
790 // | 801 // |
791 #undef FLAG | 802 #undef FLAG |
792 #ifdef DEBUG | 803 #ifdef DEBUG |
793 #define FLAG FLAG_FULL | 804 #define FLAG FLAG_FULL |
794 #else | 805 #else |
795 #define FLAG FLAG_READONLY | 806 #define FLAG FLAG_READONLY |
796 #endif | 807 #endif |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 #undef DEFINE_ALIAS_FLOAT | 1030 #undef DEFINE_ALIAS_FLOAT |
1020 #undef DEFINE_ALIAS_ARGS | 1031 #undef DEFINE_ALIAS_ARGS |
1021 | 1032 |
1022 #undef FLAG_MODE_DECLARE | 1033 #undef FLAG_MODE_DECLARE |
1023 #undef FLAG_MODE_DEFINE | 1034 #undef FLAG_MODE_DEFINE |
1024 #undef FLAG_MODE_DEFINE_DEFAULTS | 1035 #undef FLAG_MODE_DEFINE_DEFAULTS |
1025 #undef FLAG_MODE_META | 1036 #undef FLAG_MODE_META |
1026 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1037 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1027 | 1038 |
1028 #undef COMMA | 1039 #undef COMMA |
OLD | NEW |