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

Method unbalanced

winch/codegen/src/codegen/control.rs:1072–1074  ·  view source on GitHub ↗

Returns true if the current stack pointer is unbalanced relative to the the expected control frame stack pointer offset. The stack pointer is considered unbalanced relative to the control frame if the stack pointer is greater than the the target stack pointer offset expected by the control frame.

(&self, masm: &mut M)

Source from the content-addressed store, hash-verified

1070 /// to the control frame if the stack pointer is greater than the
1071 /// the target stack pointer offset expected by the control frame.
1072 pub fn unbalanced<M: MacroAssembler>(&self, masm: &mut M) -> Result<bool> {
1073 Ok(masm.sp_offset()? > self.stack_state().target_offset)
1074 }
1075}

Callers 1

visit_br_ifMethod · 0.80

Calls 3

OkFunction · 0.85
stack_stateMethod · 0.80
sp_offsetMethod · 0.45

Tested by

no test coverage detected