Push debugging stuff to help debug calls not working

This commit is contained in:
Lachlan Sneff
2019-01-09 18:31:11 -05:00
parent fcabf95f41
commit 8c74d0a551
75 changed files with 350 additions and 108 deletions

View File

@ -4,27 +4,24 @@ extern crate field_offset;
#[macro_use]
mod macros;
mod backend;
mod backing;
mod instance;
mod memory;
pub mod mmap;
pub mod module;
mod recovery;
mod sig_registry;
mod sighandler;
mod sig_registry;
mod mmap;
pub mod module;
pub mod backend;
pub mod table;
pub mod types;
pub mod vm;
pub mod vmcalls;
pub use self::backend::{Compiler, FuncResolver};
pub use self::instance::{Import, ImportResolver, Imports, FuncRef, Instance, InstanceOptions, InstanceABI};
pub use self::instance::{Import, ImportResolver, Imports, FuncRef, Instance};
pub use self::memory::LinearMemory;
pub use self::module::{Module, ModuleInner};
pub use self::sig_registry::SigRegistry;
/// Compile a webassembly module using the provided compiler.
pub fn compile(wasm: &[u8], compiler: &dyn Compiler) -> Result<Module, String> {
pub fn compile(wasm: &[u8], compiler: &dyn backend::Compiler) -> Result<module::Module, String> {
compiler.compile(wasm)
}