Skip to content

Say "memory" instead of "__wasi_memory" in error messages.#264

Merged
kubkon merged 1 commit intobytecodealliance:masterfrom
sunfishcode:memory-name
Aug 8, 2019
Merged

Say "memory" instead of "__wasi_memory" in error messages.#264
kubkon merged 1 commit intobytecodealliance:masterfrom
sunfishcode:memory-name

Conversation

@sunfishcode
Copy link
Member

While the "__wasi_memory" name is something we considered, the name
currently being used for the memory exported to WASI is "memory", so
adjust the error message accordingly.

While the "__wasi_memory" name is something we considered, the name
currently being used for the memory exported to WASI is "memory", so
adjust the error message accordingly.
@kubkon
Copy link
Member

kubkon commented Aug 8, 2019

LGTM, and this is actually good to know ;-)

@kubkon kubkon merged commit 36b4ff8 into bytecodealliance:master Aug 8, 2019
@sunfishcode sunfishcode deleted the memory-name branch August 8, 2019 19:18
grishasobol pushed a commit to grishasobol/wasmtime that referenced this pull request Nov 29, 2021
* Refactor test imports

* Fix formatting
dhil added a commit to dhil/wasmtime that referenced this pull request Dec 9, 2024
This PR provides the missing piece to support `switch` instructions, by
adding the necessary codegen (but only for the optimized implementation,
support in the baseline implementation is not included).

Thus, the main change is the addition of
`wasmtime_cranelift::wasmfx::optimized::translate_switch`.

In general, the implementation piggybacks on bytecodealliance#256: On `resume`, we now
fill the `HandlerList` with _m_ entries for all tags with suspend
handlers, followed by _n_ entries for all tags with switch handlers. The
`search_handler` code is changed so that on `suspend` and `switch`, we
look in the correct part of the `HandlerList`. We could use two separate
`HandlerLists` instead, but then we would have yet another allocation to
manage, so putting both kinds of tags into the same list, and then only
searching part of it seems preferable.


A few more notes:
- `translate_resume` and `translate_switch` now return a `WasmResult`.
This is used so that the baseline implementation can bail out without
needing to `panic`.
- The test runner in `stack_switchting.rs` now takes an extra parameter
that allows us to enable the gc proposal, which is required for the
tests using recursive types.

---------

Co-authored-by: Daniel Hillerström <daniel.hillerstrom@ed.ac.uk>
avanhatt pushed a commit to wellesley-prog-sys/wasmtime that referenced this pull request Apr 9, 2025
Emit final solver `(exit)` command, to trigger the subprocess to exit.

This is motivated by parallelization, and an early attempt that appeared
to be leaking `cvc5` subprocesses.
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.

2 participants