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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
492 "simplifies execution model to make porting " | 492 "simplifies execution model to make porting " |
493 "easier (e.g. always use Ignition, never use Crankshaft") | 493 "easier (e.g. always use Ignition, never use Crankshaft") |
494 DEFINE_IMPLICATION(minimal, ignition) | 494 DEFINE_IMPLICATION(minimal, ignition) |
495 DEFINE_NEG_IMPLICATION(minimal, crankshaft) | 495 DEFINE_NEG_IMPLICATION(minimal, crankshaft) |
496 DEFINE_NEG_IMPLICATION(minimal, use_ic) | 496 DEFINE_NEG_IMPLICATION(minimal, use_ic) |
497 | 497 |
498 // Flags for native WebAssembly. | 498 // Flags for native WebAssembly. |
499 DEFINE_BOOL(expose_wasm, true, "expose WASM interface to JavaScript") | 499 DEFINE_BOOL(expose_wasm, true, "expose WASM interface to JavaScript") |
500 DEFINE_INT(wasm_num_compilation_tasks, 10, | 500 DEFINE_INT(wasm_num_compilation_tasks, 10, |
501 "number of parallel compilation tasks for wasm") | 501 "number of parallel compilation tasks for wasm") |
502 DEFINE_INT(wasm_max_mem_pages, 16384, "maximum memory size of a wasm instance") | |
titzer
2017/01/13 14:54:22
You can actually define this as a uint32_t (which
ahaas
2017/01/17 09:09:55
I think I did that now, but I'm not sure how flags
| |
502 DEFINE_BOOL(trace_wasm_encoder, false, "trace encoding of wasm code") | 503 DEFINE_BOOL(trace_wasm_encoder, false, "trace encoding of wasm code") |
503 DEFINE_BOOL(trace_wasm_decoder, false, "trace decoding of wasm code") | 504 DEFINE_BOOL(trace_wasm_decoder, false, "trace decoding of wasm code") |
504 DEFINE_BOOL(trace_wasm_decode_time, false, "trace decoding time of wasm code") | 505 DEFINE_BOOL(trace_wasm_decode_time, false, "trace decoding time of wasm code") |
505 DEFINE_BOOL(trace_wasm_compiler, false, "trace compiling of wasm code") | 506 DEFINE_BOOL(trace_wasm_compiler, false, "trace compiling of wasm code") |
506 DEFINE_BOOL(trace_wasm_interpreter, false, "trace interpretation of wasm code") | 507 DEFINE_BOOL(trace_wasm_interpreter, false, "trace interpretation of wasm code") |
507 DEFINE_INT(trace_wasm_ast_start, 0, | 508 DEFINE_INT(trace_wasm_ast_start, 0, |
508 "start function for WASM AST trace (inclusive)") | 509 "start function for WASM AST trace (inclusive)") |
509 DEFINE_INT(trace_wasm_ast_end, 0, "end function for WASM AST trace (exclusive)") | 510 DEFINE_INT(trace_wasm_ast_end, 0, "end function for WASM AST trace (exclusive)") |
510 DEFINE_INT(trace_wasm_text_start, 0, | 511 DEFINE_INT(trace_wasm_text_start, 0, |
511 "start function for WASM text generation (inclusive)") | 512 "start function for WASM text generation (inclusive)") |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1283 #undef DEFINE_ALIAS_FLOAT | 1284 #undef DEFINE_ALIAS_FLOAT |
1284 #undef DEFINE_ALIAS_ARGS | 1285 #undef DEFINE_ALIAS_ARGS |
1285 | 1286 |
1286 #undef FLAG_MODE_DECLARE | 1287 #undef FLAG_MODE_DECLARE |
1287 #undef FLAG_MODE_DEFINE | 1288 #undef FLAG_MODE_DEFINE |
1288 #undef FLAG_MODE_DEFINE_DEFAULTS | 1289 #undef FLAG_MODE_DEFINE_DEFAULTS |
1289 #undef FLAG_MODE_META | 1290 #undef FLAG_MODE_META |
1290 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1291 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1291 | 1292 |
1292 #undef COMMA | 1293 #undef COMMA |
OLD | NEW |