Add a VMComponentContext type and create it on instantiation (#4215)

* Add a `VMComponentContext` type and create it on instantiation

This commit fills out the `wasmtime-runtime` crate's support for
`VMComponentContext` and creates it as part of the instantiation
process. This moves a few maps that were temporarily allocated in an
`InstanceData` into the `VMComponentContext` and additionally reads the
canonical options data from there instead.

This type still won't be used in its "full glory" until the lowering of
host functions is completely implemented, however, which will be coming
in a future commit.

* Remove `DerefMut` implementation

* Rebase conflicts
This commit is contained in:
Alex Crichton
2022-06-03 13:34:50 -05:00
committed by GitHub
parent 4c1339a8fa
commit 2af358dd9c
9 changed files with 538 additions and 49 deletions

View File

@@ -54,3 +54,5 @@ pooling-allocator = []
# It is useful for applications that do not bind their own exception ports and
# need portable signal handling.
posix-signals-on-macos = []
component-model = ["wasmtime-environ/component-model"]