fitzgen opened PR #7826 from fitzgen:rename-signature-to-type
to bytecodealliance:main
:
No functional changes, just the following mechanical renames:
VMSharedSignatureIndex
toVMSharedTypeIndex
SignatureIndex
toTypeIndex
SignatureRegistry
toTypeRegistry
- and more
This is intended to start paving the way for Wasm GC support, where there are more than just function signatures in a Wasm module's type section, and we are going to need to register non-function-signature types in the registry as well, for things like casting between reference types and passing reference types across Wasm modules.
<!--
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
-->
fitzgen requested wasmtime-compiler-reviewers for a review on PR #7826.
fitzgen requested elliottt for a review on PR #7826.
fitzgen requested pchickey for a review on PR #7826.
fitzgen requested wasmtime-core-reviewers for a review on PR #7826.
fitzgen updated PR #7826.
fitzgen requested alexcrichton for a review on PR #7826.
fitzgen commented on PR #7826:
Flagging @alexcrichton in particular for this review because I realized that we actually already had
wasm_types::TypeIndex
and AFAICT it is actually the same aswasm_types::SignatureIndex
and so, in the process of fixing compile errors, I deleted the duplicate definition ofTypeIndex
(that used to beSignatureIndex
) and everything is using the originalTypeIndex
now. But that is a little surprising, and I want to make sure that this isn't going to introduce any subtle bugs. Thoughts?
fitzgen updated PR #7826.
github-actions[bot] commented on PR #7826:
Subscribe to Label Action
cc @peterhuene
<details>
This issue or pull request has been labeled: "cranelift", "cranelift:wasm", "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- peterhuene: wasmtime:api
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
fitzgen updated PR #7826.
fitzgen commented on PR #7826:
@alexcrichton I added a second commit that reintroduces separate index types for wasm-index-space types vs module-interned types.
Going to work on rebasing and resolving conflicts now.
fitzgen updated PR #7826.
fitzgen commented on PR #7826:
Rebased.
alexcrichton submitted PR review.
fitzgen updated PR #7826.
fitzgen has enabled auto merge for PR #7826.
fitzgen merged PR #7826.
Last updated: Nov 22 2024 at 16:03 UTC