Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move native signatures out of Module #2362

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

alexcrichton
Copy link
Member

After compilation there's actually no need to hold onto the native
signature for a wasm function type, so this commit moves out the
ir::Signature value from a Module into a separate field that's
deallocated when compilation is finished. This simplifies the
SignatureRegistry because it only needs to track wasm functino types
and it also means less work is done for Func::wrap.

@alexcrichton alexcrichton requested a review from fitzgen November 4, 2020 19:22
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Nov 4, 2020
@github-actions
Copy link

github-actions bot commented Nov 4, 2020

Subscribe to Label Action

cc @peterhuene

This issue or pull request has been labeled: "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 .github/subscribe-to-label.json configuration file.

Learn more.

After compilation there's actually no need to hold onto the native
signature for a wasm function type, so this commit moves out the
`ir::Signature` value from a `Module` into a separate field that's
deallocated when compilation is finished. This simplifies the
`SignatureRegistry` because it only needs to track wasm functino types
and it also means less work is done for `Func::wrap`.
@github-actions github-actions bot added the lightbeam Issues related to the Lightbeam compiler label Nov 4, 2020
@alexcrichton alexcrichton merged commit 6b137c2 into bytecodealliance:main Nov 4, 2020
@alexcrichton alexcrichton deleted the less-native-sig branch November 4, 2020 21:00
cfallin pushed a commit that referenced this pull request Nov 30, 2020
After compilation there's actually no need to hold onto the native
signature for a wasm function type, so this commit moves out the
`ir::Signature` value from a `Module` into a separate field that's
deallocated when compilation is finished. This simplifies the
`SignatureRegistry` because it only needs to track wasm functino types
and it also means less work is done for `Func::wrap`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lightbeam Issues related to the Lightbeam compiler wasmtime:api Related to the API of the `wasmtime` crate itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants