[webkit-changes] [WebKit/WebKit] 42927f: [WASM-Function-References] Extend tables with init...
Asumu Takikawa
noreply at github.com
Thu Oct 19 08:55:37 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 42927fcd77eacfe0e121f8ec1519d22dc8344468
https://github.com/WebKit/WebKit/commit/42927fcd77eacfe0e121f8ec1519d22dc8344468
Author: Asumu Takikawa <asumu at igalia.com>
Date: 2023-10-19 (Thu, 19 Oct 2023)
Changed paths:
A JSTests/wasm/function-references-spec-tests/table.wast.js
A JSTests/wasm/function-references/table_init.js
A JSTests/wasm/gc/table_init.js
M Source/JavaScriptCore/wasm/WasmFormat.h
M Source/JavaScriptCore/wasm/WasmOperationsInlines.h
M Source/JavaScriptCore/wasm/WasmSectionParser.cpp
M Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp
Log Message:
-----------
[WASM-Function-References] Extend tables with initializer expressions
https://bugs.webkit.org/show_bug.cgi?id=251123
Reviewed by Justin Michaud.
Add support for tables with initializer expressions. This entails extending
TableInformation with initialization information, just as there is for globals.
The same fast paths for initializer expressions are used for tables, except
restricted to the ones that make sense for reference types.
* JSTests/wasm/funcref-spec-harness/sync_index.js:
* JSTests/wasm/function-references-spec-tests/table.wast.js: Added.
* JSTests/wasm/function-references/table_init.js: Added.
(module):
(async testTableInitParsing):
(async testTableInitRuntime):
* JSTests/wasm/gc/table_init.js: Added.
(testTableValidation):
* Source/JavaScriptCore/wasm/WasmFormat.h:
(JSC::Wasm::TableInformation::TableInformation):
(JSC::Wasm::TableInformation::initType const):
(JSC::Wasm::TableInformation::initialBitsOrImportNumber const):
* Source/JavaScriptCore/wasm/WasmOperationsInlines.h:
* Source/JavaScriptCore/wasm/WasmSectionParser.cpp:
(JSC::Wasm::SectionParser::parseTableHelper):
* Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp:
(JSC::WebAssemblyModuleRecord::initializeExports):
Canonical link: https://commits.webkit.org/269527@main
More information about the webkit-changes
mailing list