Remove the Context type from wasmtime (#825)

* Remove the `Context` type from `wasmtime`

This hasn't really ended up being used in all that many places and the
dependencies on it were pretty minimal. This commit removes it in favor
of simplifying its various users a bit and/or leveraging the
`Engine`/`Store` structures where possible.

* Run rustfmt
This commit is contained in:
Alex Crichton
2020-01-15 16:54:57 -06:00
committed by GitHub
parent b4dccc0486
commit 0be3c2983c
6 changed files with 23 additions and 94 deletions

View File

@@ -141,8 +141,7 @@ impl WrappedCallable for WasmtimeFn {
// Get the trampoline to call for this function.
let exec_code_buf = self
.store
.context()
.compiler()
.compiler_mut()
.get_published_trampoline(body, &signature, value_size)
.map_err(|e| Trap::new(format!("trampoline error: {:?}", e)))?;