[webkit-changes] [WebKit/WebKit] 67cbb3: [Wasm-GC] Adjust struct.new opcode

Asumu Takikawa noreply at github.com
Tue Dec 13 18:23:32 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 67cbb39ef6cc0150cd0a8571ffba8d790dada721
      https://github.com/WebKit/WebKit/commit/67cbb39ef6cc0150cd0a8571ffba8d790dada721
  Author: Asumu Takikawa <asumu at igalia.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

  Changed paths:
    M JSTests/wasm/gc/structs.js
    M JSTests/wasm/wasm.json
    M Source/JavaScriptCore/wasm/WasmFunctionParser.h
    M Source/JavaScriptCore/wasm/wasm.json

  Log Message:
  -----------
  [Wasm-GC] Adjust struct.new opcode
https://bugs.webkit.org/show_bug.cgi?id=249149

Reviewed by Yusuke Suzuki and Justin Michaud.

This patch adds an extra opcode for struct.new that allows it to be used
as either 0xfb01 or 0xfb07. The current draft spec uses 0xfb01 and
implementations currently use 0xfb07.

This allows the use of the spec's decoder in tests and also will allow
running GC spec tests.

* JSTests/wasm/gc/structs.js:
* JSTests/wasm/wasm.json:
* Source/JavaScriptCore/wasm/WasmFunctionParser.h:
(JSC::Wasm::FunctionParser<Context>::parseExpression):
* Source/JavaScriptCore/wasm/wasm.json:

Canonical link: https://commits.webkit.org/257821@main




More information about the webkit-changes mailing list