1
0
mirror of https://github.com/fluencelabs/wasmer synced 2025-06-20 20:26:32 +00:00

Remove UserTrapper trait

This commit is contained in:
Lachlan Sneff
2019-04-18 10:00:15 -07:00
parent ccad8874e9
commit 4dd64ed72e
8 changed files with 14 additions and 58 deletions
lib
clif-backend
src
signal
llvm-backend
runtime-core
runtime
examples
singlepass-backend

@ -65,10 +65,6 @@ pub trait Compiler {
unsafe fn from_cache(&self, cache: Artifact, _: Token) -> Result<ModuleInner, CacheError>;
}
pub trait UserTrapper {
unsafe fn do_early_trap(&self, data: Box<dyn Any>) -> !;
}
pub trait RunnableModule: Send + Sync {
/// This returns a pointer to the function designated by the `local_func_index`
/// parameter.
@ -83,7 +79,7 @@ pub trait RunnableModule: Send + Sync {
/// signature and an invoke function that can call the trampoline.
fn get_trampoline(&self, info: &ModuleInfo, sig_index: SigIndex) -> Option<Wasm>;
fn get_early_trapper(&self) -> Box<dyn UserTrapper>;
unsafe fn do_early_trap(&self, data: Box<dyn Any>) -> !;
}
pub trait CacheGen: Send + Sync {