Home
last modified time | relevance | path

Searched refs:element_type (Results 1 – 18 of 18) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dtable.rs490 pub fn element_type(&self) -> TableElementType { in element_type() method
898 dst.element_type() == src.element_type(), in validate_copy()
949 assert_eq!(self.element_type(), TableElementType::Func); in funcrefs()
972 assert_eq!(self.element_type(), TableElementType::Func); in funcrefs_mut()
995 assert_eq!(self.element_type(), TableElementType::GcRef); in gc_refs()
1006 assert_eq!(self.element_type(), TableElementType::Cont); in contrefs()
1019 assert_eq!(self.element_type(), TableElementType::Cont); in contrefs_mut()
1035 assert_eq!(self.element_type(), TableElementType::GcRef); in gc_refs_mut()
1055 let ty = dst_table.element_type(); in copy_elements()
1103 let ty = self.element_type(); in copy_elements_within()
H A Dconst_expr.rs119 .map(|ty| match &ty.element_type { in struct_new_default()
364 let elem = Val::default_for_ty(ty.element_type().unpack()) in eval_loop()
H A Dlibcalls.rs414 match table.element_type() { in table_fill_func_ref()
437 match table.element_type() { in table_fill_gc_ref()
462 match table.element_type() { in table_fill_cont_obj()
833 .element_type() in array_new_data()
924 .element_type() in array_init_data()
H A Dinstance.rs750 self.get_table(table_index).element_type() in table_element_type()
1261 let elt_ty = self.tables[idx].1.element_type(); in get_defined_table_with_lazy_init()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dtypes.rs1742 element_type: StorageType, field
1748 write!(f, "(mut {})", self.element_type) in fmt()
1761 element_type, in new()
1773 pub fn element_type(&self) -> &StorageType { in element_type() method
1774 &self.element_type in element_type()
1795 (M::Const, M::Const) => self.element_type.matches(&other.element_type), in matches()
1797 (M::Var, M::Var) => StorageType::eq(&self.element_type, &other.element_type), in matches()
1827 element_type: StorageType::from_wasm_storage_type(engine, &ty.element_type), in from_wasm_field_type()
1833 element_type: self.element_type.to_wasm_storage_type(), in to_wasm_field_type()
2196 .element_type in with_finality_and_supertype()
[all …]
/wasmtime-44.0.1/crates/environ/src/
H A Dgc.rs110 let elem_size = byte_size_of_wasm_ty_in_gc_heap(&ty.0.element_type); in common_array_layout()
114 let elems_are_gc_refs = ty.0.element_type.is_vmgcref_type_and_not_i31(); in common_array_layout()
157 let field_size = byte_size_of_wasm_ty_in_gc_heap(&f.element_type); in common_struct_or_exn_layout()
159 let is_gc_ref = f.element_type.is_vmgcref_type_and_not_i31(); in common_struct_or_exn_layout()
H A Dtypes.rs1051 pub element_type: WasmStorageType, field
1066 write!(f, "(mut {})", self.element_type) in fmt()
1068 fmt::Display::fmt(&self.element_type, f) in fmt()
1078 self.element_type.trace(func) in trace()
1085 self.element_type.trace_mut(func) in trace_mut()
2444 ref_type: self.convert_ref_type(ty.element_type)?, in convert_table_type()
2505 element_type: self.convert_storage_type(&ty.element_type)?, in convert_field_type()
/wasmtime-44.0.1/crates/wasi-nn/src/backend/
H A Dopenvino.rs244 fn try_from(element_type: ElementType) -> Result<Self, Self::Error> { in try_from()
245 match element_type { in try_from()
254 element_type.to_string(), in try_from()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/
H A Dstructref.rs315 let ty = ty.element_type().unpack(); in type_check_fields()
355 ty.element_type(), in new_unchecked()
567 Ok(structref.read_field(store, &layout, field_ty.element_type(), index)) in _field()
609 .ensure_matches_ty(&store, &field_ty.element_type().unpack()) in _set_field()
615 structref.write_field(&mut store, &layout, field_ty.element_type(), index, value) in _set_field()
H A Darrayref.rs398 elem.ensure_matches_ty(store, allocator.ty.element_type().unpack()) in new_from_iter()
418 let elem_ty = allocator.ty.element_type(); in new_from_iter()
764 Ok(arrayref.read_elem(store, &layout, field_ty.element_type(), index)) in _get()
809 .ensure_matches_ty(&store, &field_ty.element_type().unpack()) in _set()
821 arrayref.write_elem(&mut store, &layout, field_ty.element_type(), index, value) in _set()
H A Dexnref.rs312 let ty = ty.element_type().unpack(); in type_check_tag_and_fields()
355 ty.element_type(), in new_unchecked()
612 Ok(exnref.read_field(store, &layout, field_ty.element_type(), index)) in _field()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/externals/
H A Dtable.rs172 match table.element_type() { in get()
224 match element_type(&ty) { in set_()
294 let result = match element_type(&ty) { in _grow()
507 match element_type(&ty) { in _fill()
597 fn element_type(ty: &TableType) -> TableElementType { in element_type() function
/wasmtime-44.0.1/crates/cranelift/src/func_environ/gc/
H A Denabled.rs359 .map(|f| default_value(&mut builder.cursor(), func_env, &f.element_type)) in translate_struct_new_default()
391 let field_size = wasmtime_environ::byte_size_of_wasm_ty_in_gc_heap(&field_ty.element_type); in translate_struct_get()
407 field_ty.element_type, in translate_struct_get()
456 field_ty.element_type, in translate_struct_set()
491 accesses.push((field_layout.offset, field_ty.element_type));
604 let elem = default_value(&mut builder.cursor(), func_env, &array_ty.0.element_type); in translate_array_new_default()
678 let elem_ty = array_ty.0.element_type; in initialize()
859 .element_type; in translate_array_fill()
1039 let elem_ty = array_ty.0.element_type; in translate_array_get()
1062 let elem_ty = array_ty.0.element_type; in translate_array_set()
[all …]
/wasmtime-44.0.1/crates/fuzzing/src/generators/gc_ops/
H A Dops.rs210 element_type: RefType::EXTERNREF, in to_wasm_binary()
219 element_type: RefType { in to_wasm_binary()
236 element_type: RefType { in to_wasm_binary()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dtable_pool.rs233 let table_byte_size = table.size() * table.element_type().element_size(); in reset_table_pages_to_zero()
/wasmtime-44.0.1/tests/all/
H A Dtypes.rs33 assert!(StorageType::eq(field_ty.element_type(), &storage_ty)); in basic_array_types()
39 assert!(StorageType::eq(&array_ty.element_type(), &storage_ty)); in basic_array_types()
/wasmtime-44.0.1/crates/environ/src/compile/
H A Dmodule_types.rs340 element_type: WasmStorageType::Val(*valtype), in define_exception_type_for_tag()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dvalues.rs1095 element_type: InterfaceType, in lower_list()
1098 let abi = cx.types.canonical_abi(&element_type); in lower_list()
1108 item.store(cx, element_type, element_ptr)?; in lower_list()