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

Method addr

pulley/src/interp.rs:1214–1225  ·  view source on GitHub ↗
(self, i: &mut Interpreter<'_>)

Source from the content-addressed store, hash-verified

1212
1213impl AddressingMode for AddrO32 {
1214 unsafe fn addr<T, I: Encode>(self, i: &mut Interpreter<'_>) -> ControlFlow<Done, *mut T> {
1215 // Note that this addressing mode cannot return `ControlFlow::Break`
1216 // which is intentional. It's expected that LLVM optimizes away any
1217 // branches callers have.
1218 unsafe {
1219 ControlFlow::Continue(
1220 i.state[self.addr]
1221 .get_ptr::<T>()
1222 .byte_offset(self.offset as isize),
1223 )
1224 }
1225 }
1226}
1227
1228impl AddressingMode for AddrZ {

Callers

nothing calls this directly

Calls 4

fromFunction · 0.85
is_nullMethod · 0.80
get_u64Method · 0.45
get_u32Method · 0.45

Tested by

no test coverage detected