saulecabrera opened PR #6451 from saulecabrera:winch-refactor-abi-ptrsize-masm to bytecodealliance:main:
This commit is a follow up to https://github.com/bytecodealliance/wasmtime/pull/6443, in which we discussed potentially having
PtrSizeandABIas associated types to theMacroAssemblertrait.I considered having
PtrSizeassociated to theABI, but given the amount of ABI details needed at theMacroAssemblerlevel, I decided to go with the approach in this change.The chosen approach ended up cutting a decent amount of boilerplate from the
MacroAssembleritself, but also from each of the touchpoints where theMacroAssembleris used.This change also standardizes the signatures of the
ABItrait. Some of them borrowed&selfand some didn't, but in practice, there's no need to have any of them borrow&self.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
saulecabrera requested alexcrichton for a review on PR #6451.
saulecabrera requested cfallin for a review on PR #6451.
saulecabrera requested wasmtime-compiler-reviewers for a review on PR #6451.
saulecabrera updated PR #6451.
alexcrichton submitted PR review:
Nice!
saulecabrera merged PR #6451.
Last updated: Dec 13 2025 at 19:03 UTC