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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 DEFINE_BOOL(trace_code_flushing, false, "trace code flushing progress") | 524 DEFINE_BOOL(trace_code_flushing, false, "trace code flushing progress") |
525 DEFINE_BOOL(age_code, true, | 525 DEFINE_BOOL(age_code, true, |
526 "track un-executed functions to age code and flush only " | 526 "track un-executed functions to age code and flush only " |
527 "old code (required for code flushing)") | 527 "old code (required for code flushing)") |
528 DEFINE_BOOL(incremental_marking, true, "use incremental marking") | 528 DEFINE_BOOL(incremental_marking, true, "use incremental marking") |
529 DEFINE_BOOL(incremental_marking_steps, true, "do incremental marking steps") | 529 DEFINE_BOOL(incremental_marking_steps, true, "do incremental marking steps") |
530 DEFINE_BOOL(trace_incremental_marking, false, | 530 DEFINE_BOOL(trace_incremental_marking, false, |
531 "trace progress of the incremental marking") | 531 "trace progress of the incremental marking") |
532 DEFINE_BOOL(track_gc_object_stats, false, | 532 DEFINE_BOOL(track_gc_object_stats, false, |
533 "track object counts and memory usage") | 533 "track object counts and memory usage") |
534 DEFINE_BOOL(parallel_sweeping, false, "enable parallel sweeping") | |
535 DEFINE_BOOL(concurrent_sweeping, true, "enable concurrent sweeping") | |
536 DEFINE_INT(sweeper_threads, 0, | |
537 "number of parallel and concurrent sweeping threads") | |
538 #ifdef VERIFY_HEAP | 534 #ifdef VERIFY_HEAP |
539 DEFINE_BOOL(verify_heap, false, "verify heap pointers before and after GC") | 535 DEFINE_BOOL(verify_heap, false, "verify heap pointers before and after GC") |
540 #endif | 536 #endif |
541 | 537 |
542 | 538 |
543 // heap-snapshot-generator.cc | 539 // heap-snapshot-generator.cc |
544 DEFINE_BOOL(heap_profiler_trace_objects, false, | 540 DEFINE_BOOL(heap_profiler_trace_objects, false, |
545 "Dump heap object allocations/movements/size_updates") | 541 "Dump heap object allocations/movements/size_updates") |
546 | 542 |
547 | 543 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 "Write V8 startup blob file. " | 652 "Write V8 startup blob file. " |
657 "(mksnapshot only)") | 653 "(mksnapshot only)") |
658 | 654 |
659 // code-stubs-hydrogen.cc | 655 // code-stubs-hydrogen.cc |
660 DEFINE_BOOL(profile_hydrogen_code_stub_compilation, false, | 656 DEFINE_BOOL(profile_hydrogen_code_stub_compilation, false, |
661 "Print the time it takes to lazily compile hydrogen code stubs.") | 657 "Print the time it takes to lazily compile hydrogen code stubs.") |
662 | 658 |
663 DEFINE_BOOL(predictable, false, "enable predictable mode") | 659 DEFINE_BOOL(predictable, false, "enable predictable mode") |
664 DEFINE_NEG_IMPLICATION(predictable, concurrent_recompilation) | 660 DEFINE_NEG_IMPLICATION(predictable, concurrent_recompilation) |
665 DEFINE_NEG_IMPLICATION(predictable, concurrent_osr) | 661 DEFINE_NEG_IMPLICATION(predictable, concurrent_osr) |
666 DEFINE_NEG_IMPLICATION(predictable, concurrent_sweeping) | |
667 DEFINE_NEG_IMPLICATION(predictable, parallel_sweeping) | |
668 | 662 |
669 | 663 |
670 // | 664 // |
671 // Dev shell flags | 665 // Dev shell flags |
672 // | 666 // |
673 | 667 |
674 DEFINE_BOOL(help, false, "Print usage message, including flags, on console") | 668 DEFINE_BOOL(help, false, "Print usage message, including flags, on console") |
675 DEFINE_BOOL(dump_counters, false, "Dump counters on exit") | 669 DEFINE_BOOL(dump_counters, false, "Dump counters on exit") |
676 | 670 |
677 DEFINE_BOOL(debugger, false, "Enable JavaScript debugger") | 671 DEFINE_BOOL(debugger, false, "Enable JavaScript debugger") |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 #undef DEFINE_ALIAS_FLOAT | 926 #undef DEFINE_ALIAS_FLOAT |
933 #undef DEFINE_ALIAS_ARGS | 927 #undef DEFINE_ALIAS_ARGS |
934 | 928 |
935 #undef FLAG_MODE_DECLARE | 929 #undef FLAG_MODE_DECLARE |
936 #undef FLAG_MODE_DEFINE | 930 #undef FLAG_MODE_DEFINE |
937 #undef FLAG_MODE_DEFINE_DEFAULTS | 931 #undef FLAG_MODE_DEFINE_DEFAULTS |
938 #undef FLAG_MODE_META | 932 #undef FLAG_MODE_META |
939 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 933 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
940 | 934 |
941 #undef COMMA | 935 #undef COMMA |
OLD | NEW |