[−][src]Trait wasmer_runtime_core::codegen::FunctionCodeGenerator
The function-scope code generator trait.
Required methods
fn feed_return(&mut self, ty: WpType) -> Result<(), E>
Sets the return type.
fn feed_param(&mut self, ty: WpType) -> Result<(), E>
Adds a parameter to the function.
fn feed_local(&mut self, ty: WpType, n: usize) -> Result<(), E>
Adds n
locals to the function.
fn begin_body(&mut self, module_info: &ModuleInfo) -> Result<(), E>
Called before the first call to feed_opcode
.
fn feed_event(&mut self, op: Event, module_info: &ModuleInfo) -> Result<(), E>
Called for each operator.
fn finalize(&mut self) -> Result<(), E>
Finalizes the function.