Module wasmer_compiler::translator
source Β· Expand description
This module defines the parser and translator from wasmparser
to a common structure ModuleInfo
.
Itβs derived from cranelift-wasm but architected for multiple compilers rather than just Cranelift.
Re-exports§
pub use self::environ::FunctionBinaryReader;
pub use self::environ::FunctionBodyData;
pub use self::environ::ModuleEnvironment;
pub use self::middleware::FunctionMiddleware;
pub use self::middleware::MiddlewareBinaryReader;
pub use self::middleware::MiddlewareReaderState;
pub use self::middleware::ModuleMiddleware;
pub use self::middleware::ModuleMiddlewareChain;
pub use self::module::translate_module;
pub use self::sections::wpheaptype_to_type;
pub use self::sections::wptype_to_type;
pub use self::state::ModuleTranslationState;
pub use error::from_binaryreadererror_wasmerror;
Modules§
- environ π
- error π
- middleware πThe middleware parses the function binary bytecodes and transform them with the chosen functions.
- module πTranslation skeleton that traverses the whole WebAssembly module and call helper functions to deal with each part of it.
- sections πHelper functions to gather information for each of the non-function sections of a WebAssembly module.
- state π