Skip to content

Support Tail Call extension #2397

@alexbiehl

Description

@alexbiehl

Is your feature request related to a problem? Please describe.

I am trying to run a WASM workload that makes use of the return_call instruction (see https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/Control_flow/call).

Currently execution fails with

loadBytes: compile module: invalid function[2]: invalid instruction 0x12

Describe the solution you'd like

Ideally wazero supports that instruction. Some research revealed it’s part of https://github.com/WebAssembly/tail-call/blob/main/proposals/tail-call/Overview.md. After all it would be nice if wazero supported the tail call extension.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions