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 "semi-spaces") | 570 "semi-spaces") |
571 DEFINE_INT(semi_space_growth_factor, 2, "factor by which to grow the new space") | 571 DEFINE_INT(semi_space_growth_factor, 2, "factor by which to grow the new space") |
572 DEFINE_BOOL(experimental_new_space_growth_heuristic, false, | 572 DEFINE_BOOL(experimental_new_space_growth_heuristic, false, |
573 "Grow the new space based on the percentage of survivors instead " | 573 "Grow the new space based on the percentage of survivors instead " |
574 "of their absolute value.") | 574 "of their absolute value.") |
575 DEFINE_INT(max_old_space_size, 0, "max size of the old space (in Mbytes)") | 575 DEFINE_INT(max_old_space_size, 0, "max size of the old space (in Mbytes)") |
576 DEFINE_INT(initial_old_space_size, 0, "initial old space size (in Mbytes)") | 576 DEFINE_INT(initial_old_space_size, 0, "initial old space size (in Mbytes)") |
577 DEFINE_INT(max_executable_size, 0, "max size of executable memory (in Mbytes)") | 577 DEFINE_INT(max_executable_size, 0, "max size of executable memory (in Mbytes)") |
578 DEFINE_BOOL(gc_global, false, "always perform global GCs") | 578 DEFINE_BOOL(gc_global, false, "always perform global GCs") |
579 DEFINE_INT(gc_interval, -1, "garbage collect after <n> allocations") | 579 DEFINE_INT(gc_interval, -1, "garbage collect after <n> allocations") |
| 580 DEFINE_INT(retain_maps_for_n_gc, 2, |
| 581 "keeps maps alive for <n> old space garbage collections") |
580 DEFINE_BOOL(trace_gc, false, | 582 DEFINE_BOOL(trace_gc, false, |
581 "print one trace line following each garbage collection") | 583 "print one trace line following each garbage collection") |
582 DEFINE_BOOL(trace_gc_nvp, false, | 584 DEFINE_BOOL(trace_gc_nvp, false, |
583 "print one detailed trace line in name=value format " | 585 "print one detailed trace line in name=value format " |
584 "after each garbage collection") | 586 "after each garbage collection") |
585 DEFINE_BOOL(trace_gc_ignore_scavenger, false, | 587 DEFINE_BOOL(trace_gc_ignore_scavenger, false, |
586 "do not print trace line after scavenger collection") | 588 "do not print trace line after scavenger collection") |
587 DEFINE_BOOL(trace_idle_notification, false, | 589 DEFINE_BOOL(trace_idle_notification, false, |
588 "print one trace line following each idle notification") | 590 "print one trace line following each idle notification") |
589 DEFINE_BOOL(trace_idle_notification_verbose, false, | 591 DEFINE_BOOL(trace_idle_notification_verbose, false, |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 #undef DEFINE_ALIAS_FLOAT | 1032 #undef DEFINE_ALIAS_FLOAT |
1031 #undef DEFINE_ALIAS_ARGS | 1033 #undef DEFINE_ALIAS_ARGS |
1032 | 1034 |
1033 #undef FLAG_MODE_DECLARE | 1035 #undef FLAG_MODE_DECLARE |
1034 #undef FLAG_MODE_DEFINE | 1036 #undef FLAG_MODE_DEFINE |
1035 #undef FLAG_MODE_DEFINE_DEFAULTS | 1037 #undef FLAG_MODE_DEFINE_DEFAULTS |
1036 #undef FLAG_MODE_META | 1038 #undef FLAG_MODE_META |
1037 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1039 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1038 | 1040 |
1039 #undef COMMA | 1041 #undef COMMA |
OLD | NEW |