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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 DEFINE_BOOL(enable_movw_movt, false, | 449 DEFINE_BOOL(enable_movw_movt, false, |
450 "enable loading 32-bit constant by means of movw/movt " | 450 "enable loading 32-bit constant by means of movw/movt " |
451 "instruction pairs (ARM only)") | 451 "instruction pairs (ARM only)") |
452 DEFINE_BOOL(enable_unaligned_accesses, true, | 452 DEFINE_BOOL(enable_unaligned_accesses, true, |
453 "enable unaligned accesses for ARMv7 (ARM only)") | 453 "enable unaligned accesses for ARMv7 (ARM only)") |
454 DEFINE_BOOL(enable_32dregs, ENABLE_32DREGS_DEFAULT, | 454 DEFINE_BOOL(enable_32dregs, ENABLE_32DREGS_DEFAULT, |
455 "enable use of d16-d31 registers on ARM - this requires VFP3") | 455 "enable use of d16-d31 registers on ARM - this requires VFP3") |
456 DEFINE_BOOL(enable_vldr_imm, false, | 456 DEFINE_BOOL(enable_vldr_imm, false, |
457 "enable use of constant pools for double immediate (ARM only)") | 457 "enable use of constant pools for double immediate (ARM only)") |
458 DEFINE_BOOL(force_long_branches, false, | 458 DEFINE_BOOL(force_long_branches, false, |
459 "force all emitted branches to be in long mode (MIPS only)") | 459 "force all emitted branches to be in long mode (MIPS/PPC only)") |
460 | 460 |
461 // bootstrapper.cc | 461 // bootstrapper.cc |
462 DEFINE_STRING(expose_natives_as, NULL, "expose natives in global object") | 462 DEFINE_STRING(expose_natives_as, NULL, "expose natives in global object") |
463 DEFINE_STRING(expose_debug_as, NULL, "expose debug in global object") | 463 DEFINE_STRING(expose_debug_as, NULL, "expose debug in global object") |
464 DEFINE_BOOL(expose_free_buffer, false, "expose freeBuffer extension") | 464 DEFINE_BOOL(expose_free_buffer, false, "expose freeBuffer extension") |
465 DEFINE_BOOL(expose_gc, false, "expose gc extension") | 465 DEFINE_BOOL(expose_gc, false, "expose gc extension") |
466 DEFINE_STRING(expose_gc_as, NULL, | 466 DEFINE_STRING(expose_gc_as, NULL, |
467 "expose gc extension under the specified name") | 467 "expose gc extension under the specified name") |
468 DEFINE_IMPLICATION(expose_gc_as, expose_gc) | 468 DEFINE_IMPLICATION(expose_gc_as, expose_gc) |
469 DEFINE_BOOL(expose_externalize_string, false, | 469 DEFINE_BOOL(expose_externalize_string, false, |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 // parser.cc | 652 // parser.cc |
653 DEFINE_BOOL(allow_natives_syntax, false, "allow natives syntax") | 653 DEFINE_BOOL(allow_natives_syntax, false, "allow natives syntax") |
654 DEFINE_BOOL(trace_parse, false, "trace parsing and preparsing") | 654 DEFINE_BOOL(trace_parse, false, "trace parsing and preparsing") |
655 | 655 |
656 // simulator-arm.cc, simulator-arm64.cc and simulator-mips.cc | 656 // simulator-arm.cc, simulator-arm64.cc and simulator-mips.cc |
657 DEFINE_BOOL(trace_sim, false, "Trace simulator execution") | 657 DEFINE_BOOL(trace_sim, false, "Trace simulator execution") |
658 DEFINE_BOOL(debug_sim, false, "Enable debugging the simulator") | 658 DEFINE_BOOL(debug_sim, false, "Enable debugging the simulator") |
659 DEFINE_BOOL(check_icache, false, | 659 DEFINE_BOOL(check_icache, false, |
660 "Check icache flushes in ARM and MIPS simulator") | 660 "Check icache flushes in ARM and MIPS simulator") |
661 DEFINE_INT(stop_sim_at, 0, "Simulator stop after x number of instructions") | 661 DEFINE_INT(stop_sim_at, 0, "Simulator stop after x number of instructions") |
662 #if defined(V8_TARGET_ARCH_ARM64) || defined(V8_TARGET_ARCH_MIPS64) | 662 #if defined(V8_TARGET_ARCH_ARM64) || defined(V8_TARGET_ARCH_MIPS64) || \ |
| 663 defined(V8_TARGET_ARCH_PPC64) |
663 DEFINE_INT(sim_stack_alignment, 16, | 664 DEFINE_INT(sim_stack_alignment, 16, |
664 "Stack alignment in bytes in simulator. This must be a power of two " | 665 "Stack alignment in bytes in simulator. This must be a power of two " |
665 "and it must be at least 16. 16 is default.") | 666 "and it must be at least 16. 16 is default.") |
666 #else | 667 #else |
667 DEFINE_INT(sim_stack_alignment, 8, | 668 DEFINE_INT(sim_stack_alignment, 8, |
668 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") | 669 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") |
669 #endif | 670 #endif |
670 DEFINE_INT(sim_stack_size, 2 * MB / KB, | 671 DEFINE_INT(sim_stack_size, 2 * MB / KB, |
671 "Stack size of the ARM64 and MIPS64 simulator " | 672 "Stack size of the ARM64 and MIPS64 simulator " |
672 "in kBytes (default is 2 MB)") | 673 "in kBytes (default is 2 MB)") |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 #undef DEFINE_ALIAS_FLOAT | 996 #undef DEFINE_ALIAS_FLOAT |
996 #undef DEFINE_ALIAS_ARGS | 997 #undef DEFINE_ALIAS_ARGS |
997 | 998 |
998 #undef FLAG_MODE_DECLARE | 999 #undef FLAG_MODE_DECLARE |
999 #undef FLAG_MODE_DEFINE | 1000 #undef FLAG_MODE_DEFINE |
1000 #undef FLAG_MODE_DEFINE_DEFAULTS | 1001 #undef FLAG_MODE_DEFINE_DEFAULTS |
1001 #undef FLAG_MODE_META | 1002 #undef FLAG_MODE_META |
1002 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1003 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1003 | 1004 |
1004 #undef COMMA | 1005 #undef COMMA |
OLD | NEW |