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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 DEFINE_BOOL(use_escape_analysis, true, "use hydrogen escape analysis") | 353 DEFINE_BOOL(use_escape_analysis, true, "use hydrogen escape analysis") |
354 DEFINE_BOOL(use_allocation_folding, true, "use allocation folding") | 354 DEFINE_BOOL(use_allocation_folding, true, "use allocation folding") |
355 DEFINE_BOOL(use_local_allocation_folding, false, "only fold in basic blocks") | 355 DEFINE_BOOL(use_local_allocation_folding, false, "only fold in basic blocks") |
356 DEFINE_BOOL(use_write_barrier_elimination, true, | 356 DEFINE_BOOL(use_write_barrier_elimination, true, |
357 "eliminate write barriers targeting allocations in optimized code") | 357 "eliminate write barriers targeting allocations in optimized code") |
358 DEFINE_INT(max_inlining_levels, 5, "maximum number of inlining levels") | 358 DEFINE_INT(max_inlining_levels, 5, "maximum number of inlining levels") |
359 DEFINE_INT(max_inlined_source_size, 600, | 359 DEFINE_INT(max_inlined_source_size, 600, |
360 "maximum source size in bytes considered for a single inlining") | 360 "maximum source size in bytes considered for a single inlining") |
361 DEFINE_INT(max_inlined_nodes, 200, | 361 DEFINE_INT(max_inlined_nodes, 200, |
362 "maximum number of AST nodes considered for a single inlining") | 362 "maximum number of AST nodes considered for a single inlining") |
| 363 DEFINE_INT(max_inlined_nodes_absolute, 1600, |
| 364 "maximum absolute number of AST nodes considered for inlining " |
| 365 "(incl. small functions)") |
363 DEFINE_INT(max_inlined_nodes_cumulative, 400, | 366 DEFINE_INT(max_inlined_nodes_cumulative, 400, |
364 "maximum cumulative number of AST nodes considered for inlining") | 367 "maximum cumulative number of AST nodes considered for inlining") |
365 DEFINE_INT(max_inlined_nodes_small, 10, | 368 DEFINE_INT(max_inlined_nodes_small, 10, |
366 "maximum number of AST nodes considered for small function inlining") | 369 "maximum number of AST nodes considered for small function inlining") |
367 DEFINE_FLOAT(min_inlining_frequency, 0.15, "minimum frequency for inlining") | 370 DEFINE_FLOAT(min_inlining_frequency, 0.15, "minimum frequency for inlining") |
368 DEFINE_BOOL(loop_invariant_code_motion, true, "loop invariant code motion") | 371 DEFINE_BOOL(loop_invariant_code_motion, true, "loop invariant code motion") |
369 DEFINE_BOOL(fast_math, true, "faster (but maybe less accurate) math functions") | 372 DEFINE_BOOL(fast_math, true, "faster (but maybe less accurate) math functions") |
370 DEFINE_BOOL(hydrogen_stats, false, "print statistics for hydrogen") | 373 DEFINE_BOOL(hydrogen_stats, false, "print statistics for hydrogen") |
371 DEFINE_BOOL(trace_check_elimination, false, "trace check elimination phase") | 374 DEFINE_BOOL(trace_check_elimination, false, "trace check elimination phase") |
372 DEFINE_BOOL(trace_environment_liveness, false, | 375 DEFINE_BOOL(trace_environment_liveness, false, |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 #undef DEFINE_ALIAS_FLOAT | 1366 #undef DEFINE_ALIAS_FLOAT |
1364 #undef DEFINE_ALIAS_ARGS | 1367 #undef DEFINE_ALIAS_ARGS |
1365 | 1368 |
1366 #undef FLAG_MODE_DECLARE | 1369 #undef FLAG_MODE_DECLARE |
1367 #undef FLAG_MODE_DEFINE | 1370 #undef FLAG_MODE_DEFINE |
1368 #undef FLAG_MODE_DEFINE_DEFAULTS | 1371 #undef FLAG_MODE_DEFINE_DEFAULTS |
1369 #undef FLAG_MODE_META | 1372 #undef FLAG_MODE_META |
1370 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1373 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1371 | 1374 |
1372 #undef COMMA | 1375 #undef COMMA |
OLD | NEW |