diff options
Diffstat (limited to 'js/src/wasm/WasmSerialize.cpp')
-rw-r--r-- | js/src/wasm/WasmSerialize.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/src/wasm/WasmSerialize.cpp b/js/src/wasm/WasmSerialize.cpp index 35f437688c..e8cf904064 100644 --- a/js/src/wasm/WasmSerialize.cpp +++ b/js/src/wasm/WasmSerialize.cpp @@ -957,7 +957,10 @@ CoderResult CodeSymbolicLinkArray( template <CoderMode mode> CoderResult CodeLinkData(Coder<mode>& coder, CoderArg<mode, wasm::LinkData> item) { - WASM_VERIFY_SERIALIZATION_FOR_SIZE(wasm::LinkData, 8976); + // SymbolicLinkArray depends on SymbolicAddress::Limit, which is changed + // often. Exclude symbolicLinks field from trip wire value calculation. + WASM_VERIFY_SERIALIZATION_FOR_SIZE( + wasm::LinkData, 48 + sizeof(wasm::LinkData::SymbolicLinkArray)); if constexpr (mode == MODE_ENCODE) { MOZ_ASSERT(item->tier == Tier::Serialized); } |