Skip to content

Commit 4717cfd

Browse files
committed
wasm-ld: constexpr size_t kV8MaxWasmFunctionSize = 7'654'321;
1 parent 005e14c commit 4717cfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lld/wasm/InputChunks.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ void InputChunk::generateRelocationCode(std::vector<std::string> &funcs) const {
384384
if (!requiresRuntimeReloc)
385385
continue;
386386

387+
// https://source.chromium.org/chromium/chromium/src/+/main:v8/src/wasm/wasm-limits.h;l=51
388+
// constexpr size_t kV8MaxWasmFunctionSize = 7'654'321;
387389
if (funcs.empty() || funcs.back().size() >= 7654300) {
388390
funcs.emplace_back(std::string());
389391
raw_string_ostream os(funcs.back());

0 commit comments

Comments
 (0)