Merge remote-tracking branch 'private/master' into feature/dynasm-backend

This commit is contained in:
losfair
2019-02-11 18:38:00 +08:00
31 changed files with 364 additions and 416 deletions

View File

@ -83,6 +83,12 @@ pub trait ProtectedCaller: Send + Sync {
vmctx: *mut vm::Ctx,
_: Token,
) -> RuntimeResult<Vec<Value>>;
fn get_early_trapper(&self) -> Box<dyn UserTrapper>;
}
pub trait UserTrapper {
unsafe fn do_early_trap(&self, msg: String) -> !;
}
pub trait FuncResolver: Send + Sync {