Struct wasmer_runtime_fl::StreamingCompiler [−][src]
pub struct StreamingCompiler<MCG, FCG, RM, E, CGEN> where
E: Debug,
MCG: ModuleCodeGenerator<FCG, RM, E>,
FCG: FunctionCodeGenerator<E>,
RM: 'static + RunnableModule,
CGEN: Fn() -> MiddlewareChain, { /* fields omitted */ }
Expand description
A streaming compiler which is designed to generated code for a module based on a stream of wasm parser events.
Implementations
impl<MCG, FCG, RM, E, CGEN> StreamingCompiler<MCG, FCG, RM, E, CGEN> where
E: Debug,
MCG: ModuleCodeGenerator<FCG, RM, E>,
FCG: FunctionCodeGenerator<E>,
RM: 'static + RunnableModule,
CGEN: Fn() -> MiddlewareChain,
impl<MCG, FCG, RM, E, CGEN> StreamingCompiler<MCG, FCG, RM, E, CGEN> where
E: Debug,
MCG: ModuleCodeGenerator<FCG, RM, E>,
FCG: FunctionCodeGenerator<E>,
RM: 'static + RunnableModule,
CGEN: Fn() -> MiddlewareChain,
Create a new StreamingCompiler
with the given MiddlewareChain
.
Trait Implementations
impl<MCG, FCG, RM, E, CGEN> Compiler for StreamingCompiler<MCG, FCG, RM, E, CGEN> where
E: Debug,
MCG: ModuleCodeGenerator<FCG, RM, E>,
FCG: FunctionCodeGenerator<E>,
RM: 'static + RunnableModule,
CGEN: Fn() -> MiddlewareChain,
impl<MCG, FCG, RM, E, CGEN> Compiler for StreamingCompiler<MCG, FCG, RM, E, CGEN> where
E: Debug,
MCG: ModuleCodeGenerator<FCG, RM, E>,
FCG: FunctionCodeGenerator<E>,
RM: 'static + RunnableModule,
CGEN: Fn() -> MiddlewareChain,
pub fn compile(
&self,
wasm: &[u8],
compiler_config: CompilerConfig,
Token
) -> Result<ModuleInner, CompileError>
pub fn compile(
&self,
wasm: &[u8],
compiler_config: CompilerConfig,
Token
) -> Result<ModuleInner, CompileError>
Compiles a Module
from WebAssembly binary format.
The CompileToken
parameter ensures that this can only
be called from inside the runtime. Read more