MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / r#loop

Method r#loop

winch/codegen/src/codegen/control.rs:295–308  ·  view source on GitHub ↗

Returns [`ControlStackFrame`] for a loop.

(
        sig: BlockSig,
        masm: &mut M,
        context: &mut CodeGenContext<Emission>,
    )

Source from the content-addressed store, hash-verified

293
294 /// Returns [`ControlStackFrame`] for a loop.
295 pub fn r#loop<M: MacroAssembler>(
296 sig: BlockSig,
297 masm: &mut M,
298 context: &mut CodeGenContext<Emission>,
299 ) -> Result<Self> {
300 let mut control = Self::Loop {
301 stack_state: Default::default(),
302 sig,
303 head: masm.get_label()?,
304 };
305
306 control.emit(masm, context)?;
307 Ok(control)
308 }
309
310 fn init<M: MacroAssembler>(
311 &mut self,

Callers

nothing calls this directly

Calls 3

OkFunction · 0.85
get_labelMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected