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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 #else | 152 #else |
153 # define ENABLE_LOG_COLOUR true | 153 # define ENABLE_LOG_COLOUR true |
154 #endif | 154 #endif |
155 | 155 |
156 #define DEFINE_BOOL(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) | 156 #define DEFINE_BOOL(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) |
157 #define DEFINE_BOOL_READONLY(nam, def, cmt) \ | 157 #define DEFINE_BOOL_READONLY(nam, def, cmt) \ |
158 FLAG_READONLY(BOOL, bool, nam, def, cmt) | 158 FLAG_READONLY(BOOL, bool, nam, def, cmt) |
159 #define DEFINE_MAYBE_BOOL(nam, cmt) \ | 159 #define DEFINE_MAYBE_BOOL(nam, cmt) \ |
160 FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, {false COMMA false}, cmt) | 160 FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, {false COMMA false}, cmt) |
161 #define DEFINE_INT(nam, def, cmt) FLAG(INT, int, nam, def, cmt) | 161 #define DEFINE_INT(nam, def, cmt) FLAG(INT, int, nam, def, cmt) |
| 162 #define DEFINE_UINT(nam, def, cmt) FLAG(UINT, unsigned int, nam, def, cmt) |
162 #define DEFINE_FLOAT(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) | 163 #define DEFINE_FLOAT(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) |
163 #define DEFINE_STRING(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) | 164 #define DEFINE_STRING(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) |
164 #define DEFINE_ARGS(nam, cmt) FLAG(ARGS, JSArguments, nam, {0 COMMA NULL}, cmt) | 165 #define DEFINE_ARGS(nam, cmt) FLAG(ARGS, JSArguments, nam, {0 COMMA NULL}, cmt) |
165 | 166 |
166 #define DEFINE_ALIAS_BOOL(alias, nam) FLAG_ALIAS(BOOL, bool, alias, nam) | 167 #define DEFINE_ALIAS_BOOL(alias, nam) FLAG_ALIAS(BOOL, bool, alias, nam) |
167 #define DEFINE_ALIAS_INT(alias, nam) FLAG_ALIAS(INT, int, alias, nam) | 168 #define DEFINE_ALIAS_INT(alias, nam) FLAG_ALIAS(INT, int, alias, nam) |
168 #define DEFINE_ALIAS_FLOAT(alias, nam) FLAG_ALIAS(FLOAT, double, alias, nam) | 169 #define DEFINE_ALIAS_FLOAT(alias, nam) FLAG_ALIAS(FLOAT, double, alias, nam) |
169 #define DEFINE_ALIAS_STRING(alias, nam) \ | 170 #define DEFINE_ALIAS_STRING(alias, nam) \ |
170 FLAG_ALIAS(STRING, const char*, alias, nam) | 171 FLAG_ALIAS(STRING, const char*, alias, nam) |
171 #define DEFINE_ALIAS_ARGS(alias, nam) FLAG_ALIAS(ARGS, JSArguments, alias, nam) | 172 #define DEFINE_ALIAS_ARGS(alias, nam) FLAG_ALIAS(ARGS, JSArguments, alias, nam) |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 DEFINE_IMPLICATION(minimal, ignition) | 496 DEFINE_IMPLICATION(minimal, ignition) |
496 DEFINE_NEG_IMPLICATION(minimal, crankshaft) | 497 DEFINE_NEG_IMPLICATION(minimal, crankshaft) |
497 DEFINE_NEG_IMPLICATION(minimal, use_ic) | 498 DEFINE_NEG_IMPLICATION(minimal, use_ic) |
498 | 499 |
499 // Flags for native WebAssembly. | 500 // Flags for native WebAssembly. |
500 DEFINE_BOOL(expose_wasm, true, "expose WASM interface to JavaScript") | 501 DEFINE_BOOL(expose_wasm, true, "expose WASM interface to JavaScript") |
501 DEFINE_BOOL(wasm_disable_structured_cloning, false, | 502 DEFINE_BOOL(wasm_disable_structured_cloning, false, |
502 "disable WASM structured cloning") | 503 "disable WASM structured cloning") |
503 DEFINE_INT(wasm_num_compilation_tasks, 10, | 504 DEFINE_INT(wasm_num_compilation_tasks, 10, |
504 "number of parallel compilation tasks for wasm") | 505 "number of parallel compilation tasks for wasm") |
| 506 DEFINE_UINT(wasm_max_mem_pages, 16384, "maximum memory size of a wasm instance") |
505 DEFINE_BOOL(trace_wasm_encoder, false, "trace encoding of wasm code") | 507 DEFINE_BOOL(trace_wasm_encoder, false, "trace encoding of wasm code") |
506 DEFINE_BOOL(trace_wasm_decoder, false, "trace decoding of wasm code") | 508 DEFINE_BOOL(trace_wasm_decoder, false, "trace decoding of wasm code") |
507 DEFINE_BOOL(trace_wasm_decode_time, false, "trace decoding time of wasm code") | 509 DEFINE_BOOL(trace_wasm_decode_time, false, "trace decoding time of wasm code") |
508 DEFINE_BOOL(trace_wasm_compiler, false, "trace compiling of wasm code") | 510 DEFINE_BOOL(trace_wasm_compiler, false, "trace compiling of wasm code") |
509 DEFINE_BOOL(trace_wasm_interpreter, false, "trace interpretation of wasm code") | 511 DEFINE_BOOL(trace_wasm_interpreter, false, "trace interpretation of wasm code") |
510 DEFINE_INT(trace_wasm_ast_start, 0, | 512 DEFINE_INT(trace_wasm_ast_start, 0, |
511 "start function for WASM AST trace (inclusive)") | 513 "start function for WASM AST trace (inclusive)") |
512 DEFINE_INT(trace_wasm_ast_end, 0, "end function for WASM AST trace (exclusive)") | 514 DEFINE_INT(trace_wasm_ast_end, 0, "end function for WASM AST trace (exclusive)") |
513 DEFINE_INT(trace_wasm_text_start, 0, | 515 DEFINE_INT(trace_wasm_text_start, 0, |
514 "start function for WASM text generation (inclusive)") | 516 "start function for WASM text generation (inclusive)") |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1285 #undef DEFINE_ALIAS_FLOAT | 1287 #undef DEFINE_ALIAS_FLOAT |
1286 #undef DEFINE_ALIAS_ARGS | 1288 #undef DEFINE_ALIAS_ARGS |
1287 | 1289 |
1288 #undef FLAG_MODE_DECLARE | 1290 #undef FLAG_MODE_DECLARE |
1289 #undef FLAG_MODE_DEFINE | 1291 #undef FLAG_MODE_DEFINE |
1290 #undef FLAG_MODE_DEFINE_DEFAULTS | 1292 #undef FLAG_MODE_DEFINE_DEFAULTS |
1291 #undef FLAG_MODE_META | 1293 #undef FLAG_MODE_META |
1292 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1294 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1293 | 1295 |
1294 #undef COMMA | 1296 #undef COMMA |
OLD | NEW |