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

Method label

winch/codegen/src/codegen/control.rs:614–621  ·  view source on GitHub ↗

Returns the continuation label of the current control stack frame.

(&self)

Source from the content-addressed store, hash-verified

612
613 /// Returns the continuation label of the current control stack frame.
614 pub fn label(&self) -> &MachLabel {
615 use ControlStackFrame::*;
616
617 match self {
618 If { exit, .. } | Else { exit, .. } | Block { exit, .. } => exit,
619 Loop { head, .. } => head,
620 }
621 }
622
623 /// Returns the exit label of the current control stack frame. Note that
624 /// this is similar to [`ControlStackFrame::label`], with the only difference that it

Callers 2

visit_br_ifMethod · 0.80
brMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected