diff options
author | Alon Zakai <azakai@google.com> | 2024-05-01 09:52:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 09:52:14 -0700 |
commit | 58753f40d9ee51bbe5c3acb7656e0d4ab73d0f36 (patch) | |
tree | 5a0278ceb050feee6e29f4d087d96b8457682c5f /src/wasm-binary.h | |
parent | 7d9e4a87ce4949dc552790329cfaf4dfec8b36a8 (diff) | |
download | binaryen-58753f40d9ee51bbe5c3acb7656e0d4ab73d0f36.tar.gz binaryen-58753f40d9ee51bbe5c3acb7656e0d4ab73d0f36.tar.bz2 binaryen-58753f40d9ee51bbe5c3acb7656e0d4ab73d0f36.zip |
Respect the Web limitation on Table size (#6567)
Without this the fuzzer can error on differences in behavior between V8 and us.
Also move the limitations constants to their own header.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 4f0796601..6fd082f79 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -43,15 +43,6 @@ enum { MaxLEB32Bytes = 5, }; -// wasm VMs on the web have decided to impose some limits on what they -// accept -enum WebLimitations : uint32_t { - MaxDataSegments = 100 * 1000, - MaxFunctionBodySize = 128 * 1024, - MaxFunctionLocals = 50 * 1000, - MaxFunctionParams = 1000 -}; - template<typename T, typename MiniT> struct LEB { static_assert(sizeof(MiniT) == 1, "MiniT must be a byte"); |