Lines Matching refs:VMGcRef
8 use crate::runtime::vm::{InterpreterRef, VMGcRef, VmPtr, VmSafe, f32x4, f64x2, i8x16};
542 assert!(size_of::<crate::runtime::vm::VMGcRef>() <= size_of::<VMGlobalDefinition>()); in check_vmglobal_can_contain_gc_ref()
572 let r = VMGcRef::from_raw_u32(raw.get_externref()); in from_val_raw()
576 let r = VMGcRef::from_raw_u32(raw.get_anyref()); in from_val_raw()
582 let r = VMGcRef::from_raw_u32(raw.get_exnref()); in from_val_raw()
741 pub unsafe fn as_gc_ref(&self) -> Option<&VMGcRef> { in as_gc_ref() argument
742 let raw_ptr = self.storage.as_ref().as_ptr().cast::<Option<VMGcRef>>(); in as_gc_ref()
749 pub unsafe fn init_gc_ref(&mut self, store: &mut StoreOpaque, gc_ref: Option<&VMGcRef>) { in init_gc_ref() argument
755 .cast::<MaybeUninit<Option<VMGcRef>>>()) in init_gc_ref()
762 pub unsafe fn write_gc_ref(&mut self, store: &mut StoreOpaque, gc_ref: Option<&VMGcRef>) { in write_gc_ref() argument
763 let dest = unsafe { &mut *(self.storage.as_mut().as_mut_ptr().cast::<Option<VMGcRef>>()) }; in write_gc_ref()