| /wasmtime-44.0.1/tests/all/ |
| H A D | types.rs | 48 let struct_ty = StructType::new(&engine, [])?; in empty_struct_type() 99 let sub_ty = StructType::with_finality_and_supertype( in struct_type_matches() 117 let not_sub_ty = StructType::new( in struct_type_matches() 131 let not_sub_ty = StructType::new( in struct_type_matches() 142 let not_sub_ty = StructType::new(&engine, [])?; in struct_type_matches() 152 let a = StructType::with_finality_and_supertype( in struct_subtyping_fields_must_match() 222 let b = StructType::with_finality_and_supertype( in struct_subtyping() 230 let d = StructType::with_finality_and_supertype( in struct_subtyping() 239 let g = StructType::with_finality_and_supertype( in struct_subtyping() 246 let h = StructType::with_finality_and_supertype( in struct_subtyping() [all …]
|
| H A D | structs.rs | 17 let struct_ty = StructType::new( in struct_new_with_fields() 37 let struct_ty = StructType::new( in struct_new_unrooted_field() 59 let struct_ty = StructType::new( in struct_new_cross_store_field() 94 let struct_ty = StructType::new( in anyref_as_struct() 117 let struct_ty = StructType::new( in struct_field_simple() 134 let struct_ty = StructType::new( in struct_field_out_of_bounds() 150 let struct_ty = StructType::new( in struct_field_on_unrooted() 170 let struct_ty = StructType::new( in struct_set_field_simple() 188 let struct_ty = StructType::new( in struct_set_field_out_of_bounds() 204 let struct_ty = StructType::new( in struct_set_field_on_unrooted() [all …]
|
| H A D | module.rs | 352 Struct(fn(&Engine) -> StructType), in concurrent_type_registry_modifications() 360 Test::Struct(|engine| StructType::new(engine, []).unwrap()), in concurrent_type_registry_modifications()
|
| H A D | gc.rs | 988 let pre = StructRefPre::new(&mut store, StructType::new(&engine, [])?); in ref_matches() 1437 let empty_pre = StructRefPre::new(&mut store, StructType::new(&engine, [])?); in issue_10772() 1441 StructType::new( in issue_10772()
|
| H A D | missing_async.rs | 263 let ty = StructType::new( in async_disallows_structref_new()
|
| H A D | async_functions.rs | 1091 let struct_ty = StructType::new(cx.engine(), [])?; in async_gc_with_func_new_and_func_wrap() 1114 let struct_ty = StructType::new(cx.engine(), [])?; in async_gc_with_func_new_and_func_wrap()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/disabled/ |
| H A D | structref.rs | 2 AsContext, AsContextMut, GcRefImpl, Result, StructType, Val, 17 pub fn ty(&self, _store: impl AsContext) -> Result<StructType> { in ty() argument 21 pub fn matches_ty(&self, _store: impl AsContext, _ty: &StructType) -> Result<bool> { in matches_ty() 25 pub(crate) fn _matches_ty(&self, _store: &StoreOpaque, _ty: &StructType) -> Result<bool> { in _matches_ty()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/ |
| H A D | structref.rs | 11 OwnedRooted, RefType, Rooted, StructType, Val, ValRaw, ValType, WasmTy, 66 ty: StructType, 72 pub fn new(mut store: impl AsContextMut, ty: StructType) -> Self { in new() 76 pub(crate) fn _new(store: &mut StoreOpaque, ty: StructType) -> Self { in _new() 386 pub fn ty(&self, store: impl AsContext) -> Result<StructType> { in ty() argument 390 pub(crate) fn _ty(&self, store: &StoreOpaque) -> Result<StructType> { in _ty() argument 393 Ok(StructType::from_shared_type_index(store.engine(), index)) in _ty() 408 pub fn matches_ty(&self, store: impl AsContext, ty: &StructType) -> Result<bool> { in matches_ty() 412 pub(crate) fn _matches_ty(&self, store: &StoreOpaque, ty: &StructType) -> Result<bool> { in _matches_ty() 417 pub(crate) fn ensure_matches_ty(&self, store: &StoreOpaque, ty: &StructType) -> Result<()> { in ensure_matches_ty() [all …]
|
| H A D | eqref.rs | 5 OwnedRooted, RefType, Rooted, StructRef, StructType, ValRaw, ValType, WasmTy, 205 StructType::from_shared_type_index(store.engine(), header.ty().unwrap()), in _ty()
|
| H A D | anyref.rs | 8 OwnedRooted, RefType, Result, Rooted, StructRef, StructType, ValRaw, ValType, WasmTy, 374 StructType::from_shared_type_index(store.engine(), header.ty().unwrap()), in _ty()
|
| /wasmtime-44.0.1/crates/c-api/include/wasmtime/ |
| H A D | gc.hh | 144 class StructType { class 154 static StructType create(const Engine &engine, in create() 161 StructType ty; in create() 170 StructType() = default; 186 static StructRefPre create(Store::Context cx, const StructType &ty) { in create()
|
| /wasmtime-44.0.1/crates/c-api/tests/ |
| H A D | gc.cc | 102 auto ty = StructType::create(engine, { in TEST() 139 auto ty = StructType::create(engine, { in TEST() 266 auto ty = StructType::create(engine, {FieldType::const_(WASMTIME_I32)}); in TEST()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | types.rs | 796 ConcreteStruct(StructType), 881 impl From<StructType> for HeapType { 883 fn from(s: StructType) -> Self { in from() 1035 pub fn as_concrete_struct(&self) -> Option<&StructType> { in as_concrete_struct() argument 1050 pub fn unwrap_concrete_struct(&self) -> &StructType { in unwrap_concrete_struct() argument 1858 pub struct StructType { struct 1862 impl fmt::Display for StructType { implementation 1873 impl StructType { implementation 2015 pub fn matches(&self, other: &StructType) -> bool { in matches() 2039 pub fn eq(a: &StructType, b: &StructType) -> bool { in eq() argument [all …]
|
| /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, 67 let struct_ty = StructType::from_shared_type_index(store.engine(), shared_ty); in struct_fields_len() 80 let struct_ty = StructType::from_shared_type_index(store.engine(), shared_ty); in struct_new()
|
| /wasmtime-44.0.1/crates/fuzzing/src/generators/gc_ops/ |
| H A D | types.rs | 24 pub struct StructType {} struct 30 Struct(StructType), 181 composite_type: CompositeType::Struct(StructType::default()), in insert_empty_struct()
|
| H A D | ops.rs | 6 types::{CompositeType, RecGroupId, StructType, TypeId, Types}, 152 CompositeType::Struct(StructType {}) => wasm_encoder::SubType { in to_wasm_binary() 156 inner: wasm_encoder::CompositeInnerType::Struct(wasm_encoder::StructType { in to_wasm_binary()
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | ref.rs | 6 OwnedRooted, Ref, RootScope, StorageType, StructRef, StructRefPre, StructType, Val, ValType, 276 ty: StructType, 616 let ty = StructType::new(&engine.engine, field_types).expect("failed to create struct type"); in wasmtime_struct_type_new()
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | types.rs | 2489 fn convert_struct_type(&self, ty: &wasmparser::StructType) -> WasmResult<WasmStructType> { in convert_struct_type()
|