Skip to content

Add Wasm Branch Hinting #2744

Open
Open
@jakobkummerow

Description

@jakobkummerow

Specification

https://github.com/WebAssembly/branch-hinting/blob/main/proposals/branch-hinting/Overview.md

Description

A new section in Wasm modules containing likelihood hints for branch instructions, allowing engines to generate more optimal code.

To be in line with other Wasm features, I expect that the name will be wasm-branch-hinting.yml. The group is "webassembly".

Documentation

https://github.com/WebAssembly/branch-hinting/blob/main/proposals/branch-hinting/Overview.md

Browser support

According to the table at https://webassembly.org/features:

Chrome: requires flag
Firefox: enabled in Nightly, requires flag in Beta/Stable
Safari: enabled since 16

Chrome will enable it by default soon (likely in version 136 or 137): https://issues.chromium.org/issues/373151164

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature definitionCreating or defining new features or groups of features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions