Code loader framework.

This commit is contained in:
losfair
2019-05-03 00:23:41 +08:00
parent 99c101f312
commit 14bfd75ac9
7 changed files with 242 additions and 1 deletions

View File

@ -80,6 +80,9 @@ pub trait RunnableModule: Send + Sync {
fn get_trampoline(&self, info: &ModuleInfo, sig_index: SigIndex) -> Option<Wasm>;
unsafe fn do_early_trap(&self, data: Box<dyn Any>) -> !;
fn get_code(&self) -> Option<&[u8]> { None }
fn get_offsets(&self) -> Option<Vec<usize>> { None }
}
pub trait CacheGen: Send + Sync {