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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 // mksnapshot.cc | 902 // mksnapshot.cc |
903 DEFINE_STRING(startup_src, NULL, | 903 DEFINE_STRING(startup_src, NULL, |
904 "Write V8 startup as C++ src. (mksnapshot only)") | 904 "Write V8 startup as C++ src. (mksnapshot only)") |
905 DEFINE_STRING(startup_blob, NULL, | 905 DEFINE_STRING(startup_blob, NULL, |
906 "Write V8 startup blob file. (mksnapshot only)") | 906 "Write V8 startup blob file. (mksnapshot only)") |
907 | 907 |
908 // code-stubs-hydrogen.cc | 908 // code-stubs-hydrogen.cc |
909 DEFINE_BOOL(profile_hydrogen_code_stub_compilation, false, | 909 DEFINE_BOOL(profile_hydrogen_code_stub_compilation, false, |
910 "Print the time it takes to lazily compile hydrogen code stubs.") | 910 "Print the time it takes to lazily compile hydrogen code stubs.") |
911 | 911 |
912 DEFINE_BOOL(predictable, false, "enable predictable mode") | |
913 DEFINE_NEG_IMPLICATION(predictable, concurrent_recompilation) | |
914 DEFINE_NEG_IMPLICATION(predictable, concurrent_sweeping) | |
915 DEFINE_NEG_IMPLICATION(predictable, parallel_compaction) | |
916 DEFINE_NEG_IMPLICATION(predictable, memory_reducer) | |
917 | |
918 // mark-compact.cc | 912 // mark-compact.cc |
919 DEFINE_BOOL(force_marking_deque_overflows, false, | 913 DEFINE_BOOL(force_marking_deque_overflows, false, |
920 "force overflows of marking deque by reducing it's size " | 914 "force overflows of marking deque by reducing it's size " |
921 "to 64 words") | 915 "to 64 words") |
922 | 916 |
923 DEFINE_BOOL(stress_compaction, false, | 917 DEFINE_BOOL(stress_compaction, false, |
924 "stress the GC compactor to flush out bugs (implies " | 918 "stress the GC compactor to flush out bugs (implies " |
925 "--force_marking_deque_overflows)") | 919 "--force_marking_deque_overflows)") |
926 | 920 |
927 DEFINE_BOOL(manual_evacuation_candidates_selection, false, | 921 DEFINE_BOOL(manual_evacuation_candidates_selection, false, |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 DEFINE_IMPLICATION(print_all_code, print_unopt_code) | 1145 DEFINE_IMPLICATION(print_all_code, print_unopt_code) |
1152 DEFINE_IMPLICATION(print_all_code, print_code_verbose) | 1146 DEFINE_IMPLICATION(print_all_code, print_code_verbose) |
1153 DEFINE_IMPLICATION(print_all_code, print_builtin_code) | 1147 DEFINE_IMPLICATION(print_all_code, print_builtin_code) |
1154 DEFINE_IMPLICATION(print_all_code, print_code_stubs) | 1148 DEFINE_IMPLICATION(print_all_code, print_code_stubs) |
1155 DEFINE_IMPLICATION(print_all_code, code_comments) | 1149 DEFINE_IMPLICATION(print_all_code, code_comments) |
1156 #ifdef DEBUG | 1150 #ifdef DEBUG |
1157 DEFINE_IMPLICATION(print_all_code, trace_codegen) | 1151 DEFINE_IMPLICATION(print_all_code, trace_codegen) |
1158 #endif | 1152 #endif |
1159 #endif | 1153 #endif |
1160 | 1154 |
| 1155 #undef FLAG |
| 1156 #define FLAG FLAG_FULL |
1161 | 1157 |
1162 // | 1158 // |
1163 // VERIFY_PREDICTABLE related flags | 1159 // Threading related flags. |
1164 // | 1160 // |
| 1161 |
| 1162 DEFINE_BOOL(single_threaded, false, "disable the use of background tasks") |
| 1163 DEFINE_NEG_IMPLICATION(single_threaded, concurrent_recompilation) |
| 1164 DEFINE_NEG_IMPLICATION(single_threaded, concurrent_sweeping) |
| 1165 DEFINE_NEG_IMPLICATION(single_threaded, parallel_compaction) |
| 1166 |
| 1167 // |
| 1168 // Predictable mode related flags. |
| 1169 // |
| 1170 |
| 1171 DEFINE_BOOL(predictable, false, "enable predictable mode") |
| 1172 DEFINE_IMPLICATION(predictable, single_threaded) |
| 1173 DEFINE_NEG_IMPLICATION(predictable, memory_reducer) |
| 1174 |
1165 #undef FLAG | 1175 #undef FLAG |
1166 | 1176 |
1167 #ifdef VERIFY_PREDICTABLE | 1177 #ifdef VERIFY_PREDICTABLE |
1168 #define FLAG FLAG_FULL | 1178 #define FLAG FLAG_FULL |
1169 #else | 1179 #else |
1170 #define FLAG FLAG_READONLY | 1180 #define FLAG FLAG_READONLY |
1171 #endif | 1181 #endif |
1172 | 1182 |
1173 DEFINE_BOOL(verify_predictable, false, | 1183 DEFINE_BOOL(verify_predictable, false, |
1174 "this mode is used for checking that V8 behaves predictably") | 1184 "this mode is used for checking that V8 behaves predictably") |
1175 DEFINE_INT(dump_allocations_digest_at_alloc, -1, | 1185 DEFINE_INT(dump_allocations_digest_at_alloc, -1, |
1176 "dump allocations digest each n-th allocation") | 1186 "dump allocations digest each n-th allocation") |
1177 | 1187 |
1178 | |
1179 // | 1188 // |
1180 // Read-only flags | 1189 // Read-only flags |
1181 // | 1190 // |
1182 #undef FLAG | 1191 #undef FLAG |
1183 #define FLAG FLAG_READONLY | 1192 #define FLAG FLAG_READONLY |
1184 | 1193 |
1185 // assembler.h | 1194 // assembler.h |
1186 DEFINE_BOOL(enable_embedded_constant_pool, V8_EMBEDDED_CONSTANT_POOL, | 1195 DEFINE_BOOL(enable_embedded_constant_pool, V8_EMBEDDED_CONSTANT_POOL, |
1187 "enable use of embedded constant pools (ARM/PPC only)") | 1196 "enable use of embedded constant pools (ARM/PPC only)") |
1188 | 1197 |
1189 DEFINE_BOOL(unbox_double_fields, V8_DOUBLE_FIELDS_UNBOXING, | 1198 DEFINE_BOOL(unbox_double_fields, V8_DOUBLE_FIELDS_UNBOXING, |
1190 "enable in-object double fields unboxing (64-bit only)") | 1199 "enable in-object double fields unboxing (64-bit only)") |
1191 DEFINE_IMPLICATION(unbox_double_fields, track_double_fields) | 1200 DEFINE_IMPLICATION(unbox_double_fields, track_double_fields) |
1192 | 1201 |
1193 | |
1194 // Cleanup... | 1202 // Cleanup... |
1195 #undef FLAG_FULL | 1203 #undef FLAG_FULL |
1196 #undef FLAG_READONLY | 1204 #undef FLAG_READONLY |
1197 #undef FLAG | 1205 #undef FLAG |
1198 #undef FLAG_ALIAS | 1206 #undef FLAG_ALIAS |
1199 | 1207 |
1200 #undef DEFINE_BOOL | 1208 #undef DEFINE_BOOL |
1201 #undef DEFINE_MAYBE_BOOL | 1209 #undef DEFINE_MAYBE_BOOL |
1202 #undef DEFINE_INT | 1210 #undef DEFINE_INT |
1203 #undef DEFINE_STRING | 1211 #undef DEFINE_STRING |
1204 #undef DEFINE_FLOAT | 1212 #undef DEFINE_FLOAT |
1205 #undef DEFINE_ARGS | 1213 #undef DEFINE_ARGS |
1206 #undef DEFINE_IMPLICATION | 1214 #undef DEFINE_IMPLICATION |
1207 #undef DEFINE_NEG_IMPLICATION | 1215 #undef DEFINE_NEG_IMPLICATION |
1208 #undef DEFINE_NEG_VALUE_IMPLICATION | 1216 #undef DEFINE_NEG_VALUE_IMPLICATION |
1209 #undef DEFINE_VALUE_IMPLICATION | 1217 #undef DEFINE_VALUE_IMPLICATION |
1210 #undef DEFINE_ALIAS_BOOL | 1218 #undef DEFINE_ALIAS_BOOL |
1211 #undef DEFINE_ALIAS_INT | 1219 #undef DEFINE_ALIAS_INT |
1212 #undef DEFINE_ALIAS_STRING | 1220 #undef DEFINE_ALIAS_STRING |
1213 #undef DEFINE_ALIAS_FLOAT | 1221 #undef DEFINE_ALIAS_FLOAT |
1214 #undef DEFINE_ALIAS_ARGS | 1222 #undef DEFINE_ALIAS_ARGS |
1215 | 1223 |
1216 #undef FLAG_MODE_DECLARE | 1224 #undef FLAG_MODE_DECLARE |
1217 #undef FLAG_MODE_DEFINE | 1225 #undef FLAG_MODE_DEFINE |
1218 #undef FLAG_MODE_DEFINE_DEFAULTS | 1226 #undef FLAG_MODE_DEFINE_DEFAULTS |
1219 #undef FLAG_MODE_META | 1227 #undef FLAG_MODE_META |
1220 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1228 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1221 | 1229 |
1222 #undef COMMA | 1230 #undef COMMA |
OLD | NEW |