| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/enabled/ |
| H A D | structref.rs | 3 AnyRef, ExnRef, ExternRef, Func, HeapType, RootedGcRefImpl, StorageType, Val, ValType, 139 ty: &StorageType, in read_field() argument 161 ty: &StorageType, in write_field() argument 274 ty: &StorageType, in initialize_field() argument 291 ty: &StorageType, in read_field_impl() argument 296 StorageType::I8 => Val::I32(data.read_u8(offset).into()), in read_field_impl() 297 StorageType::I16 => Val::I32(data.read_u16(offset).into()), in read_field_impl() 298 StorageType::ValType(ValType::I32) => Val::I32(data.read_i32(offset)), in read_field_impl() 299 StorageType::ValType(ValType::I64) => Val::I64(data.read_i64(offset)), in read_field_impl() 303 StorageType::ValType(ValType::Ref(r)) => match r.heap_type().top() { in read_field_impl() [all …]
|
| H A D | arrayref.rs | 3 AnyRef, ExnRef, ExternRef, Func, HeapType, RootedGcRefImpl, StorageType, Val, ValType, 145 ty: &StorageType, in read_elem() argument 151 StorageType::I8 => Val::I32(data.read_u8(offset).into()), in read_elem() 152 StorageType::I16 => Val::I32(data.read_u16(offset).into()), in read_elem() 153 StorageType::ValType(ValType::I32) => Val::I32(data.read_i32(offset)), in read_elem() 154 StorageType::ValType(ValType::I64) => Val::I64(data.read_i64(offset)), in read_elem() 155 StorageType::ValType(ValType::F32) => Val::F32(data.read_u32(offset)), in read_elem() 156 StorageType::ValType(ValType::F64) => Val::F64(data.read_u64(offset)), in read_elem() 158 StorageType::ValType(ValType::Ref(r)) => match r.heap_type().top() { in read_elem() 202 ty: &StorageType, in write_elem() argument [all …]
|
| H A D | exnref.rs | 3 StorageType, Val, 148 ty: &StorageType, in read_field() argument 175 ty: &StorageType, in initialize_field() argument
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | structs.rs | 41 StorageType::ValType(ValType::ANYREF), in struct_new_unrooted_field() 63 StorageType::ValType(ValType::ANYREF), in struct_new_cross_store_field() 121 StorageType::ValType(ValType::I32), in struct_field_simple() 138 StorageType::ValType(ValType::I32), in struct_field_out_of_bounds() 154 StorageType::ValType(ValType::I32), in struct_field_on_unrooted() 174 StorageType::ValType(ValType::I32), in struct_set_field_simple() 192 StorageType::ValType(ValType::I32), in struct_set_field_out_of_bounds() 208 StorageType::ValType(ValType::I32), in struct_set_field_on_unrooted() 228 StorageType::ValType(ValType::ANYREF), in struct_set_field_with_unrooted() 269 StorageType::ValType(ValType::I32), in struct_set_field_immutable() [all …]
|
| H A D | types.rs | 6 StorageType::ValType(RefType::new(true, heap_ty).into()), in field() 13 StorageType::ValType(RefType::new(true, heap_ty).into()), in imm_field() 26 StorageType::I8, in basic_array_types() 27 StorageType::I16, in basic_array_types() 28 StorageType::ValType(ValType::I32), in basic_array_types() 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() 63 StorageType::I8, in basic_struct_types() 64 StorageType::I16, in basic_struct_types() 65 StorageType::ValType(ValType::I32), in basic_struct_types() [all …]
|
| H A D | arrays.rs | 9 FieldType::new(Mutability::Const, StorageType::I8), in array_new_empty() 38 FieldType::new(Mutability::Var, StorageType::ValType(ValType::ANYREF)), in array_new_unrooted_initial_elem() 60 FieldType::new(Mutability::Var, StorageType::ValType(ValType::ANYREF)), in array_new_cross_store_initial_elem() 78 FieldType::new(Mutability::Var, StorageType::ValType(ValType::ANYREF)), in array_new_cross_store_pre() 549 FieldType::new(Mutability::Const, StorageType::I8), in passing_arrays_through_wasm_with_untyped_calls() 602 FieldType::new(Mutability::Const, StorageType::I8), in passing_arrays_through_wasm_with_typed_calls() 652 FieldType::new(Mutability::Const, StorageType::I8), in host_sets_array_global() 700 FieldType::new(Mutability::Const, StorageType::I8), in wasm_sets_array_global() 752 FieldType::new(Mutability::Const, StorageType::I8), in host_sets_array_in_table() 802 FieldType::new(Mutability::Const, StorageType::I8), in wasm_sets_array_in_table() [all …]
|
| H A D | missing_async.rs | 219 FieldType::new(Mutability::Var, StorageType::I8), in async_disallows_array_ref_new() 232 FieldType::new(Mutability::Var, StorageType::I8), in async_disallows_array_ref_new_fixed() 265 [FieldType::new(Mutability::Var, StorageType::I8)], in async_disallows_structref_new()
|
| H A D | module.rs | 362 ArrayType::new(engine, FieldType::new(Mutability::Const, StorageType::I8)) in concurrent_type_registry_modifications() 365 ArrayType::new(engine, FieldType::new(Mutability::Var, StorageType::I8)) in concurrent_type_registry_modifications()
|
| H A D | gc.rs | 993 ArrayType::new(&engine, FieldType::new(Mutability::Const, StorageType::I8)), in ref_matches() 1228 StorageType::ValType(ValType::Ref(RefType::ANYREF)), in drc_transitive_drop_nested_arrays_tree() 1297 let array_i8_ty = ArrayType::new(&engine, FieldType::new(Mutability::Var, StorageType::I8)); in drc_traces_the_correct_number_of_gc_refs_in_arrays() 1445 StorageType::ValType(ValType::Ref(RefType::new(false, HeapType::Struct))), in issue_10772()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | types.rs | 1571 pub enum StorageType { enum 1604 impl StorageType { implementation 1649 StorageType::I8 | StorageType::I16 => &ValType::I32, in unpack() 1664 (StorageType::I8, StorageType::I8) => true, in matches() 1666 (StorageType::I16, StorageType::I16) => true, in matches() 1668 (StorageType::ValType(a), StorageType::ValType(b)) => a.matches(b), in matches() 1684 (StorageType::I8, StorageType::I8) => true, in eq() 1686 (StorageType::I16, StorageType::I16) => true, in eq() 1688 (StorageType::ValType(a), StorageType::ValType(b)) => ValType::eq(a, b), in eq() 1695 StorageType::I8 | StorageType::I16 => true, in comes_from_same_engine() [all …]
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | ref.rs | 588 WASMTIME_STORAGE_KIND_I8 => StorageType::I8, in field_type_from_c() 589 WASMTIME_STORAGE_KIND_I16 => StorageType::I16, in field_type_from_c() 590 crate::WASMTIME_I32 => StorageType::ValType(ValType::I32), in field_type_from_c() 591 crate::WASMTIME_I64 => StorageType::ValType(ValType::I64), in field_type_from_c() 592 crate::WASMTIME_F32 => StorageType::ValType(ValType::F32), in field_type_from_c() 593 crate::WASMTIME_F64 => StorageType::ValType(ValType::F64), in field_type_from_c() 594 crate::WASMTIME_V128 => StorageType::ValType(ValType::V128), in field_type_from_c() 595 crate::WASMTIME_FUNCREF => StorageType::ValType(ValType::FUNCREF), in field_type_from_c() 596 crate::WASMTIME_EXTERNREF => StorageType::ValType(ValType::EXTERNREF), in field_type_from_c() 597 crate::WASMTIME_ANYREF => StorageType::ValType(ValType::ANYREF), in field_type_from_c() [all …]
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | types.rs | 2510 fn convert_storage_type(&self, ty: &wasmparser::StorageType) -> WasmResult<WasmStorageType> { in convert_storage_type() 2512 wasmparser::StorageType::I8 => WasmStorageType::I8, in convert_storage_type() 2513 wasmparser::StorageType::I16 => WasmStorageType::I16, in convert_storage_type() 2514 wasmparser::StorageType::Val(v) => WasmStorageType::Val(self.convert_valtype(*v)?), in convert_storage_type()
|