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

Method exit_label

winch/codegen/src/codegen/control.rs:626–633  ·  view source on GitHub ↗

Returns the exit label of the current control stack frame. Note that this is similar to [`ControlStackFrame::label`], with the only difference that it returns `None` for `Loop` since its label doesn't represent an exit.

(&self)

Source from the content-addressed store, hash-verified

624 /// this is similar to [`ControlStackFrame::label`], with the only difference that it
625 /// returns `None` for `Loop` since its label doesn't represent an exit.
626 pub fn exit_label(&self) -> Option<&MachLabel> {
627 use ControlStackFrame::*;
628
629 match self {
630 If { exit, .. } | Else { exit, .. } | Block { exit, .. } => Some(exit),
631 Loop { .. } => None,
632 }
633 }
634
635 /// Set the current control stack frame as a branch target.
636 pub fn set_as_target(&mut self) {

Callers 2

emit_elseMethod · 0.80
bind_exit_labelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected