Stream: git-wasmtime

Topic: wasmtime / PR #15343 feat(AArch64): support compact unwin...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2026 at 08:27):

marxin opened PR #15343 from marxin:macho-tail-cc-v2 to bytecodealliance:main:

Both calling conventions use the same callee-saved registers, so both can be represented in the Mach-O compact unwind format.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2026 at 08:27):

marxin removed the review request for wasmtime-compiler-reviewers from PR #15343.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2026 at 08:27):

marxin requested alexcrichton for a review on PR #15343.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2026 at 08:27):

marxin requested wasmtime-compiler-reviewers for a review on PR #15343.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2026 at 10:44):

github-actions[bot] added the label cranelift on PR #15343.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2026 at 10:44):

github-actions[bot] added the label cranelift:area:aarch64 on PR #15343.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2026 at 15:32):

:memo: alexcrichton submitted PR review:

Could you explain the rationale a bit more for this? This looks like it's pessimizing the tail ABI slightly by considering more registers clobbered, and we generally consider the tail ABI the fastest one or use in wasm, so wouldn't this pessimize performance?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 19 2026 at 08:26):

marxin commented on PR #15343:

Sure - the motivation is that we would like to support return_call and return_call_indirect opcode. And, only TailCall supports this opcodes, we need to switch to. We are fine with a small bigger prologue/epilogue connected to the compact unwind restrictions where callee-save register pushes and pops need to happen always in pairs. Note, the enable_compact_unwind_abi is an opt-in option.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 19 2026 at 08:27):

marxin edited a comment on PR #15343:

Sure - the motivation is that we would like to support return_call and return_call_indirect opcodes. And, as only TailCall supports this opcodes, we need to switch to. We are fine with a small bigger prologue/epilogue connected to the compact unwind restrictions where callee-save register pushes and pops need to happen always in pairs. Note, the enable_compact_unwind_abi is an opt-in option.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 19 2026 at 08:27):

marxin edited a comment on PR #15343:

Sure - the motivation is that we would like to support return_call and return_call_indirect opcodes. And, as only TailCall supports this opcodes, we need to switch to it. We are fine with a small bigger prologue/epilogue connected to the compact unwind restrictions where callee-save register pushes and pops need to happen always in pairs. Note, the enable_compact_unwind_abi is an opt-in option.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 19 2026 at 15:59):

alexcrichton commented on PR #15343:

Sure yeah that part of the motivation is already eminently clear, I mean moreso combining compact unwind info and the tail ABI. Are you sure that the compact unwind information can describe the tail convention in its full implementation as well? For example the tail convention may allocate stack space before clobbers are pushed onto the stack, which I'd be surprised if compact unwind info handled.

Additionally, there are no tests in this PR, and that'll need to be added to be considered to land.


Last updated: Nov 19 2026 at 20:05 UTC