alexcrichton opened PR #11047 from alexcrichton:refactor-vmarraycallnative to bytecodealliance:main:
This commit refines the definition of the
VMArrayCallNativetype which is the type signature of array-call functions which are used for entering and exiting wasm. The first two parameters of this function are the callee/caller VMContext values but they are both ascribed asVMOpaqueContext. This is because for thecalleeit's not known exactly what type the pointer has except within the context of the defining function, so this value was not changed.For the
callerparameter though it's always the case that the value passed in is indeed aVMContext. This commit reflects this fact in the type signature and removes a number of now-unnecessary casts.<!--
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
-->
alexcrichton requested fitzgen for a review on PR #11047.
alexcrichton requested wasmtime-core-reviewers for a review on PR #11047.
fitzgen submitted PR review.
fitzgen merged PR #11047.
Last updated: Dec 06 2025 at 07:03 UTC