alexcrichton opened PR #8806 from alexcrichton:more-const-propagate
to bytecodealliance:main
:
Before this commit all offsets to all fields in
VMOffsets
were stored as fields withinVMOffset
itself. All of the fields at the start ofVMOffsets
, however, are statically known given the pointer size. Notably this means that the use ofHostPtr
in the runtime still was forcing a dynamic lookup of these static offsets.This commit refactors this to reflect all static offsets based solely on the pointer size in the
PtrSize
trait, removing all the fields fromVMOffsets
. All the dynamically sized fields, however, remain inVMOffsets
.<!--
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 wasmtime-compiler-reviewers for a review on PR #8806.
alexcrichton requested wasmtime-core-reviewers for a review on PR #8806.
alexcrichton requested elliottt for a review on PR #8806.
pchickey submitted PR review.
alexcrichton updated PR #8806.
alexcrichton has enabled auto merge for PR #8806.
alexcrichton merged PR #8806.
Last updated: Nov 22 2024 at 16:03 UTC