Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
# Disable v8 hugepage by default.
'v8_enable_hugepage%': 0,

# Disabled by configure --v8-lite-mode.
'v8_enable_webassembly%': 1,

# This is more of a V8 dev setting
# https://github.com/nodejs/node/pull/22920/files#r222779926
'v8_enable_fast_mksnapshot': 0,
Expand Down Expand Up @@ -509,6 +512,9 @@
['v8_enable_v8_checks == 1', {
'defines': ['V8_ENABLE_CHECKS'],
}],
['v8_enable_webassembly == 1', {
'defines': ['V8_ENABLE_WEBASSEMBLY'],
}],
['v8_enable_pointer_compression == 1', {
'defines': ['V8_COMPRESS_POINTERS'],
}],
Expand Down
2 changes: 2 additions & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,10 @@ static ExitCode ProcessGlobalArgsInternal(std::vector<std::string>* args,
v8_args.emplace_back("--js-source-phase-imports");
}

#if V8_ENABLE_WEBASSEMBLY
// WebAssembly JS Promise Integration
v8_args.emplace_back("--experimental-wasm-jspi");
#endif // V8_ENABLE_WEBASSEMBLY

#ifdef __POSIX__
// Block SIGPROF signals when sleeping in epoll_wait/kevent/etc. Avoids the
Expand Down
Loading