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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
563 | 563 |
564 // objects.cc | 564 // objects.cc |
565 DEFINE_BOOL(use_verbose_printer, true, "allows verbose printing") | 565 DEFINE_BOOL(use_verbose_printer, true, "allows verbose printing") |
566 | 566 |
567 // parser.cc | 567 // parser.cc |
568 DEFINE_BOOL(allow_natives_syntax, false, "allow natives syntax") | 568 DEFINE_BOOL(allow_natives_syntax, false, "allow natives syntax") |
569 DEFINE_BOOL(trace_parse, false, "trace parsing and preparsing") | 569 DEFINE_BOOL(trace_parse, false, "trace parsing and preparsing") |
570 | 570 |
571 // simulator-arm.cc, simulator-arm64.cc and simulator-mips.cc | 571 // simulator-arm.cc, simulator-arm64.cc and simulator-mips.cc |
572 DEFINE_BOOL(trace_sim, false, "Trace simulator execution") | 572 DEFINE_BOOL(trace_sim, false, "Trace simulator execution") |
573 DEFINE_INT(trace_sim_at, 0, | |
574 "Simulator start tracing after x number of instructions") | |
danno
2014/07/08 09:01:19
Could you please factor this flag and submit is se
dusmil
2014/07/08 11:03:41
Done.
dusmil
2014/07/08 11:03:41
Flag and feature removed. It was used only for Mip
| |
573 DEFINE_BOOL(debug_sim, false, "Enable debugging the simulator") | 575 DEFINE_BOOL(debug_sim, false, "Enable debugging the simulator") |
574 DEFINE_BOOL(check_icache, false, | 576 DEFINE_BOOL(check_icache, false, |
575 "Check icache flushes in ARM and MIPS simulator") | 577 "Check icache flushes in ARM and MIPS simulator") |
576 DEFINE_INT(stop_sim_at, 0, "Simulator stop after x number of instructions") | 578 DEFINE_INT(stop_sim_at, 0, "Simulator stop after x number of instructions") |
577 #ifdef V8_TARGET_ARCH_ARM64 | 579 #if defined(V8_TARGET_ARCH_ARM64) || defined(V8_TARGET_ARCH_MIPS64) |
578 DEFINE_INT(sim_stack_alignment, 16, | 580 DEFINE_INT(sim_stack_alignment, 16, |
579 "Stack alignment in bytes in simulator. This must be a power of two " | 581 "Stack alignment in bytes in simulator. This must be a power of two " |
580 "and it must be at least 16. 16 is default.") | 582 "and it must be at least 16. 16 is default.") |
581 #else | 583 #else |
582 DEFINE_INT(sim_stack_alignment, 8, | 584 DEFINE_INT(sim_stack_alignment, 8, |
583 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") | 585 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") |
584 #endif | 586 #endif |
585 DEFINE_INT(sim_stack_size, 2 * MB / KB, | 587 DEFINE_INT(sim_stack_size, 2 * MB / KB, |
586 "Stack size of the ARM64 simulator in kBytes (default is 2 MB)") | 588 "Stack size of the ARM64 and MIPS64 simulator " |
589 "in kBytes (default is 2 MB)") | |
587 DEFINE_BOOL(log_regs_modified, true, | 590 DEFINE_BOOL(log_regs_modified, true, |
588 "When logging register values, only print modified registers.") | 591 "When logging register values, only print modified registers.") |
589 DEFINE_BOOL(log_colour, true, "When logging, try to use coloured output.") | 592 DEFINE_BOOL(log_colour, true, "When logging, try to use coloured output.") |
590 DEFINE_BOOL(ignore_asm_unimplemented_break, false, | 593 DEFINE_BOOL(ignore_asm_unimplemented_break, false, |
591 "Don't break for ASM_UNIMPLEMENTED_BREAK macros.") | 594 "Don't break for ASM_UNIMPLEMENTED_BREAK macros.") |
592 DEFINE_BOOL(trace_sim_messages, false, | 595 DEFINE_BOOL(trace_sim_messages, false, |
593 "Trace simulator debug messages. Implied by --trace-sim.") | 596 "Trace simulator debug messages. Implied by --trace-sim.") |
594 | 597 |
595 // isolate.cc | 598 // isolate.cc |
596 DEFINE_BOOL(stack_trace_on_illegal, false, | 599 DEFINE_BOOL(stack_trace_on_illegal, false, |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
914 #undef DEFINE_ALIAS_FLOAT | 917 #undef DEFINE_ALIAS_FLOAT |
915 #undef DEFINE_ALIAS_ARGS | 918 #undef DEFINE_ALIAS_ARGS |
916 | 919 |
917 #undef FLAG_MODE_DECLARE | 920 #undef FLAG_MODE_DECLARE |
918 #undef FLAG_MODE_DEFINE | 921 #undef FLAG_MODE_DEFINE |
919 #undef FLAG_MODE_DEFINE_DEFAULTS | 922 #undef FLAG_MODE_DEFINE_DEFAULTS |
920 #undef FLAG_MODE_META | 923 #undef FLAG_MODE_META |
921 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 924 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
922 | 925 |
923 #undef COMMA | 926 #undef COMMA |
OLD | NEW |