Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 42927fcd77eacfe0e121f8ec1519d22dc8344468
      
https://github.com/WebKit/WebKit/commit/42927fcd77eacfe0e121f8ec1519d22dc8344468
  Author: Asumu Takikawa <as...@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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to