mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-16 17:18:57 +00:00
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:
committed by
Manos Pitsidianakis
parent
b5ae6399ce
commit
a419ccdf52
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user