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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 // parser.cc | 570 // parser.cc |
571 DEFINE_BOOL(allow_natives_syntax, false, "allow natives syntax") | 571 DEFINE_BOOL(allow_natives_syntax, false, "allow natives syntax") |
572 DEFINE_BOOL(trace_parse, false, "trace parsing and preparsing") | 572 DEFINE_BOOL(trace_parse, false, "trace parsing and preparsing") |
573 | 573 |
574 // simulator-arm.cc, simulator-arm64.cc and simulator-mips.cc | 574 // simulator-arm.cc, simulator-arm64.cc and simulator-mips.cc |
575 DEFINE_BOOL(trace_sim, false, "Trace simulator execution") | 575 DEFINE_BOOL(trace_sim, false, "Trace simulator execution") |
576 DEFINE_BOOL(debug_sim, false, "Enable debugging the simulator") | 576 DEFINE_BOOL(debug_sim, false, "Enable debugging the simulator") |
577 DEFINE_BOOL(check_icache, false, | 577 DEFINE_BOOL(check_icache, false, |
578 "Check icache flushes in ARM and MIPS simulator") | 578 "Check icache flushes in ARM and MIPS simulator") |
579 DEFINE_INT(stop_sim_at, 0, "Simulator stop after x number of instructions") | 579 DEFINE_INT(stop_sim_at, 0, "Simulator stop after x number of instructions") |
580 #ifdef V8_TARGET_ARCH_ARM64 | 580 #if defined(V8_TARGET_ARCH_ARM64) || defined(V8_TARGET_ARCH_MIPS64) |
581 DEFINE_INT(sim_stack_alignment, 16, | 581 DEFINE_INT(sim_stack_alignment, 16, |
582 "Stack alignment in bytes in simulator. This must be a power of two " | 582 "Stack alignment in bytes in simulator. This must be a power of two " |
583 "and it must be at least 16. 16 is default.") | 583 "and it must be at least 16. 16 is default.") |
584 #else | 584 #else |
585 DEFINE_INT(sim_stack_alignment, 8, | 585 DEFINE_INT(sim_stack_alignment, 8, |
586 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") | 586 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") |
587 #endif | 587 #endif |
588 DEFINE_INT(sim_stack_size, 2 * MB / KB, | 588 DEFINE_INT(sim_stack_size, 2 * MB / KB, |
589 "Stack size of the ARM64 simulator in kBytes (default is 2 MB)") | 589 "Stack size of the ARM64 and MIPS64 simulator " |
| 590 "in kBytes (default is 2 MB)") |
590 DEFINE_BOOL(log_regs_modified, true, | 591 DEFINE_BOOL(log_regs_modified, true, |
591 "When logging register values, only print modified registers.") | 592 "When logging register values, only print modified registers.") |
592 DEFINE_BOOL(log_colour, true, "When logging, try to use coloured output.") | 593 DEFINE_BOOL(log_colour, true, "When logging, try to use coloured output.") |
593 DEFINE_BOOL(ignore_asm_unimplemented_break, false, | 594 DEFINE_BOOL(ignore_asm_unimplemented_break, false, |
594 "Don't break for ASM_UNIMPLEMENTED_BREAK macros.") | 595 "Don't break for ASM_UNIMPLEMENTED_BREAK macros.") |
595 DEFINE_BOOL(trace_sim_messages, false, | 596 DEFINE_BOOL(trace_sim_messages, false, |
596 "Trace simulator debug messages. Implied by --trace-sim.") | 597 "Trace simulator debug messages. Implied by --trace-sim.") |
597 | 598 |
598 // isolate.cc | 599 // isolate.cc |
599 DEFINE_BOOL(stack_trace_on_illegal, false, | 600 DEFINE_BOOL(stack_trace_on_illegal, false, |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 #undef DEFINE_ALIAS_FLOAT | 915 #undef DEFINE_ALIAS_FLOAT |
915 #undef DEFINE_ALIAS_ARGS | 916 #undef DEFINE_ALIAS_ARGS |
916 | 917 |
917 #undef FLAG_MODE_DECLARE | 918 #undef FLAG_MODE_DECLARE |
918 #undef FLAG_MODE_DEFINE | 919 #undef FLAG_MODE_DEFINE |
919 #undef FLAG_MODE_DEFINE_DEFAULTS | 920 #undef FLAG_MODE_DEFINE_DEFAULTS |
920 #undef FLAG_MODE_META | 921 #undef FLAG_MODE_META |
921 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 922 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
922 | 923 |
923 #undef COMMA | 924 #undef COMMA |
OLD | NEW |