[Webkit-unassigned] [Bug 235581] New: Add support for WASM branch hinting proposal

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 25 05:42:04 PST 2022


            Bug ID: 235581
           Summary: Add support for WASM branch hinting proposal
           Product: WebKit
           Version: WebKit Local Build
          Hardware: All
                OS: Unspecified
            Status: NEW
          Severity: Enhancement
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tom at leaningtech.com

See the proposal for a more detailed description: https://github.com/WebAssembly/branch-hinting.

This allows parsing a "code_annotation.branch_hint" custom section, as per the code annotation proposal: https://github.com/WebAssembly/annotations.
This section provides per function information about how likely a branch at a
given offset is to be taken. It is similar to branch weight metadata in LLVM.
For B3 and AIR this implies generating "hinted" blocks, whose frequencies are already set.

The provided test is inspired by how the name section is tested: a wasm file containing the encoded custom section is read, compiled and run. It only tests the integration of the WasmBranchHintsSectionParser in the parsing pipeline, since more accurate testing would require inspecting the internal state of the VM.

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/20220125/909a6994/attachment.htm>

More information about the webkit-unassigned mailing list