[wasm] Pass translation state along for before/after_translate_operator callbacks (#879)

This commit is contained in:
Andy Wortman
2019-07-30 07:32:50 -07:00
committed by Benjamin Bouvier
parent 5ca13a70a5
commit b5cb8556f6
3 changed files with 6 additions and 2 deletions

View File

@@ -6,6 +6,7 @@
//!
//! [Wasmtime]: https://github.com/CraneStation/wasmtime
use crate::state::TranslationState;
use crate::translation_utils::{
FuncIndex, Global, GlobalIndex, Memory, MemoryIndex, SignatureIndex, Table, TableIndex,
};
@@ -262,6 +263,7 @@ pub trait FuncEnvironment {
&mut self,
_op: &Operator,
_builder: &mut FunctionBuilder,
_state: &mut TranslationState,
) -> WasmResult<()> {
Ok(())
}
@@ -272,6 +274,7 @@ pub trait FuncEnvironment {
&mut self,
_op: &Operator,
_builder: &mut FunctionBuilder,
_state: &mut TranslationState,
) -> WasmResult<()> {
Ok(())
}