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

Method set_as_target

winch/codegen/src/codegen/control.rs:636–645  ·  view source on GitHub ↗

Set the current control stack frame as a branch target.

(&mut self)

Source from the content-addressed store, hash-verified

634
635 /// Set the current control stack frame as a branch target.
636 pub fn set_as_target(&mut self) {
637 match self {
638 ControlStackFrame::Block {
639 is_branch_target, ..
640 } => {
641 *is_branch_target = true;
642 }
643 _ => {}
644 }
645 }
646
647 /// Returns [`crate::abi::ABIResults`] of the control stack frame
648 /// block.

Callers 3

visit_br_ifMethod · 0.80
visit_unreachableMethod · 0.80
brMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected