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

Method pc_rel

pulley/src/interp.rs:1021–1024  ·  view source on GitHub ↗
(&mut self, offset: PcRelOffset)

Source from the content-addressed store, hash-verified

1019 /// Calculates the `offset` for the current instruction `I`.
1020 #[inline]
1021 fn pc_rel<I: Encode>(&mut self, offset: PcRelOffset) -> NonNull<u8> {
1022 let offset = isize::try_from(i32::from(offset)).unwrap();
1023 unsafe { self.current_pc::<I>().offset(offset) }
1024 }
1025
1026 /// Performs a relative jump of `offset` bytes from the current instruction.
1027 ///

Callers

nothing calls this directly

Calls 3

fromFunction · 0.85
unwrapMethod · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected