Move Webassembly objects to Store and remove Context

Co-authored-by: ptitSeb <sebastien.chev@gmail.com>
Co-authored-by: Manos Pitsidianakis <manos@wasmer.io>
This commit is contained in:
Syrus Akbary
2022-07-08 15:33:29 -07:00
committed by Manos Pitsidianakis
parent b5ae6399ce
commit a419ccdf52
214 changed files with 5800 additions and 5759 deletions

View File

@@ -10,7 +10,7 @@ use wasmer_compiler_cranelift::Cranelift;
let compiler = Cranelift::new();
// Put it into an engine and add it to the store
let store = Store::new_with_engine(&Universal::new(compiler).engine());
let mut store = Store::new_with_engine(&Universal::new(compiler).engine());
```
*Note: you can find a [full working example using Cranelift compiler

View File

@@ -2,7 +2,7 @@
// Attributions: https://github.com/wasmerio/wasmer/blob/master/ATTRIBUTIONS.md
//! All the runtime support necessary for the wasm to cranelift translation is formalized by the
//! traits `FunctionEnvironment`.
//! traits `FunctionEnvMutironment`.
use super::func_state::FuncTranslationState;
use super::translation_utils::reference_type;
@@ -449,7 +449,7 @@ pub trait FuncEnvironment: TargetEnvironment {
Ok(())
}
/// Optional callback for the `FunctionEnvironment` performing this translation to maintain
/// Optional callback for the `FunctionEnvMutironment` performing this translation to maintain
/// internal state or prepare custom state for the operator to translate
fn before_translate_operator(
&mut self,
@@ -460,7 +460,7 @@ pub trait FuncEnvironment: TargetEnvironment {
Ok(())
}
/// Optional callback for the `FunctionEnvironment` performing this translation to maintain
/// Optional callback for the `FunctionEnvMutironment` performing this translation to maintain
/// internal state or finalize custom state for the operator that was translated
fn after_translate_operator(
&mut self,