Home
last modified time | relevance | path

Searched refs:RefType (Results 1 – 25 of 32) sorted by relevance

12

/wasmtime-44.0.1/tests/all/
H A Dgc.rs1012 (Ref::Any(None), RefType::NULLREF, true), in ref_matches()
1013 (Ref::Func(None), RefType::NULLREF, false), in ref_matches()
1020 (Ref::Any(None), RefType::ARRAYREF, true), in ref_matches()
1024 (Ref::Any(None), RefType::I31REF, true), in ref_matches()
1025 (Ref::Func(None), RefType::I31REF, false), in ref_matches()
1028 (Ref::Any(None), RefType::EQREF, true), in ref_matches()
1029 (Ref::Func(None), RefType::EQREF, false), in ref_matches()
1032 (Ref::Any(None), RefType::ANYREF, true), in ref_matches()
1033 (Ref::Func(None), RefType::ANYREF, false), in ref_matches()
1044 (Ref::Any(Some(s)), RefType::EQREF, true), in ref_matches()
[all …]
H A Dtable.rs6 let ty = TableType::new(RefType::FUNCREF, 1, None); in get_none()
18 let ty = TableType::new(RefType::FUNCREF, 1, None); in fill_wrong()
42 let ty = TableType::new(RefType::FUNCREF, 1, None); in copy_wrong()
90 RefType::I31REF, in i31ref_table_new()
97 RefType::new(false, HeapType::I31), in i31ref_table_new()
121 RefType::I31REF, in i31ref_table_get()
128 RefType::new(false, HeapType::I31), in i31ref_table_get()
164 RefType::I31REF, in i31ref_table_set()
175 RefType::new(false, HeapType::I31), in i31ref_table_set()
216 (RefType::I31REF, Ref::Any(None)), in i31ref_table_grow()
[all …]
H A Dexternals.rs25 let ty = TableType::new(RefType::FUNCREF, 0, Some(1)); in bad_tables()
29 let ty = TableType::new(RefType::FUNCREF, 0, Some(1)); in bad_tables()
36 let ty = TableType::new(RefType::FUNCREF, 1, Some(1)); in bad_tables()
43 let ty = TableType::new(RefType::FUNCREF, 1, Some(1)); in bad_tables()
50 let ty = TableType::new(RefType::FUNCREF, 1, Some(2)); in bad_tables()
72 let ty = TableType::new(RefType::FUNCREF, 1, None); in cross_store()
102 let ty = TableType::new(RefType::FUNCREF, 1, None); in cross_store()
251 let table_ty = TableType::new(RefType::FUNCREF, 10, None); in create_get_set_funcref_tables_via_api()
269 let table_ty = TableType::new(RefType::FUNCREF, 10, None); in fill_funcref_tables_via_api()
296 let table_ty = TableType::new(RefType::FUNCREF, 10, None); in grow_funcref_tables_via_api()
[all …]
H A Dlinker.rs85 let ty = TableType::new(RefType::FUNCREF, 1, None); in link_twice_bad()
89 let ty = TableType::new(RefType::FUNCREF, 2, None); in link_twice_bad()
472 let ref_null_a = ValType::from(RefType::new(true, HeapType::ConcreteFunc(a.clone()))); in linker_instantiate_with_concrete_func_refs()
475 let ref_null_b = ValType::from(RefType::new(true, HeapType::ConcreteFunc(b.clone()))); in linker_instantiate_with_concrete_func_refs()
478 let ref_null_c = ValType::from(RefType::new(true, HeapType::ConcreteFunc(c.clone()))); in linker_instantiate_with_concrete_func_refs()
581 [ValType::Ref(RefType::new( in linker_defines_func_subtype()
585 [ValType::Ref(RefType::new( in linker_defines_func_subtype()
722 let ref_null_nop = ValType::from(RefType::new(true, HeapType::ConcreteFunc(nop))); in linker_defines_global_subtype_mut_err()
757 TableType::new(RefType::FUNCREF, 0, None), in linker_defines_table_subtype_err()
768 TableType::new(RefType::NULLFUNCREF, 0, None), in linker_defines_table_subtype_err()
H A Dtypes.rs6 StorageType::ValType(RefType::new(true, heap_ty).into()), in field()
13 StorageType::ValType(RefType::new(true, heap_ty).into()), in imm_field()
18 ValType::Ref(RefType::new(true, heap_ty)) in valty()
29 StorageType::ValType(RefType::new(true, FuncType::new(&engine, [], []).into()).into()), in basic_array_types()
67 RefType::new(true, FuncType::new(&engine, [], []).into()).into(), in basic_struct_types()
H A Dlimits.rs53 TableType::new(RefType::FUNCREF, 0, None), in test_limits()
162 TableType::new(RefType::FUNCREF, 0, None), in test_limits_async()
225 TableType::new(RefType::FUNCREF, 0, None), in test_limits_memory_only()
299 TableType::new(RefType::FUNCREF, 0, None), in test_limits_table_only()
337 TableType::new(RefType::FUNCREF, 99, None), in test_initial_table_limits_exceeded()
1149 TableType::new(RefType::FUNCREF, 0, None), in growth_trap()
H A Dglobals.rs383 RefType::new(true, HeapType::ConcreteFunc(sub_func_ty.clone())).into(), in instantiate_global_with_subtype()
410 RefType::new(true, HeapType::ConcreteFunc(func_ty.clone())).into(), in instantiate_global_with_subtype()
447 RefType::new(true, HeapType::ConcreteFunc(ty)).into(), in host_globals_keep_type_registration()
/wasmtime-44.0.1/crates/fuzzing/tests/oom/
H A Dtable.rs3 use wasmtime::{Config, Engine, Ref, RefType, Result, Store, Table, TableType};
19 let ty = TableType::new(RefType::FUNCREF, 1, None); in table_new()
34 let ty = TableType::new(RefType::FUNCREF, 1, None); in table_grow()
50 let ty = TableType::new(RefType::FUNCREF, 1, None); in table_set()
66 let ty = TableType::new(RefType::FUNCREF, 4, None); in table_copy()
82 let ty = TableType::new(RefType::FUNCREF, 4, None); in table_fill()
98 let ty = TableType::new(RefType::FUNCREF, 1, None); in table_get()
115 let ty = TableType::new(RefType::FUNCREF, 1, None); in table_ty()
131 let ty = TableType::new(RefType::FUNCREF, 2, None); in table_size()
H A Dtypes.rs4 Config, Engine, FuncType, GlobalType, MemoryType, Mutability, RefType, Result, TableType,
25 let ty = TableType::new(RefType::FUNCREF, 1, Some(10)); in table_type_accessors()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dtypes.rs103 Ref(RefType),
125 impl From<RefType> for ValType {
127 fn from(r: RefType) -> Self { in from()
412 pub struct RefType { struct
417 impl fmt::Debug for RefType { argument
423 impl fmt::Display for RefType { implementation
433 impl RefType { impl
520 RefType { in new()
560 pub fn eq(a: &RefType, b: &RefType) -> bool { in eq() argument
587 RefType { in from_wasm_type()
[all …]
H A Dvalues.rs3 AnyRef, ArrayRef, AsContext, AsContextMut, ExnRef, ExternRef, Func, HeapType, RefType, Rooted,
185 Val::FuncRef(Some(f)) => ValType::Ref(RefType::new( in load_ty()
190 Val::AnyRef(Some(a)) => ValType::Ref(RefType::new(false, a._ty(store)?)), in load_ty()
192 Val::ExnRef(Some(e)) => ValType::Ref(RefType::new(false, e._ty(store)?.into())), in load_ty()
1035 pub fn ty(&self, store: impl AsContext) -> Result<RefType> { in ty() argument
1039 pub(crate) fn load_ty(&self, store: &StoreOpaque) -> Result<RefType> { in load_ty() argument
1041 Ok(RefType::new( in load_ty()
1069 pub fn matches_ty(&self, store: impl AsContext, ty: &RefType) -> Result<bool> { in matches_ty()
1073 pub(crate) fn _matches_ty(&self, store: &StoreOpaque, ty: &RefType) -> Result<bool> { in _matches_ty()
1123 pub(crate) fn ensure_matches_ty(&self, store: &StoreOpaque, ty: &RefType) -> Result<()> { in ensure_matches_ty()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/
H A Dnone_ref.rs2 HeapType, Ref, RefType, Result, Val, ValRaw, ValType, WasmTy,
96 ValType::Ref(RefType::new(false, HeapType::None)) in valtype()
126 ValType::Ref(RefType::new(true, HeapType::None)) in valtype()
H A Dnoextern.rs2 HeapType, Ref, RefType, Result, Val, ValRaw, ValType, WasmTy,
96 ValType::Ref(RefType::new(false, HeapType::NoExtern)) in valtype()
126 ValType::Ref(RefType::new(true, HeapType::NoExtern)) in valtype()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/
H A Di31.rs9 HeapType, RefType, Result, ValType, WasmTy,
226 ValType::Ref(RefType::new(false, HeapType::I31)) in valtype()
259 ValType::Ref(RefType::new(true, HeapType::I31)) in valtype()
H A Dexternref.rs10 AsContextMut, GcHeapOutOfMemory, GcRefImpl, GcRootIndex, HeapType, OwnedRooted, RefType,
604 ValType::Ref(RefType::new(false, HeapType::Extern)) in valtype()
663 ValType::Ref(RefType::new(false, HeapType::Extern)) in valtype()
H A Deqref.rs5 OwnedRooted, RefType, Rooted, StructRef, StructType, ValRaw, ValType, WasmTy,
475 ValType::Ref(RefType::new(false, HeapType::Eq)) in valtype()
549 ValType::Ref(RefType::new(false, HeapType::Eq)) in valtype()
H A Danyref.rs8 OwnedRooted, RefType, Result, Rooted, StructRef, StructType, ValRaw, ValType, WasmTy,
689 ValType::Ref(RefType::new(false, HeapType::Any)) in valtype()
763 ValType::Ref(RefType::new(false, HeapType::Any)) in valtype()
H A Dexnref.rs9 AsContext, AsContextMut, GcRefImpl, GcRootIndex, HeapType, OwnedRooted, RefType, Result,
636 ValType::Ref(RefType::new(false, HeapType::Exn)) in valtype()
712 ValType::Ref(RefType::new(false, HeapType::Exn)) in valtype()
H A Dstructref.rs11 OwnedRooted, RefType, Rooted, StructType, Val, ValRaw, ValType, WasmTy,
642 ValType::Ref(RefType::new(false, HeapType::Struct)) in valtype()
742 ValType::Ref(RefType::new(false, HeapType::Struct)) in valtype()
H A Darrayref.rs11 OwnedRooted, RefType, Rooted, Val, ValRaw, ValType, WasmTy,
848 ValType::Ref(RefType::new(false, HeapType::Array)) in valtype()
948 ValType::Ref(RefType::new(false, HeapType::Array)) in valtype()
/wasmtime-44.0.1/crates/fuzzing/src/generators/gc_ops/
H A Dops.rs12 GlobalSection, ImportSection, Instruction, Module, RefType, TableSection, TableType,
97 vec![ValType::Ref(RefType { in to_wasm_binary()
182 vec![ValType::Ref(RefType { in to_wasm_binary()
210 element_type: RefType::EXTERNREF, in to_wasm_binary()
219 element_type: RefType { in to_wasm_binary()
236 element_type: RefType { in to_wasm_binary()
264 val_type: ValType::Ref(RefType { in to_wasm_binary()
286 val_type: ValType::Ref(RefType { in to_wasm_binary()
314 ValType::Ref(RefType { in to_wasm_binary()
328 ValType::Ref(RefType { in to_wasm_binary()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/func/
H A Dtyped.rs6 AsContext, AsContextMut, Engine, Func, FuncType, HeapType, NoFunc, RefType, StoreContextMut,
455 ValType::Ref(RefType::new(false, HeapType::NoFunc)) in valtype()
487 ValType::Ref(RefType::new(true, HeapType::NoFunc)) in valtype()
525 ValType::Ref(RefType::new(false, HeapType::Func)) in valtype()
/wasmtime-44.0.1/crates/wast/src/
H A Dspectest.rs69 let ty = TableType::new(RefType::FUNCREF, 10, Some(20)); in link_spectest()
73 let ty = TableType::new64(RefType::FUNCREF, 10, Some(20)); in link_spectest()
/wasmtime-44.0.1/crates/fuzzing/src/oracles/
H A Ddummy.rs40 let table_type = TableType::new(RefType::EXTERNREF, 10, None); in dummy_table_import()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/externals/
H A Dtable.rs9 AnyRef, AsContext, AsContextMut, ExnRef, ExternRef, Func, HeapType, Ref, RefType,
610 ty: &RefType, in into_table_func() argument
635 ty: &RefType, in into_table_gc_ref() argument

12