| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | table.rs | 490 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 D | const_expr.rs | 119 .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 D | libcalls.rs | 414 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 D | instance.rs | 750 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 D | types.rs | 1742 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 D | gc.rs | 110 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 D | types.rs | 1051 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 D | openvino.rs | 244 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 D | structref.rs | 315 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 D | arrayref.rs | 398 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 D | exnref.rs | 312 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 D | table.rs | 172 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 D | enabled.rs | 359 .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 D | ops.rs | 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()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/ |
| H A D | table_pool.rs | 233 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 D | types.rs | 33 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 D | module_types.rs | 340 element_type: WasmStorageType::Val(*valtype), in define_exception_type_for_tag()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | values.rs | 1095 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()
|