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

Method br_if32

pulley/src/interp.rs:1439–1446  ·  view source on GitHub ↗
(&mut self, cond: XReg, offset: PcRelOffset)

Source from the content-addressed store, hash-verified

1437 }
1438
1439 fn br_if32(&mut self, cond: XReg, offset: PcRelOffset) -> ControlFlow<Done> {
1440 let cond = self.state[cond].get_u32();
1441 if cond != 0 {
1442 self.pc_rel_jump::<crate::BrIf>(offset)
1443 } else {
1444 ControlFlow::Continue(())
1445 }
1446 }
1447
1448 fn br_if_not32(&mut self, cond: XReg, offset: PcRelOffset) -> ControlFlow<Done> {
1449 let cond = self.state[cond].get_u32();

Callers

nothing calls this directly

Calls 1

get_u32Method · 0.45

Tested by

no test coverage detected