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

Method stack_state

winch/codegen/src/codegen/control.rs:1041–1049  ·  view source on GitHub ↗

Returns a reference to the [StackState] of the block.

(&self)

Source from the content-addressed store, hash-verified

1039
1040 /// Returns a reference to the [StackState] of the block.
1041 pub fn stack_state(&self) -> &StackState {
1042 use ControlStackFrame::*;
1043 match self {
1044 If { stack_state, .. }
1045 | Else { stack_state, .. }
1046 | Block { stack_state, .. }
1047 | Loop { stack_state, .. } => stack_state,
1048 }
1049 }
1050
1051 /// Returns true if the current frame is [ControlStackFrame::If].
1052 pub fn is_if(&self) -> bool {

Callers 5

initMethod · 0.80
ensure_stack_stateMethod · 0.80
emit_elseMethod · 0.80
unbalancedMethod · 0.80
brMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected