Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulley: Implement a new br_table instruction #9659

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 22, 2024

  1. pulley: Implement a new br_table instruction

    This is intended to match WebAssembly's `br_table` and Cranelift's
    version as well. This is implemented as a new `br_table32` opcode where
    a 32-bit number of branch targets are encoded after `br_table32` all as
    a `PcRelOffset`, a 32-bit offset. This helps bake in a more "macro
    opcode" into the interpreter rather than a handful of more primitive
    opcodes that would achieve the same result with loads/indirect
    jumps/comparisons/etc.
    alexcrichton committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    91b836c View commit details
    Browse the repository at this point in the history
  2. Fix disassembling

    alexcrichton committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    32597f9 View commit details
    Browse the repository at this point in the history