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

Add offset parameter to BinaryenSetFunctionTable #2380

Merged
merged 2 commits into from Oct 11, 2019

Conversation

dcodeIO
Copy link
Contributor

@dcodeIO dcodeIO commented Oct 11, 2019

This PR adds an offset parameter to BinaryenSetFunctionTable so table elements can start at the value of an (imported constant) global. Previously, the offset was fixed to zero. As usual this is a breaking change to the C-API but backwards compatible when using the JS-API.

Background is that we are currently experimenting with a preliminary dynamic linking mechanism, for example to have a shared runtime that not every module has to ship on its own, and this is a missing building block.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dcodeIO!

Seems worth the risk of breakage, as the JS API is compatible, and in C it would not compile. (And for the ABI level there's the changelog.)

@kripken kripken merged commit 4e80fde into WebAssembly:master Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants