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