-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
wasmtime: Implement Extended Constant Expressions proposal #8568
base: main
Are you sure you want to change the base?
Conversation
This implements https://github.com/webassembly/extended-const for Wasmtime. Co-authored-by: Nick Fitzgerald <[email protected]>
Label Messager: wasmtime:configIt looks like you are changing Wasmtime's configuration options. Make sure to
To modify this label's message, edit the To add new label messages or remove existing label messages, edit the |
For the failure here I think you'll need to set |
Yeah that failure is just because it is using an We can ignore that particular failure by adding a clause here: https://github.com/bytecodealliance/wasmtime/blob/main/crates/wast/src/wast.rs#L544 Would be nice to ideally send a PR upstream to fix the issue (switch the add to some operator that isn't allowed even with the extended constants proposal) or at least make a local copy for the |
I think it is fine to have it enabled by default since it is a phase 4 proposal (basically done) and will have more than 2 weeks fuzzing before it hits a release. |
Oh I'll note that wasm-smith doesn't have support for extended consts right now I think, so AFAIK we won't fuzz this at all |
Ah yes, we should add that support before enabling this proposal by default. |
This implements https://github.com/webassembly/extended-const for Wasmtime.
Currently the documentation comment for the
wasm_extended_const
configuration option says it's false by default, butConfig::new
sets it to true. One of those should be fixed and I'm not sure which. Other config-related things are still to-do as well, such as adding the appropriate CLI flag.Also, I could use a little help understanding why one of the funcrefs spec tests fails:
cc: @fitzgen