fitzgen opened PR #15173 from fitzgen:enclosing-component-in-core-translation to bytecodealliance:main:
Getting the handle-table slots array's base pointer requires the component's own
offsets rather than just the pointer size, but we do the inline translation of
FACT trampolines in aFuncEnvironmentthat only has anAliasRegions<VMOffsets>.
Therefore, core Wasm translation now has anOption<AliasRegions<VMComponentOffsets>>
for core modules compiled as part of a component.Depends on https://github.com/bytecodealliance/wasmtime/pull/15171
fitzgen removed the review request for wasmtime-compiler-reviewers from PR #15173.
fitzgen requested cfallin for a review on PR #15173.
fitzgen requested wasmtime-compiler-reviewers for a review on PR #15173.
fitzgen requested wasmtime-core-reviewers for a review on PR #15173.
github-actions[bot] added the label wasmtime:api on PR #15173.
github-actions[bot] added the label winch on PR #15173.
github-actions[bot] commented on PR #15173:
Subscribe to Label Action
cc @saulecabrera
<details>
This issue or pull request has been labeled: "wasmtime:api", "winch"Thus the following users have been cc'd because of the following labels:
- saulecabrera: winch
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
:thumbs_up: cfallin submitted PR review:
LGTM on second commit
:speech_balloon: cfallin created PR review comment:
It's too bad that the macro-expander doesn't do tail recursion...? (Or are we not tail-recursive in this macro and if so, is there a way we could refactor so we are?)
:memo: fitzgen submitted PR review.
:speech_balloon: fitzgen created PR review comment:
I do believe that tail recursion is more efficient for
rustcbut since it doesn't have loops, the recursion limit is really just fuel for macro expansion in general.
fitzgen updated PR #15173.
fitzgen has enabled auto merge for PR #15173.
fitzgen added PR #15173 Give core Wasm translation the enclosing component's alias regions to the merge queue.
fitzgen removed PR #15173 Give core Wasm translation the enclosing component's alias regions from the merge queue.
:check: fitzgen merged PR #15173.
:memo: alexcrichton submitted PR review.
:speech_balloon: alexcrichton created PR review comment:
How come this was needed? Shouldn't this be covered by
VmPtr<_>above?
:speech_balloon: alexcrichton created PR review comment:
Can this use
#[expect]in the future to guarantee that this isn't forgotten to be removed?
:memo: fitzgen submitted PR review.
:speech_balloon: fitzgen created PR review comment:
It's because the
>>becomes its own token I believe.
:memo: fitzgen submitted PR review.
:speech_balloon: fitzgen created PR review comment:
Removed in https://github.com/bytecodealliance/wasmtime/pull/15208
Last updated: Nov 19 2026 at 20:05 UTC