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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 "speed") | 282 "speed") |
283 | 283 |
284 DEFINE_VALUE_IMPLICATION(optimize_for_size, max_semi_space_size, 1) | 284 DEFINE_VALUE_IMPLICATION(optimize_for_size, max_semi_space_size, 1) |
285 | 285 |
286 // Flags for data representation optimizations | 286 // Flags for data representation optimizations |
287 DEFINE_BOOL(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 287 DEFINE_BOOL(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
288 DEFINE_BOOL(string_slices, true, "use string slices") | 288 DEFINE_BOOL(string_slices, true, "use string slices") |
289 | 289 |
290 // Flags for Ignition. | 290 // Flags for Ignition. |
291 DEFINE_BOOL(ignition, false, "use ignition interpreter") | 291 DEFINE_BOOL(ignition, false, "use ignition interpreter") |
292 DEFINE_IMPLICATION(ignition, vector_stores) | |
293 DEFINE_STRING(ignition_filter, "~~", "filter for ignition interpreter") | 292 DEFINE_STRING(ignition_filter, "~~", "filter for ignition interpreter") |
294 DEFINE_BOOL(ignition_fake_try_catch, false, | 293 DEFINE_BOOL(ignition_fake_try_catch, false, |
295 "enable fake try-catch-finally blocks in ignition for testing") | 294 "enable fake try-catch-finally blocks in ignition for testing") |
296 DEFINE_BOOL(ignition_fallback_on_eval_and_catch, false, | 295 DEFINE_BOOL(ignition_fallback_on_eval_and_catch, false, |
297 "fallback to full-codegen for functions which contain eval, catch" | 296 "fallback to full-codegen for functions which contain eval, catch" |
298 "and es6 blocks") | 297 "and es6 blocks") |
299 DEFINE_BOOL(print_bytecode, false, | 298 DEFINE_BOOL(print_bytecode, false, |
300 "print bytecode generated by ignition interpreter") | 299 "print bytecode generated by ignition interpreter") |
301 DEFINE_BOOL(trace_ignition_codegen, false, | 300 DEFINE_BOOL(trace_ignition_codegen, false, |
302 "trace the codegen of ignition interpreter bytecode handlers") | 301 "trace the codegen of ignition interpreter bytecode handlers") |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 DEFINE_BOOL(heap_profiler_trace_objects, false, | 704 DEFINE_BOOL(heap_profiler_trace_objects, false, |
706 "Dump heap object allocations/movements/size_updates") | 705 "Dump heap object allocations/movements/size_updates") |
707 | 706 |
708 | 707 |
709 // v8.cc | 708 // v8.cc |
710 DEFINE_BOOL(use_idle_notification, true, | 709 DEFINE_BOOL(use_idle_notification, true, |
711 "Use idle notification to reduce memory footprint.") | 710 "Use idle notification to reduce memory footprint.") |
712 // ic.cc | 711 // ic.cc |
713 DEFINE_BOOL(use_ic, true, "use inline caching") | 712 DEFINE_BOOL(use_ic, true, "use inline caching") |
714 DEFINE_BOOL(trace_ic, false, "trace inline cache state transitions") | 713 DEFINE_BOOL(trace_ic, false, "trace inline cache state transitions") |
715 DEFINE_BOOL(vector_stores, true, "use vectors for store ics") | |
716 | 714 |
717 // macro-assembler-ia32.cc | 715 // macro-assembler-ia32.cc |
718 DEFINE_BOOL(native_code_counters, false, | 716 DEFINE_BOOL(native_code_counters, false, |
719 "generate extra code for manipulating stats counters") | 717 "generate extra code for manipulating stats counters") |
720 | 718 |
721 // mark-compact.cc | 719 // mark-compact.cc |
722 DEFINE_BOOL(always_compact, false, "Perform compaction on every full GC") | 720 DEFINE_BOOL(always_compact, false, "Perform compaction on every full GC") |
723 DEFINE_BOOL(never_compact, false, | 721 DEFINE_BOOL(never_compact, false, |
724 "Never perform compaction on full GC - testing only") | 722 "Never perform compaction on full GC - testing only") |
725 DEFINE_BOOL(compact_code_space, true, "Compact code space on full collections") | 723 DEFINE_BOOL(compact_code_space, true, "Compact code space on full collections") |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 #undef DEFINE_ALIAS_FLOAT | 1119 #undef DEFINE_ALIAS_FLOAT |
1122 #undef DEFINE_ALIAS_ARGS | 1120 #undef DEFINE_ALIAS_ARGS |
1123 | 1121 |
1124 #undef FLAG_MODE_DECLARE | 1122 #undef FLAG_MODE_DECLARE |
1125 #undef FLAG_MODE_DEFINE | 1123 #undef FLAG_MODE_DEFINE |
1126 #undef FLAG_MODE_DEFINE_DEFAULTS | 1124 #undef FLAG_MODE_DEFINE_DEFAULTS |
1127 #undef FLAG_MODE_META | 1125 #undef FLAG_MODE_META |
1128 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1126 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1129 | 1127 |
1130 #undef COMMA | 1128 #undef COMMA |
OLD | NEW |