Home
last modified time | relevance | path

Searched refs:OwnedRooted (Results 1 – 19 of 19) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/disabled/
H A Danyref.rs3 ArrayRef, AsContext, AsContextMut, EqRef, GcRefImpl, HeapType, I31, OwnedRooted, Result,
19 impl From<OwnedRooted<EqRef>> for OwnedRooted<AnyRef> { implementation
21 fn from(s: OwnedRooted<EqRef>) -> Self { in from()
33 impl From<OwnedRooted<StructRef>> for OwnedRooted<AnyRef> { implementation
35 fn from(s: OwnedRooted<StructRef>) -> Self { in from()
47 impl From<OwnedRooted<ArrayRef>> for OwnedRooted<AnyRef> { implementation
49 fn from(s: OwnedRooted<ArrayRef>) -> Self { in from()
H A Deqref.rs2 ArrayRef, AsContext, GcRefImpl, HeapType, I31, OwnedRooted, Result, Rooted, StructRef,
17 impl From<OwnedRooted<StructRef>> for OwnedRooted<EqRef> { implementation
19 fn from(s: OwnedRooted<StructRef>) -> Self { in from()
31 impl From<OwnedRooted<ArrayRef>> for OwnedRooted<EqRef> { implementation
33 fn from(s: OwnedRooted<ArrayRef>) -> Self { in from()
H A Drooting.rs102 pub fn to_owned_rooted(&self, _store: impl AsContextMut) -> Result<OwnedRooted<T>> { in to_owned_rooted()
160 pub struct OwnedRooted<T> struct
168 impl<T: GcRef> Debug for OwnedRooted<T> { implementation
174 impl<T: GcRef> Deref for OwnedRooted<T> { implementation
182 impl<T> OwnedRooted<T> impl
199 impl<T: GcRef> RootedGcRefImpl<T> for OwnedRooted<T> { implementation
/wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/
H A Deqref.rs5 OwnedRooted, RefType, Rooted, StructRef, StructType, ValRaw, ValType, WasmTy,
102 impl From<OwnedRooted<StructRef>> for OwnedRooted<EqRef> { implementation
104 fn from(s: OwnedRooted<StructRef>) -> Self { in from()
116 impl From<OwnedRooted<ArrayRef>> for OwnedRooted<EqRef> { implementation
118 fn from(s: OwnedRooted<ArrayRef>) -> Self { in from()
148 impl OwnedRooted<EqRef> { implementation
151 pub fn to_anyref(self) -> OwnedRooted<AnyRef> { in to_anyref()
546 unsafe impl WasmTy for OwnedRooted<EqRef> { implementation
576 unsafe impl WasmTy for Option<OwnedRooted<EqRef>> {
613 <OwnedRooted<EqRef>>::wasm_ty_option_store(self, store, ptr, ValRaw::anyref) in store()
[all …]
H A Drooting.rs1564 pub struct OwnedRooted<T> struct
1583 mem::size_of::<OwnedRooted<AnyRef>>() >= 16 && mem::size_of::<OwnedRooted<AnyRef>>() <= 24 argument
1593 impl<T: GcRef> Debug for OwnedRooted<T> { implementation
1610 OwnedRooted { in clone()
1618 impl<T> OwnedRooted<T> implementation
1651 Ok(OwnedRooted { in new()
1814 OwnedRooted { in unchecked_cast()
1907 ) -> OwnedRooted<T> { in from_borrowed_raw_parts_for_c_api()
1918 OwnedRooted { in from_borrowed_raw_parts_for_c_api()
1935 ) -> OwnedRooted<T> { in from_owned_raw_parts_for_c_api()
[all …]
H A Danyref.rs8 OwnedRooted, RefType, Result, Rooted, StructRef, StructType, ValRaw, ValType, WasmTy,
106 impl From<OwnedRooted<EqRef>> for OwnedRooted<AnyRef> { implementation
108 fn from(e: OwnedRooted<EqRef>) -> Self { in from()
120 impl From<OwnedRooted<StructRef>> for OwnedRooted<AnyRef> { implementation
122 fn from(s: OwnedRooted<StructRef>) -> Self { in from()
134 impl From<OwnedRooted<ArrayRef>> for OwnedRooted<AnyRef> { implementation
136 fn from(s: OwnedRooted<ArrayRef>) -> Self { in from()
760 unsafe impl WasmTy for OwnedRooted<AnyRef> { implementation
790 unsafe impl WasmTy for Option<OwnedRooted<AnyRef>> {
827 <OwnedRooted<AnyRef>>::wasm_ty_option_store(self, store, ptr, ValRaw::anyref) in store()
[all …]
H A Dstructref.rs11 OwnedRooted, RefType, Rooted, StructType, Val, ValRaw, ValType, WasmTy,
191 impl OwnedRooted<StructRef> { implementation
194 pub fn to_anyref(self) -> OwnedRooted<AnyRef> { in to_anyref()
200 pub fn to_eqref(self) -> OwnedRooted<EqRef> { in to_eqref()
739 unsafe impl WasmTy for OwnedRooted<StructRef> { implementation
791 unsafe impl WasmTy for Option<OwnedRooted<StructRef>> {
812 OwnedRooted::<StructRef>::dynamic_concrete_type_check(s, store, nullable, ty) in dynamic_concrete_type_check()
830 <OwnedRooted<StructRef>>::wasm_ty_option_store(self, store, ptr, ValRaw::anyref) in store()
834 <OwnedRooted<StructRef>>::wasm_ty_option_load( in load()
H A Darrayref.rs11 OwnedRooted, RefType, Rooted, Val, ValRaw, ValType, WasmTy,
218 impl OwnedRooted<ArrayRef> { impl
221 pub fn to_anyref(self) -> OwnedRooted<AnyRef> { in to_anyref()
227 pub fn to_eqref(self) -> OwnedRooted<EqRef> { in to_eqref()
945 unsafe impl WasmTy for OwnedRooted<ArrayRef> { implementation
997 unsafe impl WasmTy for Option<OwnedRooted<ArrayRef>> {
1017 Some(s) => OwnedRooted::<ArrayRef>::dynamic_concrete_type_check(s, store, nullable, ty), in dynamic_concrete_type_check()
1034 <OwnedRooted<ArrayRef>>::wasm_ty_option_store(self, store, ptr, ValRaw::anyref) in store()
1038 <OwnedRooted<ArrayRef>>::wasm_ty_option_load( in load()
H A Dexternref.rs10 AsContextMut, GcHeapOutOfMemory, GcRefImpl, GcRootIndex, HeapType, OwnedRooted, RefType,
660 unsafe impl WasmTy for OwnedRooted<ExternRef> { implementation
690 unsafe impl WasmTy for Option<OwnedRooted<ExternRef>> {
713 <OwnedRooted<ExternRef>>::wasm_ty_option_store(self, store, ptr, ValRaw::externref) in store()
717 <OwnedRooted<ExternRef>>::wasm_ty_option_load( in load()
H A Dexnref.rs9 AsContext, AsContextMut, GcRefImpl, GcRootIndex, HeapType, OwnedRooted, RefType, Result,
709 unsafe impl WasmTy for OwnedRooted<ExnRef> { implementation
739 unsafe impl WasmTy for Option<OwnedRooted<ExnRef>> {
776 <OwnedRooted<ExnRef>>::wasm_ty_option_store(self, store, ptr, ValRaw::anyref) in store()
780 <OwnedRooted<ExnRef>>::wasm_ty_option_load( in load()
/wasmtime-44.0.1/crates/c-api/src/
H A Dref.rs209 Some(OwnedRooted::from_borrowed_raw_parts_for_c_api(
220 Some(OwnedRooted::from_owned_raw_parts_for_c_api(
234 impl From<Option<OwnedRooted<$wasmtime>>> for $c {
235 fn from(rooted: Option<OwnedRooted<$wasmtime>>) -> $c {
253 impl From<OwnedRooted<$wasmtime>> for $c {
254 fn from(rooted: OwnedRooted<$wasmtime>) -> $c {
766 crate::initialize(out, None::<OwnedRooted<StructRef>>.into()); in wasmtime_eqref_as_struct()
937 crate::initialize(out, None::<OwnedRooted<ArrayRef>>.into()); in wasmtime_eqref_as_array()
967 crate::initialize(out, None::<OwnedRooted<EqRef>>.into()); in wasmtime_anyref_as_eqref()
997 crate::initialize(out, None::<OwnedRooted<StructRef>>.into()); in wasmtime_anyref_as_struct()
[all …]
H A Dexn.rs9 exn: wasmtime::OwnedRooted<ExnRef>,
/wasmtime-44.0.1/tests/all/
H A Di31ref.rs62 let f = instance.get_typed_func::<Option<OwnedRooted<AnyRef>>, Option<OwnedRooted<AnyRef>>>( in owned_rooted_i31ref_through_typed_wasm_func()
H A Dfunc.rs404 Func::wrap(&mut store, || -> OwnedRooted<ExternRef> { in func_constructors()
412 Func::wrap(&mut store, || -> OwnedRooted<AnyRef> { in func_constructors()
458 Func::wrap(&mut store, || -> Result<OwnedRooted<ExternRef>> { in func_constructors()
470 Func::wrap(&mut store, || -> Result<OwnedRooted<AnyRef>> { in func_constructors()
603 _: Option<OwnedRooted<ExternRef>>, in signatures_match()
605 _: Option<OwnedRooted<AnyRef>>, in signatures_match()
700 g: Option<OwnedRooted<ExternRef>>, in import_works()
703 j: Option<OwnedRooted<AnyRef>>, in import_works()
830 f.typed::<(), Option<OwnedRooted<ExternRef>>>(&store) in get_from_wrapper()
841 let f = Func::wrap(&mut store, || -> OwnedRooted<AnyRef> { in get_from_wrapper()
[all …]
/wasmtime-44.0.1/crates/debugger/src/host/
H A Dopaque.rs8 Module, OwnedRooted, Result, Table, Tag, TagType, Val, ValType,
99 async fn exnref_get_tag(&mut self, exn: OwnedRooted<ExnRef>) -> Result<Tag>; in exnref_get_tag()
100 async fn exnref_get_fields(&mut self, exn: OwnedRooted<ExnRef>) -> Result<Vec<WasmValue>>; in exnref_get_fields()
102 -> Result<OwnedRooted<ExnRef>>; in exnref_new()
452 async fn exnref_get_tag(&mut self, exn: OwnedRooted<ExnRef>) -> Result<Tag> { in exnref_get_tag()
457 async fn exnref_get_fields(&mut self, exn: OwnedRooted<ExnRef>) -> Result<Vec<WasmValue>> { in exnref_get_fields()
475 ) -> Result<OwnedRooted<ExnRef>> { in exnref_new()
476 self.with_store(move |mut store| -> Result<OwnedRooted<ExnRef>> { in exnref_new()
H A Dapi.rs10 Engine, ExnRef, FrameHandle, Func, Global, Instance, Memory, Module, OwnedRooted, Result,
160 pub struct WasmException(OwnedRooted<ExnRef>);
171 Exn(Option<OwnedRooted<ExnRef>>),
/wasmtime-44.0.1/crates/debugger/src/
H A Dlib.rs26 AsContextMut, DebugEvent, DebugHandler, Engine, ExnRef, OwnedRooted, Result, Store,
518 CaughtExceptionThrown(OwnedRooted<ExnRef>),
520 UncaughtExceptionThrown(OwnedRooted<ExnRef>),
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Ddebug.rs10 OwnedRooted, StoreContext, StoreContextMut, Val,
873 CaughtExceptionThrown(OwnedRooted<ExnRef>),
875 UncaughtExceptionThrown(OwnedRooted<ExnRef>),
H A Dstore.rs80 use crate::OwnedRooted;
2693 ) -> Result<Option<OwnedRooted<ExnRef>>, crate::error::OutOfMemory> { in pending_exception_owned_rooted()
2700 OwnedRooted::new(&mut nogc, vmexnref.into()) in pending_exception_owned_rooted()