| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/ |
| H A D | gc_runtime.rs | 6 VMExternRef, VMGcHeader, VMGcObjectData, VMGcRef, 145 fn clone_gc_ref(&mut self, gc_ref: &VMGcRef) -> VMGcRef; in clone_gc_ref() argument 179 destination: &mut Option<VMGcRef>, in write_gc_ref() argument 180 source: Option<&VMGcRef>, in write_gc_ref() argument 297 ) -> Result<Result<VMGcRef, u64>>; in alloc_uninit_struct_or_exn() argument 514 a: &VMGcRef, in gc_object_data_pair() argument 515 b: &VMGcRef, in gc_object_data_pair() argument 572 NonStack(SendSyncPtr<VMGcRef>), 658 _phantom: marker::PhantomData<&'a mut VMGcRef>, 672 pub fn get(&self) -> VMGcRef { in get() argument [all …]
|
| H A D | disabled.rs | 3 use super::VMGcRef; 18 impl VMGcRef { implementation 28 impl From<VMStructRef> for VMGcRef { implementation 29 fn from(s: VMStructRef) -> VMGcRef { in from() argument 34 impl From<VMExnRef> for VMGcRef { implementation 35 fn from(e: VMExnRef) -> VMGcRef { in from() argument
|
| H A D | gc_ref.rs | 147 pub struct VMGcRef(NonZeroU32); struct 149 impl<T> From<TypedGcRef<T>> for VMGcRef { implementation 156 impl fmt::LowerHex for VMGcRef { implementation 162 impl fmt::UpperHex for VMGcRef { implementation 168 impl fmt::Pointer for VMGcRef { implementation 174 impl VMGcRef { implementation 214 VMGcRef(raw) in from_raw_non_zero_u32() 235 VMGcRef(self.0) in unchecked_copy() 330 gc_ref: VMGcRef(_), in as_typed() 356 gc_ref: VMGcRef(_), in as_typed_unchecked() [all …]
|
| H A D | i31.rs | 3 use super::VMGcRef; 27 const DISCRIMINANT: u32 = VMGcRef::I31_REF_DISCRIMINANT;
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | gc.rs | 120 pub fn clone_gc_ref(&mut self, gc_ref: &VMGcRef) -> VMGcRef { in clone_gc_ref() argument 133 source: Option<&VMGcRef>, in init_gc_ref() argument 151 dest: &mut Option<VMGcRef>, in needs_write_barrier() argument 152 gc_ref: Option<&VMGcRef>, in needs_write_barrier() argument 168 dest: &mut Option<VMGcRef>, in write_gc_ref_optional_store() argument 169 gc_ref: Option<&VMGcRef>, in write_gc_ref_optional_store() argument 180 pub fn write_gc_ref(&mut self, destination: &mut Option<VMGcRef>, source: Option<&VMGcRef>) { in write_gc_ref() argument 193 pub fn drop_gc_ref(&mut self, gc_ref: VMGcRef) { in drop_gc_ref() argument 263 ) -> Result<Result<VMGcRef, u64>> { in alloc_raw() argument 314 a: &VMGcRef, in gc_object_data_pair() argument [all …]
|
| H A D | table.rs | 9 use crate::runtime::vm::{GcStore, SendSyncPtr, VMGcRef, VmPtr}; 93 core::mem::size_of::<Option<VMGcRef>>(), 148 data: SendSyncPtr<[Option<VMGcRef>]>, 198 elements: TryVec<Option<VMGcRef>>, 397 data.align_to::<Option<VMGcRef>>() in new_static() 410 data.as_non_null().cast::<Option<VMGcRef>>(), in new_static() 569 val: Option<&VMGcRef>, in fill_gc_ref() argument 639 init_value: Option<&VMGcRef>, in grow_gc_ref() argument 821 elem: Option<&VMGcRef>, in set_gc_ref() argument 994 fn gc_refs(&self) -> &[Option<VMGcRef>] { in gc_refs() argument [all …]
|
| H A D | vmcontext.rs | 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 [all …]
|
| H A D | libcalls.rs | 62 use crate::runtime::vm::VMGcRef; 347 let element = VMGcRef::from_raw_u32(init_value); in table_grow_gc_ref() 440 let gc_ref = VMGcRef::from_raw_u32(val); in table_fill_gc_ref() 640 let gc_ref = VMGcRef::from_raw_u32(gc_ref).expect("non-null VMGcRef"); in drop_gc_ref() 904 let gc_ref = VMGcRef::from_raw_u32(array).ok_or_else(|| Trap::NullReference)?; in array_init_data() 1079 let array = VMGcRef::from_raw_u32(array).ok_or_else(|| Trap::NullReference)?; in array_init_elem() 1170 let dst_array = VMGcRef::from_raw_u32(dst_array).ok_or_else(|| Trap::NullReference)?; in array_copy() 1173 let src_array = VMGcRef::from_raw_u32(src_array).ok_or_else(|| Trap::NullReference)?; in array_copy() 1746 let exnref = VMGcRef::from_raw_u32(exnref).ok_or_else(|| Trap::NullReference)?; in throw_ref()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/enabled/ |
| H A D | externref.rs | 1 use crate::runtime::vm::{GcHeap, GcStore, VMGcRef}; 16 pub struct VMExternRef(VMGcRef); 24 impl From<VMExternRef> for VMGcRef { implementation 31 impl VMGcRef { impl 35 pub fn into_externref(self, gc_heap: &impl GcHeap) -> Result<VMExternRef, VMGcRef> { in into_externref() argument 66 let ptr = self as *const VMGcRef; in as_externref() constant 68 assert!(matches!(ret, VMExternRef(VMGcRef { .. }))); in as_externref() 78 pub fn as_gc_ref(&self) -> &VMGcRef { in as_gc_ref() argument
|
| H A D | exnref.rs | 5 runtime::vm::{GcHeap, GcStore, VMGcRef}, 22 pub struct VMExnRef(VMGcRef); 30 impl From<VMExnRef> for VMGcRef { implementation 37 impl VMGcRef { implementation 52 pub fn into_exnref(self, gc_heap: &(impl GcHeap + ?Sized)) -> Result<VMExnRef, VMGcRef> { in into_exnref() argument 90 let ptr = self as *const VMGcRef; in as_exnref_unchecked() constant 92 assert!(matches!(ret, VMExnRef(VMGcRef { .. }))); in as_exnref_unchecked() 99 pub fn as_gc_ref(&self) -> &VMGcRef { in as_gc_ref() argument 109 pub fn as_gc_ref_mut(&mut self) -> &mut VMGcRef { in as_gc_ref_mut() argument
|
| H A D | null.rs | 13 GcProgress, GcRootsIter, GcRuntime, SendSyncUnsafeCell, TypedGcRef, VMGcHeader, VMGcRef, 169 let gc_ref = VMGcRef::from_heap_index(aligned).unwrap(); in alloc() 237 fn clone_gc_ref(&mut self, gc_ref: &VMGcRef) -> VMGcRef { in clone_gc_ref() argument 244 destination: &mut Option<VMGcRef>, in write_gc_ref() argument 245 source: Option<&VMGcRef>, in write_gc_ref() argument 250 fn expose_gc_ref_to_wasm(&mut self, _gc_ref: VMGcRef) { in expose_gc_ref_to_wasm() argument 272 fn object_size(&self, gc_ref: &VMGcRef) -> usize { in object_size() 277 fn header(&self, gc_ref: &VMGcRef) -> &VMGcHeader { in header() 281 fn header_mut(&mut self, gc_ref: &VMGcRef) -> &mut VMGcHeader { in header_mut() 293 ) -> Result<Result<VMGcRef, u64>> { in alloc_uninit_struct_or_exn() argument [all …]
|
| H A D | drc.rs | 128 over_approximated_stack_roots: Box<Option<VMGcRef>>, 154 dec_ref_stack: Option<Vec<VMGcRef>>, 177 fn dealloc(&mut self, gc_ref: VMGcRef) { in dealloc() argument 193 fn inc_ref(&mut self, gc_ref: &VMGcRef) { in inc_ref() argument 213 fn dec_ref(&mut self, gc_ref: &VMGcRef) -> bool { in dec_ref() 241 gc_ref: &VMGcRef, in dec_ref_and_maybe_dealloc() argument 312 fn trace_gc_ref(&self, gc_ref: &VMGcRef, stack: &mut Vec<VMGcRef>) { in trace_gc_ref() argument 829 fn clone_gc_ref(&mut self, gc_ref: &VMGcRef) -> VMGcRef { in clone_gc_ref() argument 837 destination: &mut Option<VMGcRef>, in write_gc_ref() argument 838 source: Option<&VMGcRef>, in write_gc_ref() argument [all …]
|
| H A D | structref.rs | 5 runtime::vm::{GcHeap, GcStore, VMGcRef}, 23 pub struct VMStructRef(VMGcRef); 31 impl From<VMStructRef> for VMGcRef { implementation 38 impl VMGcRef { implementation 91 let ptr = self as *const VMGcRef; in as_structref_unchecked() constant 93 assert!(matches!(ret, VMStructRef(VMGcRef { .. }))); in as_structref_unchecked() 100 pub fn as_gc_ref(&self) -> &VMGcRef { in as_gc_ref() argument 193 let mut gc_ref = VMGcRef::from_raw_u32(raw); in write_field() 205 let mut gc_ref = VMGcRef::from_raw_u32(raw); in write_field() 289 gc_ref: &VMGcRef, in read_field_impl() argument [all …]
|
| H A D | arrayref.rs | 5 runtime::vm::{GcHeap, GcStore, VMGcRef}, 23 pub struct VMArrayRef(VMGcRef); 31 impl From<VMArrayRef> for VMGcRef { implementation 38 impl VMGcRef { implementation 53 pub fn into_arrayref(self, gc_heap: &(impl GcHeap + ?Sized)) -> Result<VMArrayRef, VMGcRef> { in into_arrayref() argument 91 let ptr = self as *const VMGcRef; in as_arrayref_unchecked() constant 93 assert!(matches!(ret, VMArrayRef(VMGcRef { .. }))); in as_arrayref_unchecked() 100 pub fn as_gc_ref(&self) -> &VMGcRef { in as_gc_ref() argument 233 let mut gc_ref = VMGcRef::from_raw_u32(raw); in write_elem() 245 let mut gc_ref = VMGcRef::from_raw_u32(raw); in write_elem() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/ |
| H A D | rooting.rs | 164 use crate::runtime::vm::{GcRootsList, GcStore, VMGcRef}; 212 fn get_gc_ref<'a>(&self, store: &'a StoreOpaque) -> Option<&'a VMGcRef>; in get_gc_ref() argument 424 owned_rooted: Slab<VMGcRef>, 447 gc_ref: VMGcRef, 937 fn get_gc_ref<'a>(&self, store: &'a StoreOpaque) -> Option<&'a VMGcRef> { in get_gc_ref() argument 1237 let gc_ref = VMGcRef::from_raw_u32(raw_gc_ref).expect("non-null"); in wasm_ty_load() 1276 let gc_ref = VMGcRef::from_raw_u32(raw_gc_ref)?; in wasm_ty_option_load() 1633 gc_ref: VMGcRef, in new() argument 1851 let gc_ref = VMGcRef::from_raw_u32(raw_gc_ref).expect("non-null"); in wasm_ty_load() 1883 let gc_ref = VMGcRef::from_raw_u32(raw_gc_ref)?; in wasm_ty_option_load() [all …]
|
| H A D | i31.rs | 7 use crate::runtime::vm::{VMGcRef, ValRaw}; 244 let gc_ref = VMGcRef::from_i31(self.into()).as_raw_u32(); in store() 251 let gc_ref = VMGcRef::from_raw_u32(raw).expect("non-null"); in load() 288 let gc_ref = VMGcRef::from_raw_u32(raw)?; in load()
|
| H A D | externref.rs | 5 use crate::runtime::vm::{self, VMGcRef}; 419 gc_ref: VMGcRef, in from_cloned_gc_ref() argument 572 let gc_ref = VMGcRef::from_raw_u32(raw)?; in _from_raw()
|
| H A D | anyref.rs | 5 use crate::runtime::vm::VMGcRef; 182 let gc_ref = VMGcRef::from_i31(value.runtime_i31()); in _from_i31() 282 let gc_ref = VMGcRef::from_raw_u32(raw)?; in _from_raw() 294 gc_ref: VMGcRef, in from_cloned_gc_ref() argument
|
| H A D | eqref.rs | 7 runtime::vm::VMGcRef, 164 gc_ref: VMGcRef, in from_cloned_gc_ref() argument 274 let gc_ref = VMGcRef::from_i31(value.runtime_i31()); in _from_i31()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/disabled/ |
| H A D | rooting.rs | 1 use crate::runtime::vm::{GcStore, VMGcRef}; 18 fn get_gc_ref<'a>(&self, _store: &'a StoreOpaque) -> Option<&'a VMGcRef> { in get_gc_ref() argument 22 fn try_gc_ref<'a>(&self, _store: &'a StoreOpaque) -> Result<&'a VMGcRef> { in try_gc_ref() argument 26 fn clone_gc_ref(&self, _store: &mut AutoAssertNoGc<'_>) -> Option<VMGcRef> { in clone_gc_ref() argument 30 fn try_clone_gc_ref(&self, _store: &mut AutoAssertNoGc<'_>) -> Result<VMGcRef> { in try_clone_gc_ref() argument
|
| H A D | externref.rs | 1 use crate::runtime::vm::VMGcRef; 16 _gc_ref: VMGcRef, in from_cloned_gc_ref() argument
|
| H A D | exnref.rs | 6 vm::VMGcRef, 22 _gc_ref: VMGcRef, in from_cloned_gc_ref() argument
|
| H A D | anyref.rs | 1 use crate::runtime::vm::VMGcRef; 59 _gc_ref: VMGcRef, in from_cloned_gc_ref() argument
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/store/ |
| H A D | gc.rs | 4 use crate::runtime::vm::VMGcRef; 21 root: Option<VMGcRef>, in gc() argument 24 ) -> Option<VMGcRef> { in gc() argument
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | store.rs | 97 SendSyncPtr, SignalHandler, StoreBox, Unwind, VMContext, VMFuncRef, VMGcRef, VMStore, 2184 let gc_ref = vm::VMGcRef::from_raw_u32(raw); in trace_wasm_stack_slot() 2288 dest: &mut MaybeUninit<Option<VMGcRef>>, in init_gc_ref() argument 2289 gc_ref: Option<&VMGcRef>, in init_gc_ref() argument 2301 pub(crate) fn write_gc_ref(&mut self, dest: &mut Option<VMGcRef>, gc_ref: Option<&VMGcRef>) { in write_gc_ref() argument 2307 pub(crate) fn clone_gc_ref(&mut self, gc_ref: &VMGcRef) -> VMGcRef { in clone_gc_ref() argument 2709 let exnref = VMGcRef::from_raw_u32(exnref) in throw_impl()
|