Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e40405afe9a4f0dceae60d5bd593e309748e9a64
https://github.com/WebKit/WebKit/commit/e40405afe9a4f0dceae60d5bd593e309748e9a64
Author: Anand Srinivasan <[email protected]>
Date: 2026-04-17 (Fri, 17 Apr 2026)
Changed paths:
A JSTests/wasm/stress/data-segment-multimemory.js
M Source/JavaScriptCore/wasm/WasmFormat.cpp
M Source/JavaScriptCore/wasm/WasmFormat.h
M Source/JavaScriptCore/wasm/WasmSectionParser.cpp
M Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp
Log Message:
-----------
Update wasm data segment implementation to support multimemory
https://bugs.webkit.org/show_bug.cgi?id=312589
rdar://175020377
Reviewed by Yusuke Suzuki.
Right now the implementation of wasm data segments doesn't know about
multimemory and doesn't have any code to handle a memory index
associated with a data segment. This patch updates it to correctly
handle data segments that specify memory indices other than 0.
Test: JSTests/wasm/stress/data-segment-multimemory.js
* JSTests/wasm/stress/data-segment-multimemory.js: Added.
* Source/JavaScriptCore/wasm/WasmFormat.cpp:
(JSC::Wasm::Segment::tryCreate):
* Source/JavaScriptCore/wasm/WasmFormat.h:
* Source/JavaScriptCore/wasm/WasmSectionParser.cpp:
(JSC::Wasm::SectionParser::parseData):
* Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp:
(JSC::WebAssemblyModuleRecord::evaluate):
Canonical link: https://commits.webkit.org/311477@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications