MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / emit

Method emit

winch/codegen/src/codegen/mod.rs:245–254  ·  view source on GitHub ↗

Emit the function body to machine code.

(
        &mut self,
        body: BinaryReader<'a>,
        validator: &mut FuncValidator<ValidatorResources>,
    )

Source from the content-addressed store, hash-verified

243{
244 /// Emit the function body to machine code.
245 pub fn emit(
246 &mut self,
247 body: BinaryReader<'a>,
248 validator: &mut FuncValidator<ValidatorResources>,
249 ) -> Result<()> {
250 self.emit_body(body, validator)
251 .and_then(|_| self.emit_end())?;
252
253 Ok(())
254 }
255
256 /// Pops a control frame from the control frame stack.
257 pub fn pop_control_frame(&mut self) -> Result<ControlStackFrame> {

Callers

nothing calls this directly

Calls 3

OkFunction · 0.85
emit_bodyMethod · 0.80
emit_endMethod · 0.45

Tested by

no test coverage detected