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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 "analyze liveness of environment slots and zap dead values") | 284 "analyze liveness of environment slots and zap dead values") |
285 DEFINE_BOOL(load_elimination, true, "use load elimination") | 285 DEFINE_BOOL(load_elimination, true, "use load elimination") |
286 DEFINE_BOOL(check_elimination, true, "use check elimination") | 286 DEFINE_BOOL(check_elimination, true, "use check elimination") |
287 DEFINE_BOOL(store_elimination, false, "use store elimination") | 287 DEFINE_BOOL(store_elimination, false, "use store elimination") |
288 DEFINE_BOOL(dead_code_elimination, true, "use dead code elimination") | 288 DEFINE_BOOL(dead_code_elimination, true, "use dead code elimination") |
289 DEFINE_BOOL(fold_constants, true, "use constant folding") | 289 DEFINE_BOOL(fold_constants, true, "use constant folding") |
290 DEFINE_BOOL(trace_dead_code_elimination, false, "trace dead code elimination") | 290 DEFINE_BOOL(trace_dead_code_elimination, false, "trace dead code elimination") |
291 DEFINE_BOOL(unreachable_code_elimination, true, "eliminate unreachable code") | 291 DEFINE_BOOL(unreachable_code_elimination, true, "eliminate unreachable code") |
292 DEFINE_BOOL(trace_osr, false, "trace on-stack replacement") | 292 DEFINE_BOOL(trace_osr, false, "trace on-stack replacement") |
293 DEFINE_INT(stress_runs, 0, "number of stress runs") | 293 DEFINE_INT(stress_runs, 0, "number of stress runs") |
294 DEFINE_BOOL(optimize_closures, true, "optimize closures") | |
295 DEFINE_BOOL(lookup_sample_by_shared, true, | 294 DEFINE_BOOL(lookup_sample_by_shared, true, |
296 "when picking a function to optimize, watch for shared function " | 295 "when picking a function to optimize, watch for shared function " |
297 "info, not JSFunction itself") | 296 "info, not JSFunction itself") |
298 DEFINE_BOOL(cache_optimized_code, true, "cache optimized code for closures") | 297 DEFINE_BOOL(cache_optimized_code, true, "cache optimized code for closures") |
299 DEFINE_BOOL(flush_optimized_code_cache, true, | 298 DEFINE_BOOL(flush_optimized_code_cache, true, |
300 "flushes the cache of optimized code for closures on every GC") | 299 "flushes the cache of optimized code for closures on every GC") |
301 DEFINE_BOOL(inline_construct, true, "inline constructor calls") | 300 DEFINE_BOOL(inline_construct, true, "inline constructor calls") |
302 DEFINE_BOOL(inline_arguments, true, "inline functions with arguments object") | 301 DEFINE_BOOL(inline_arguments, true, "inline functions with arguments object") |
303 DEFINE_BOOL(inline_accessors, true, "inline JavaScript accessors") | 302 DEFINE_BOOL(inline_accessors, true, "inline JavaScript accessors") |
304 DEFINE_INT(escape_analysis_iterations, 2, | 303 DEFINE_INT(escape_analysis_iterations, 2, |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 #undef DEFINE_ALIAS_FLOAT | 933 #undef DEFINE_ALIAS_FLOAT |
935 #undef DEFINE_ALIAS_ARGS | 934 #undef DEFINE_ALIAS_ARGS |
936 | 935 |
937 #undef FLAG_MODE_DECLARE | 936 #undef FLAG_MODE_DECLARE |
938 #undef FLAG_MODE_DEFINE | 937 #undef FLAG_MODE_DEFINE |
939 #undef FLAG_MODE_DEFINE_DEFAULTS | 938 #undef FLAG_MODE_DEFINE_DEFAULTS |
940 #undef FLAG_MODE_META | 939 #undef FLAG_MODE_META |
941 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 940 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
942 | 941 |
943 #undef COMMA | 942 #undef COMMA |
OLD | NEW |