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