fitzgen opened PR #14113 from fitzgen:use-clif-trap-inst-in-fused-adapters to bytecodealliance:main:
Before, we would emit a call to a host function, passing the trap code as a
constant argument. Now we emit atrap <code>instruction directly.This is a large improvement for our sync adapter disas tests.
Depends on https://github.com/bytecodealliance/wasmtime/pull/14111
fitzgen requested alexcrichton for a review on PR #14113.
fitzgen requested wasmtime-compiler-reviewers for a review on PR #14113.
fitzgen requested wasmtime-core-reviewers for a review on PR #14113.
:memo: alexcrichton submitted PR review.
:speech_balloon: alexcrichton created PR review comment:
I'm a bit wary of doing this even though it probably works out generally fine, but for example with guest-debug enabled I'd be worried that we'd spill/reload something or something like that. Could the payload here be directly on
FactInlineIntrinsic::Trap? That'd require adding it toTrampoline::Traptoo which I suspect wouldn't have much impact.
github-actions[bot] added the label cranelift on PR #14113.
fitzgen updated PR #14113.
:memo: fitzgen submitted PR review.
:speech_balloon: fitzgen created PR review comment:
Just pushed a commit implementing this. A bit of shepherding and such, but ultimately nicer yeah.
:thumbs_up: alexcrichton submitted PR review.
github-actions[bot] added the label wasmtime:api on PR #14113.
fitzgen has enabled auto merge for PR #14113.
fitzgen added PR #14113 Lower fused adapter trap intrinsics to CLIF trap instructions to the merge queue.
fitzgen removed PR #14113 Lower fused adapter trap intrinsics to CLIF trap instructions from the merge queue.
:check: fitzgen merged PR #14113.
Last updated: Aug 30 2026 at 10:08 UTC