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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 MaybeBoolFlag flag; | 107 MaybeBoolFlag flag; |
108 flag.has_value = has_value; | 108 flag.has_value = has_value; |
109 flag.value = value; | 109 flag.value = value; |
110 return flag; | 110 return flag; |
111 } | 111 } |
112 bool has_value; | 112 bool has_value; |
113 bool value; | 113 bool value; |
114 }; | 114 }; |
115 #endif | 115 #endif |
116 | 116 |
| 117 #ifdef DEBUG |
| 118 #define DEBUG_BOOL true |
| 119 #else |
| 120 #define DEBUG_BOOL false |
| 121 #endif |
117 #if (defined CAN_USE_VFP3_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE) | 122 #if (defined CAN_USE_VFP3_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE) |
118 #define ENABLE_VFP3_DEFAULT true | 123 #define ENABLE_VFP3_DEFAULT true |
119 #else | 124 #else |
120 #define ENABLE_VFP3_DEFAULT false | 125 #define ENABLE_VFP3_DEFAULT false |
121 #endif | 126 #endif |
122 #if (defined CAN_USE_ARMV7_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE) | 127 #if (defined CAN_USE_ARMV7_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE) |
123 #define ENABLE_ARMV7_DEFAULT true | 128 #define ENABLE_ARMV7_DEFAULT true |
124 #else | 129 #else |
125 #define ENABLE_ARMV7_DEFAULT false | 130 #define ENABLE_ARMV7_DEFAULT false |
126 #endif | 131 #endif |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") | 382 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") |
378 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") | 383 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") |
379 DEFINE_IMPLICATION(trace_turbo_graph, trace_turbo) | 384 DEFINE_IMPLICATION(trace_turbo_graph, trace_turbo) |
380 DEFINE_STRING(trace_turbo_cfg_file, NULL, | 385 DEFINE_STRING(trace_turbo_cfg_file, NULL, |
381 "trace turbo cfg graph (for C1 visualizer) to a given file name") | 386 "trace turbo cfg graph (for C1 visualizer) to a given file name") |
382 DEFINE_BOOL(trace_turbo_types, true, "trace TurboFan's types") | 387 DEFINE_BOOL(trace_turbo_types, true, "trace TurboFan's types") |
383 DEFINE_BOOL(trace_turbo_scheduler, false, "trace TurboFan's scheduler") | 388 DEFINE_BOOL(trace_turbo_scheduler, false, "trace TurboFan's scheduler") |
384 DEFINE_BOOL(trace_turbo_reduction, false, "trace TurboFan's various reducers") | 389 DEFINE_BOOL(trace_turbo_reduction, false, "trace TurboFan's various reducers") |
385 DEFINE_BOOL(trace_turbo_jt, false, "trace TurboFan's jump threading") | 390 DEFINE_BOOL(trace_turbo_jt, false, "trace TurboFan's jump threading") |
386 DEFINE_BOOL(turbo_asm, true, "enable TurboFan for asm.js code") | 391 DEFINE_BOOL(turbo_asm, true, "enable TurboFan for asm.js code") |
387 DEFINE_BOOL(turbo_verify, false, "verify TurboFan graphs at each phase") | 392 DEFINE_BOOL(turbo_verify, DEBUG_BOOL, "verify TurboFan graphs at each phase") |
388 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") | 393 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") |
389 DEFINE_BOOL(turbo_types, true, "use typed lowering in TurboFan") | 394 DEFINE_BOOL(turbo_types, true, "use typed lowering in TurboFan") |
390 DEFINE_BOOL(turbo_source_positions, false, | 395 DEFINE_BOOL(turbo_source_positions, false, |
391 "track source code positions when building TurboFan IR") | 396 "track source code positions when building TurboFan IR") |
392 DEFINE_BOOL(context_specialization, false, | 397 DEFINE_BOOL(context_specialization, false, |
393 "enable context specialization in TurboFan") | 398 "enable context specialization in TurboFan") |
394 DEFINE_BOOL(turbo_deoptimization, false, "enable deoptimization in TurboFan") | 399 DEFINE_BOOL(turbo_deoptimization, false, "enable deoptimization in TurboFan") |
395 DEFINE_BOOL(turbo_inlining, false, "enable inlining in TurboFan") | 400 DEFINE_BOOL(turbo_inlining, false, "enable inlining in TurboFan") |
396 DEFINE_BOOL(turbo_inlining_intrinsics, false, | 401 DEFINE_BOOL(turbo_inlining_intrinsics, false, |
397 "enable inlining of intrinsics in TurboFan") | 402 "enable inlining of intrinsics in TurboFan") |
398 DEFINE_BOOL(trace_turbo_inlining, false, "trace TurboFan inlining") | 403 DEFINE_BOOL(trace_turbo_inlining, false, "trace TurboFan inlining") |
399 DEFINE_BOOL(loop_assignment_analysis, true, "perform loop assignment analysis") | 404 DEFINE_BOOL(loop_assignment_analysis, true, "perform loop assignment analysis") |
400 DEFINE_IMPLICATION(turbo_inlining_intrinsics, turbo_inlining) | 405 DEFINE_IMPLICATION(turbo_inlining_intrinsics, turbo_inlining) |
401 DEFINE_IMPLICATION(turbo_inlining, turbo_types) | 406 DEFINE_IMPLICATION(turbo_inlining, turbo_types) |
402 DEFINE_BOOL(turbo_profiling, false, "enable profiling in TurboFan") | 407 DEFINE_BOOL(turbo_profiling, false, "enable profiling in TurboFan") |
403 // TODO(dcarney): this is just for experimentation, remove when default. | 408 // TODO(dcarney): this is just for experimentation, remove when default. |
404 DEFINE_BOOL(turbo_delay_ssa_decon, false, | 409 DEFINE_BOOL(turbo_delay_ssa_decon, false, |
405 "delay ssa deconstruction in TurboFan register allocator") | 410 "delay ssa deconstruction in TurboFan register allocator") |
406 // TODO(dcarney): this is just for debugging, remove eventually. | 411 DEFINE_BOOL(turbo_verify_allocation, DEBUG_BOOL, |
| 412 "verify register allocation in TurboFan") |
407 DEFINE_BOOL(turbo_move_optimization, true, "optimize gap moves in TurboFan") | 413 DEFINE_BOOL(turbo_move_optimization, true, "optimize gap moves in TurboFan") |
408 DEFINE_BOOL(turbo_jt, true, "enable jump threading in TurboFan") | 414 DEFINE_BOOL(turbo_jt, true, "enable jump threading in TurboFan") |
409 DEFINE_BOOL(turbo_osr, false, "enable OSR in TurboFan") | 415 DEFINE_BOOL(turbo_osr, false, "enable OSR in TurboFan") |
410 | 416 |
411 DEFINE_INT(typed_array_max_size_in_heap, 64, | 417 DEFINE_INT(typed_array_max_size_in_heap, 64, |
412 "threshold for in-heap typed array") | 418 "threshold for in-heap typed array") |
413 | 419 |
414 // Profiler flags. | 420 // Profiler flags. |
415 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") | 421 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") |
416 // 0x1800 fits in the immediate field of an ARM instruction. | 422 // 0x1800 fits in the immediate field of an ARM instruction. |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 #undef DEFINE_ALIAS_FLOAT | 1002 #undef DEFINE_ALIAS_FLOAT |
997 #undef DEFINE_ALIAS_ARGS | 1003 #undef DEFINE_ALIAS_ARGS |
998 | 1004 |
999 #undef FLAG_MODE_DECLARE | 1005 #undef FLAG_MODE_DECLARE |
1000 #undef FLAG_MODE_DEFINE | 1006 #undef FLAG_MODE_DEFINE |
1001 #undef FLAG_MODE_DEFINE_DEFAULTS | 1007 #undef FLAG_MODE_DEFINE_DEFAULTS |
1002 #undef FLAG_MODE_META | 1008 #undef FLAG_MODE_META |
1003 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1009 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1004 | 1010 |
1005 #undef COMMA | 1011 #undef COMMA |
OLD | NEW |