[Webkit-unassigned] [Bug 260910] New: [Wasm-GC] Remove toJSValue calls for struct operations

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 30 09:42:45 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=260910

            Bug ID: 260910
           Summary: [Wasm-GC] Remove toJSValue calls for struct operations
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebAssembly
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: asumu at igalia.com

Currently the internal API for Wasm GC struct objects is set up so that the `set` operation takes a `JSValue` and coerces it to a Wasm value.

I think this internal API was motivated initially by the JS API or by specific JS->Wasm use cases, but it adds overhead unnecessarily to engine-internal uses such as in various C++ Wasm operations because of the extra `toJSValue` call that's necessary.

This could be solved by either adding a new function (or renaming `set` and repurposing it) that doesn't do this coercion and requires the value to already be a wasm value, or by changing `set` to not do the coercion.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230830/03c9a5b1/attachment.htm>


More information about the webkit-unassigned mailing list