MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / jump_if

Method jump_if

crates/tinywasm/src/interpreter/executor.rs:826–831  ·  view source on GitHub ↗
(&mut self, condition: bool, ip: u32)

Source from the content-addressed store, hash-verified

824
825 #[inline(always)]
826 fn jump_if(&mut self, condition: bool, ip: u32) -> bool {
827 if condition {
828 self.cf.instr_ptr = ip;
829 }
830 condition
831 }
832
833 #[inline(always)]
834 fn exec_jump_zero_32(&mut self, target_ip: u32) -> bool {

Calls

no outgoing calls

Tested by

no test coverage detected