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

Method load_vmctx

winch/codegen/src/codegen/context.rs:821–827  ·  view source on GitHub ↗

Load the [VMContext] pointer into the designated pinned register.

(&mut self, masm: &mut M)

Source from the content-addressed store, hash-verified

819
820 /// Load the [VMContext] pointer into the designated pinned register.
821 pub fn load_vmctx<M>(&mut self, masm: &mut M) -> Result<()>
822 where
823 M: MacroAssembler,
824 {
825 let addr = masm.local_address(&self.frame.vmctx_slot())?;
826 masm.load_ptr(addr, writable!(vmctx!(M)))
827 }
828
829 /// Spill locals and registers to memory.
830 // TODO: optimize the spill range;

Callers 1

cleanupMethod · 0.80

Calls 3

vmctx_slotMethod · 0.80
local_addressMethod · 0.45
load_ptrMethod · 0.45

Tested by

no test coverage detected