Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: src/flag-definitions.h

Issue 2626313003: [wasm] Change the constant kV8MaxWasmMemoryPages to a command line flag. (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698