forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn Payloads into generic vector type (#252)
We currently use the type `Payloads`, which is effectively a vector of `ValRaw`, to handle all kinds of payload passing between continuations. This PR turns `Payloads` into a generic vector type, parameterized over the type `T` of stored elements. The motivation is that fast effect forwarding will introduce the need for a second kind of growable vector, containing tag identifiers (i.e, `*mut VMTagDefinition`). This PR also makes two small improvements to the `Vector` implementation: - Get rid of the module that previously contained the types of the various fields in `Vector`/`Payloads`. I think that's more general than we need. - On the codegen side, don't store `pointer_type` in `Vector` any more. These days we can easily get the pointer type from the `FuncEnvironment`, given that almost all functions have a corresponding `env` parameter.
- Loading branch information
1 parent
f2b25b6
commit 64a53d6
Showing
2 changed files
with
124 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.