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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST_NO_FEATURE_PROBE) | 137 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST_NO_FEATURE_PROBE) |
138 #define ENABLE_32DREGS_DEFAULT true | 138 #define ENABLE_32DREGS_DEFAULT true |
139 #else | 139 #else |
140 #define ENABLE_32DREGS_DEFAULT false | 140 #define ENABLE_32DREGS_DEFAULT false |
141 #endif | 141 #endif |
142 #if (defined CAN_USE_NEON) || !(defined ARM_TEST_NO_FEATURE_PROBE) | 142 #if (defined CAN_USE_NEON) || !(defined ARM_TEST_NO_FEATURE_PROBE) |
143 # define ENABLE_NEON_DEFAULT true | 143 # define ENABLE_NEON_DEFAULT true |
144 #else | 144 #else |
145 # define ENABLE_NEON_DEFAULT false | 145 # define ENABLE_NEON_DEFAULT false |
146 #endif | 146 #endif |
| 147 #ifdef V8_OS_WIN |
| 148 # define ENABLE_LOG_COLOUR false |
| 149 #else |
| 150 # define ENABLE_LOG_COLOUR true |
| 151 #endif |
147 | 152 |
148 #define DEFINE_BOOL(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) | 153 #define DEFINE_BOOL(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) |
149 #define DEFINE_BOOL_READONLY(nam, def, cmt) \ | 154 #define DEFINE_BOOL_READONLY(nam, def, cmt) \ |
150 FLAG_READONLY(BOOL, bool, nam, def, cmt) | 155 FLAG_READONLY(BOOL, bool, nam, def, cmt) |
151 #define DEFINE_MAYBE_BOOL(nam, cmt) \ | 156 #define DEFINE_MAYBE_BOOL(nam, cmt) \ |
152 FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, {false COMMA false}, cmt) | 157 FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, {false COMMA false}, cmt) |
153 #define DEFINE_INT(nam, def, cmt) FLAG(INT, int, nam, def, cmt) | 158 #define DEFINE_INT(nam, def, cmt) FLAG(INT, int, nam, def, cmt) |
154 #define DEFINE_FLOAT(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) | 159 #define DEFINE_FLOAT(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) |
155 #define DEFINE_STRING(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) | 160 #define DEFINE_STRING(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) |
156 #define DEFINE_ARGS(nam, cmt) FLAG(ARGS, JSArguments, nam, {0 COMMA NULL}, cmt) | 161 #define DEFINE_ARGS(nam, cmt) FLAG(ARGS, JSArguments, nam, {0 COMMA NULL}, cmt) |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 299 |
295 // Flags for data representation optimizations | 300 // Flags for data representation optimizations |
296 DEFINE_BOOL(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 301 DEFINE_BOOL(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
297 DEFINE_BOOL(string_slices, true, "use string slices") | 302 DEFINE_BOOL(string_slices, true, "use string slices") |
298 | 303 |
299 // Flags for Ignition. | 304 // Flags for Ignition. |
300 DEFINE_BOOL(ignition, false, "use ignition interpreter") | 305 DEFINE_BOOL(ignition, false, "use ignition interpreter") |
301 DEFINE_STRING(ignition_filter, "*", "filter for ignition interpreter") | 306 DEFINE_STRING(ignition_filter, "*", "filter for ignition interpreter") |
302 DEFINE_BOOL(print_bytecode, false, | 307 DEFINE_BOOL(print_bytecode, false, |
303 "print bytecode generated by ignition interpreter") | 308 "print bytecode generated by ignition interpreter") |
| 309 DEFINE_BOOL(trace_ignition, false, |
| 310 "trace the bytecodes executed by the ignition interpreter") |
304 DEFINE_BOOL(trace_ignition_codegen, false, | 311 DEFINE_BOOL(trace_ignition_codegen, false, |
305 "trace the codegen of ignition interpreter bytecode handlers") | 312 "trace the codegen of ignition interpreter bytecode handlers") |
306 | 313 |
307 // Flags for Crankshaft. | 314 // Flags for Crankshaft. |
308 DEFINE_BOOL(crankshaft, true, "use crankshaft") | 315 DEFINE_BOOL(crankshaft, true, "use crankshaft") |
309 DEFINE_STRING(hydrogen_filter, "*", "optimization filter") | 316 DEFINE_STRING(hydrogen_filter, "*", "optimization filter") |
310 DEFINE_BOOL(use_gvn, true, "use hydrogen global value numbering") | 317 DEFINE_BOOL(use_gvn, true, "use hydrogen global value numbering") |
311 DEFINE_INT(gvn_iterations, 3, "maximum number of GVN fix-point iterations") | 318 DEFINE_INT(gvn_iterations, 3, "maximum number of GVN fix-point iterations") |
312 DEFINE_BOOL(use_canonicalizing, true, "use hydrogen instruction canonicalizing") | 319 DEFINE_BOOL(use_canonicalizing, true, "use hydrogen instruction canonicalizing") |
313 DEFINE_BOOL(use_inlining, true, "use function inlining") | 320 DEFINE_BOOL(use_inlining, true, "use function inlining") |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 "and it must be at least 16. 16 is default.") | 787 "and it must be at least 16. 16 is default.") |
781 #else | 788 #else |
782 DEFINE_INT(sim_stack_alignment, 8, | 789 DEFINE_INT(sim_stack_alignment, 8, |
783 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") | 790 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") |
784 #endif | 791 #endif |
785 DEFINE_INT(sim_stack_size, 2 * MB / KB, | 792 DEFINE_INT(sim_stack_size, 2 * MB / KB, |
786 "Stack size of the ARM64, MIPS64 and PPC64 simulator " | 793 "Stack size of the ARM64, MIPS64 and PPC64 simulator " |
787 "in kBytes (default is 2 MB)") | 794 "in kBytes (default is 2 MB)") |
788 DEFINE_BOOL(log_regs_modified, true, | 795 DEFINE_BOOL(log_regs_modified, true, |
789 "When logging register values, only print modified registers.") | 796 "When logging register values, only print modified registers.") |
790 DEFINE_BOOL(log_colour, true, "When logging, try to use coloured output.") | 797 DEFINE_BOOL(log_colour, ENABLE_LOG_COLOUR, |
| 798 "When logging, try to use coloured output.") |
791 DEFINE_BOOL(ignore_asm_unimplemented_break, false, | 799 DEFINE_BOOL(ignore_asm_unimplemented_break, false, |
792 "Don't break for ASM_UNIMPLEMENTED_BREAK macros.") | 800 "Don't break for ASM_UNIMPLEMENTED_BREAK macros.") |
793 DEFINE_BOOL(trace_sim_messages, false, | 801 DEFINE_BOOL(trace_sim_messages, false, |
794 "Trace simulator debug messages. Implied by --trace-sim.") | 802 "Trace simulator debug messages. Implied by --trace-sim.") |
795 | 803 |
796 // isolate.cc | 804 // isolate.cc |
797 DEFINE_BOOL(stack_trace_on_illegal, false, | 805 DEFINE_BOOL(stack_trace_on_illegal, false, |
798 "print stack trace when an illegal exception is thrown") | 806 "print stack trace when an illegal exception is thrown") |
799 DEFINE_BOOL(abort_on_uncaught_exception, false, | 807 DEFINE_BOOL(abort_on_uncaught_exception, false, |
800 "abort program (dump core) when an uncaught exception is thrown") | 808 "abort program (dump core) when an uncaught exception is thrown") |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 #undef DEFINE_ALIAS_FLOAT | 1147 #undef DEFINE_ALIAS_FLOAT |
1140 #undef DEFINE_ALIAS_ARGS | 1148 #undef DEFINE_ALIAS_ARGS |
1141 | 1149 |
1142 #undef FLAG_MODE_DECLARE | 1150 #undef FLAG_MODE_DECLARE |
1143 #undef FLAG_MODE_DEFINE | 1151 #undef FLAG_MODE_DEFINE |
1144 #undef FLAG_MODE_DEFINE_DEFAULTS | 1152 #undef FLAG_MODE_DEFINE_DEFAULTS |
1145 #undef FLAG_MODE_META | 1153 #undef FLAG_MODE_META |
1146 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1154 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1147 | 1155 |
1148 #undef COMMA | 1156 #undef COMMA |
OLD | NEW |