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 // heap.cc | 524 // heap.cc |
525 DEFINE_INT(min_semi_space_size, 0, | 525 DEFINE_INT(min_semi_space_size, 0, |
526 "min size of a semi-space (in MBytes), the new space consists of two" | 526 "min size of a semi-space (in MBytes), the new space consists of two" |
527 "semi-spaces") | 527 "semi-spaces") |
528 DEFINE_INT(target_semi_space_size, 0, | 528 DEFINE_INT(target_semi_space_size, 0, |
529 "target size of a semi-space (in MBytes) before triggering a GC") | 529 "target size of a semi-space (in MBytes) before triggering a GC") |
530 DEFINE_INT(max_semi_space_size, 0, | 530 DEFINE_INT(max_semi_space_size, 0, |
531 "max size of a semi-space (in MBytes), the new space consists of two" | 531 "max size of a semi-space (in MBytes), the new space consists of two" |
532 "semi-spaces") | 532 "semi-spaces") |
533 DEFINE_INT(semi_space_growth_factor, 2, "factor by which to grow the new space") | 533 DEFINE_INT(semi_space_growth_factor, 2, "factor by which to grow the new space") |
| 534 DEFINE_BOOL(experimental_new_space_growth_heuristic, false, |
| 535 "Grow the new space based on the percentage of survivors instead " |
| 536 "of their absolute value.") |
534 DEFINE_INT(max_old_space_size, 0, "max size of the old space (in Mbytes)") | 537 DEFINE_INT(max_old_space_size, 0, "max size of the old space (in Mbytes)") |
535 DEFINE_INT(max_executable_size, 0, "max size of executable memory (in Mbytes)") | 538 DEFINE_INT(max_executable_size, 0, "max size of executable memory (in Mbytes)") |
536 DEFINE_BOOL(gc_global, false, "always perform global GCs") | 539 DEFINE_BOOL(gc_global, false, "always perform global GCs") |
537 DEFINE_INT(gc_interval, -1, "garbage collect after <n> allocations") | 540 DEFINE_INT(gc_interval, -1, "garbage collect after <n> allocations") |
538 DEFINE_BOOL(trace_gc, false, | 541 DEFINE_BOOL(trace_gc, false, |
539 "print one trace line following each garbage collection") | 542 "print one trace line following each garbage collection") |
540 DEFINE_BOOL(trace_gc_nvp, false, | 543 DEFINE_BOOL(trace_gc_nvp, false, |
541 "print one detailed trace line in name=value format " | 544 "print one detailed trace line in name=value format " |
542 "after each garbage collection") | 545 "after each garbage collection") |
543 DEFINE_BOOL(trace_gc_ignore_scavenger, false, | 546 DEFINE_BOOL(trace_gc_ignore_scavenger, false, |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 #undef DEFINE_ALIAS_FLOAT | 983 #undef DEFINE_ALIAS_FLOAT |
981 #undef DEFINE_ALIAS_ARGS | 984 #undef DEFINE_ALIAS_ARGS |
982 | 985 |
983 #undef FLAG_MODE_DECLARE | 986 #undef FLAG_MODE_DECLARE |
984 #undef FLAG_MODE_DEFINE | 987 #undef FLAG_MODE_DEFINE |
985 #undef FLAG_MODE_DEFINE_DEFAULTS | 988 #undef FLAG_MODE_DEFINE_DEFAULTS |
986 #undef FLAG_MODE_META | 989 #undef FLAG_MODE_META |
987 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 990 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
988 | 991 |
989 #undef COMMA | 992 #undef COMMA |
OLD | NEW |