| /wasmtime-44.0.1/crates/c-api/include/wasmtime/ |
| H A D | gc.hh | 16 class StructRef; 181 friend class StructRef; 199 class StructRef { class 211 StructRef(const StructRef &other) { in StructRef() function in wasmtime::StructRef 216 StructRef &operator=(const StructRef &other) { in operator =() 223 StructRef(StructRef &&other) { in StructRef() function in wasmtime::StructRef 229 StructRef &operator=(StructRef &&other) { in operator =() 252 return Result<StructRef>(Error(err)); in create() 253 return Result<StructRef>(StructRef(out)); in create() 293 return StructRef(out); in as_struct() [all …]
|
| H A D | val.hh | 17 class StructRef; 202 inline std::optional<StructRef> as_struct(Store::Context cx) const; 239 friend class StructRef;
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/disabled/ |
| H A D | eqref.rs | 2 ArrayRef, AsContext, GcRefImpl, HeapType, I31, OwnedRooted, Result, Rooted, StructRef, 10 impl From<Rooted<StructRef>> for Rooted<EqRef> { 12 fn from(s: Rooted<StructRef>) -> Self { in from() 17 impl From<OwnedRooted<StructRef>> for OwnedRooted<EqRef> { 19 fn from(s: OwnedRooted<StructRef>) -> Self { in from() 77 pub fn as_struct(&self, _store: impl AsContext) -> Result<Option<StructRef>> { in as_struct() argument 81 pub(crate) fn _as_struct(&self, _store: &StoreOpaque) -> Result<Option<StructRef>> { in _as_struct() argument 85 pub fn unwrap_struct(&self, _store: impl AsContext) -> Result<StructRef> { in unwrap_struct() argument
|
| H A D | anyref.rs | 4 Rooted, StructRef, 26 impl From<Rooted<StructRef>> for Rooted<AnyRef> { 28 fn from(s: Rooted<StructRef>) -> Self { in from() 33 impl From<OwnedRooted<StructRef>> for OwnedRooted<AnyRef> { 35 fn from(s: OwnedRooted<StructRef>) -> Self { in from() 130 pub fn as_struct(&self, _store: impl AsContext) -> Result<Option<StructRef>> { in as_struct() argument 134 pub(crate) fn _as_struct(&self, _store: &StoreOpaque) -> Result<Option<StructRef>> { in _as_struct() argument 138 pub fn unwrap_struct(&self, _store: impl AsContext) -> Result<StructRef> { in unwrap_struct() argument
|
| H A D | structref.rs | 12 pub enum StructRef {} enum 14 impl GcRefImpl for StructRef {} implementation 16 impl StructRef { impl
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/ |
| H A D | structref.rs | 156 pub struct StructRef { struct 160 unsafe impl GcRefImpl for StructRef { implementation 177 impl Rooted<StructRef> { 191 impl OwnedRooted<StructRef> { 205 impl StructRef { impl 237 ) -> Result<Rooted<StructRef>> { in new() argument 278 ) -> Result<Rooted<StructRef>> { in new_async() argument 289 ) -> Result<Rooted<StructRef>> { in _new_async() argument 330 ) -> Result<Rooted<StructRef>> { in new_unchecked() argument 471 structref: &'a StructRef, in _fields() [all …]
|
| H A D | eqref.rs | 5 OwnedRooted, RefType, Rooted, StructRef, StructType, ValRaw, ValType, WasmTy, 95 impl From<Rooted<StructRef>> for Rooted<EqRef> { 97 fn from(s: Rooted<StructRef>) -> Self { in from() 102 impl From<OwnedRooted<StructRef>> for OwnedRooted<EqRef> { 104 fn from(s: OwnedRooted<StructRef>) -> Self { in from() 203 if header.kind().matches(VMGcKind::StructRef) { in _ty() 354 .matches(VMGcKind::StructRef)) in _is_struct() 370 pub fn as_struct(&self, store: impl AsContext) -> Result<Option<Rooted<StructRef>>> { in as_struct() argument 374 pub(crate) fn _as_struct(&self, store: &StoreOpaque) -> Result<Option<Rooted<StructRef>>> { in _as_struct() argument 393 pub fn unwrap_struct(&self, store: impl AsContext) -> Result<Rooted<StructRef>> { in unwrap_struct() argument [all …]
|
| H A D | anyref.rs | 8 OwnedRooted, RefType, Result, Rooted, StructRef, StructType, ValRaw, ValType, WasmTy, 113 impl From<Rooted<StructRef>> for Rooted<AnyRef> { 115 fn from(s: Rooted<StructRef>) -> Self { in from() 120 impl From<OwnedRooted<StructRef>> for OwnedRooted<AnyRef> { 122 fn from(s: OwnedRooted<StructRef>) -> Self { in from() 372 if header.kind().matches(VMGcKind::StructRef) { in _ty() 568 .matches(VMGcKind::StructRef)) in _is_struct() 584 pub fn as_struct(&self, store: impl AsContext) -> Result<Option<Rooted<StructRef>>> { in as_struct() argument 588 pub(crate) fn _as_struct(&self, store: &StoreOpaque) -> Result<Option<Rooted<StructRef>>> { in _as_struct() argument 607 pub fn unwrap_struct(&self, store: impl AsContext) -> Result<Rooted<StructRef>> { in unwrap_struct() argument [all …]
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | structs.rs | 10 StructRef::new(&mut store, &pre, &[])?; in struct_new_empty() 26 StructRef::new( in struct_new_with_fields() 87 let _ = StructRef::new(&mut store, &pre, &[]); in struct_new_cross_store_pre() 160 StructRef::new(&mut scope, &pre, &[Val::I32(1234)])? in struct_field_on_unrooted() 214 StructRef::new(&mut scope, &pre, &[Val::I32(1234)])? in struct_set_field_on_unrooted() 299 let s = StructRef::new(&mut store, &pre, &[])?; in struct_ty() 311 StructRef::new(&mut scope, &pre, &[])? in struct_ty_unrooted() 323 let s = StructRef::new(&mut store, &pre, &[])?; in struct_fields_empty() 357 StructRef::new(&mut scope, &pre, &[])? in struct_fields_unrooted() 440 |mut caller: Caller<()>, s: Rooted<StructRef>| -> Result<Rooted<StructRef>> { in passing_structs_through_wasm_with_typed_calls() [all …]
|
| H A D | missing_async.rs | 268 assert!(StructRef::new(&mut store, &pre, &[Val::I32(0)]).is_err()); in async_disallows_structref_new() 269 StructRef::new_async(&mut store, &pre, &[Val::I32(0)]).await?; in async_disallows_structref_new()
|
| H A D | gc.rs | 989 let s = StructRef::new(&mut store, &pre, &[])?.to_anyref(); in ref_matches() 1197 let cons = StructRef::new(&mut store, &pre, &[externref.into(), cdr.into()])?; in drc_transitive_drop_cons_list() 1438 let empty_struct = StructRef::new(&mut store, &empty_pre, &[])?; in issue_10772() 1449 let tuple_struct = StructRef::new(&mut store, &tuple_pre, &[empty_struct.into()])?; in issue_10772()
|
| H A D | async_functions.rs | 1093 let structref = StructRef::new_async(&mut cx, &struct_pre, &[]).await?; in async_gc_with_func_new_and_func_wrap() 1116 results[1] = StructRef::new_async(&mut cx, &struct_pre, &[]) in async_gc_with_func_new_and_func_wrap()
|
| /wasmtime-44.0.1/crates/c-api/tests/ |
| H A D | gc.cc | 94 TEST(StructRef, CreateAndReadFields) { in TEST() argument 110 StructRef::create(cx, pre, {Val(int32_t(10)), Val(int32_t(20))}); in TEST() 112 StructRef s = result.ok(); in TEST() 132 TEST(StructRef, UpcastAndDowncast) { in TEST() argument 144 auto result = StructRef::create(cx, pre, {Val(int32_t(99))}); in TEST() 146 StructRef s = result.ok(); in TEST() 154 StructRef s2 = eq.as_struct(cx); in TEST() 268 auto result = StructRef::create(cx, pre, {Val(int32_t(77))}); in TEST() 270 StructRef s = result.ok(); in TEST() 281 StructRef s2 = *opt_s2; in TEST()
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | gc.rs | 474 StructRef = 0b101100 << 26, enumerator 538 _ if x == Self::StructRef.as_u32() => Some(Self::StructRef), in try_from_u32() 552 let all = [ExternRef, AnyRef, EqRef, ArrayRef, StructRef, ExnRef]; in kind_matches() 556 (AnyRef, vec![EqRef, ArrayRef, StructRef]), in kind_matches() 558 (EqRef, vec![ArrayRef, StructRef]), in kind_matches() 560 (StructRef, vec![]), in kind_matches()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | values.rs | 4 StructRef, V128, ValType, prelude::*, 614 impl From<Rooted<StructRef>> for Val { 616 fn from(val: Rooted<StructRef>) -> Val { in from() 621 impl From<Option<Rooted<StructRef>>> for Val { 623 fn from(val: Option<Rooted<StructRef>>) -> Val { in from() 820 impl From<Rooted<StructRef>> for Ref { 822 fn from(e: Rooted<StructRef>) -> Ref { in from() 827 impl From<Option<Rooted<StructRef>>> for Ref { 829 fn from(e: Option<Rooted<StructRef>>) -> Ref { in from()
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | ref.rs | 6 OwnedRooted, Ref, RootScope, StorageType, StructRef, StructRefPre, StructType, Val, ValType, 271 ref_wrapper!(StructRef => wasmtime_structref_t); 644 match StructRef::new(&mut scope, &pre.pre, &vals) { in wasmtime_structref_new() 653 crate::initialize(out, None::<OwnedRooted<StructRef>>.into()); in wasmtime_structref_new() 766 crate::initialize(out, None::<OwnedRooted<StructRef>>.into()); in wasmtime_eqref_as_struct() 997 crate::initialize(out, None::<OwnedRooted<StructRef>>.into()); in wasmtime_anyref_as_struct()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | const_expr.rs | 8 AnyRef, ArrayRef, ArrayRefPre, ArrayType, ExternRef, I31, StructRef, StructRefPre, StructType, 83 StructRef::_new_async(store, limiter, &allocator, &fields, self.asyncness).await?; in struct_new()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/ |
| H A D | gc_ref.rs | 497 let kind = VMGcKind::StructRef; in reserved_bits()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/enabled/ |
| H A D | null.rs | 297 VMGcKind::StructRef in alloc_uninit_struct_or_exn()
|
| H A D | structref.rs | 46 header.kind().matches(VMGcKind::StructRef) in is_structref()
|
| H A D | drc.rs | 974 VMGcKind::StructRef in alloc_uninit_struct_or_exn()
|
| /wasmtime-44.0.1/crates/wast/src/ |
| H A D | core.rs | 166 (Val::AnyRef(Some(x)), CoreConst::StructRef) => { in match_val()
|
| /wasmtime-44.0.1/crates/cranelift/src/func_environ/gc/enabled/ |
| H A D | null.rs | 274 VMGcKind::StructRef, in alloc_struct()
|
| H A D | drc.rs | 471 VMGcKind::StructRef, in alloc_struct()
|
| /wasmtime-44.0.1/crates/cranelift/src/func_environ/gc/ |
| H A D | enabled.rs | 381 emit_gc_kind_assert(func_env, builder, struct_ref, VMGcKind::StructRef); in translate_struct_get() 430 emit_gc_kind_assert(func_env, builder, struct_ref, VMGcKind::StructRef); in translate_struct_set() 1235 WasmHeapType::Struct => check_header_kind(func_env, builder, val, VMGcKind::StructRef), in translate_ref_test()
|