Load the [VMContext] pointer into the designated pinned register.
(&mut self, masm: &mut M)
| 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; |
no test coverage detected