| /wasmtime-44.0.1/crates/wasmtime/src/runtime/types/ |
| H A D | matching.rs | 25 EntityType::Table(expected) => match actual { in definition() 74 pub fn entity_ty(engine: &Engine, expected: &EntityType, actual: &EntityType) -> Result<()> { in entity_ty() argument 84 EntityType::Table(expected) => match actual { in entity_ty() 89 EntityType::Function(actual) => { in entity_ty() 96 EntityType::Tag(expected) => match actual { in entity_ty() 414 fn entity_desc(ty: &EntityType) -> &'static str { in entity_desc() 416 EntityType::Global(_) => "global", in entity_desc() 417 EntityType::Table(_) => "table", in entity_desc() 418 EntityType::Memory(_) => "memory", in entity_desc() 419 EntityType::Function(_) => "func", in entity_desc() [all …]
|
| /wasmtime-44.0.1/crates/environ/src/fact/ |
| H A D | transcode.rs | 5 use wasm_encoder::{EntityType, ValType}; 26 pub fn ty(&self, types: &mut CoreTypes) -> EntityType { in ty() argument 88 EntityType::Function(ty) in ty()
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | module.rs | 569 pub fn imports(&self) -> impl ExactSizeIterator<Item = (&str, &str, EntityType)> { in imports() argument 579 pub fn import(&self, i: usize) -> Option<(&str, &str, EntityType)> { in import() argument 590 pub fn type_of(&self, index: EntityIndex) -> EntityType { in type_of() argument 592 EntityIndex::Global(i) => EntityType::Global(self.globals[i]), in type_of() 593 EntityIndex::Table(i) => EntityType::Table(self.tables[i]), in type_of() 594 EntityIndex::Memory(i) => EntityType::Memory(self.memories[i]), in type_of() 595 EntityIndex::Function(i) => EntityType::Function(self.functions[i].signature), in type_of() 596 EntityIndex::Tag(i) => EntityType::Tag(self.tags[i]), in type_of()
|
| H A D | fact.rs | 418 self.import(module, name, EntityType::Function(ty), def, |m| { in import_func() 430 self.import(module, name, EntityType::Global(ty), def, |m| { in import_global() 442 self.import(module, name, EntityType::Memory(ty), def, |m| { in import_memory() 451 ty: EntityType, in import() argument 544 let ty = EntityType::Function(ty); in import_simple_get_and_set() 577 EntityType::Function(ty), in import_prepare_call() 609 EntityType::Function(ty), in import_sync_start_call()
|
| H A D | types.rs | 1766 pub enum EntityType { enum 1780 impl TypeTrace for EntityType { implementation 1808 impl EntityType { implementation 1812 EntityType::Global(g) => g, in unwrap_global() 1820 EntityType::Memory(g) => g, in unwrap_memory() 1828 EntityType::Tag(g) => g, in unwrap_tag() 1836 EntityType::Table(g) => g, in unwrap_table() 1844 EntityType::Function(g) => *g, in unwrap_func()
|
| /wasmtime-44.0.1/crates/environ/src/compile/ |
| H A D | module_environ.rs | 352 EntityType::Function(interned_index) in translate_payload() 356 EntityType::Memory(ty.into()) in translate_payload() 364 EntityType::Table(self.convert_table_type(&ty)?) in translate_payload() 377 EntityType::Tag(tag) in translate_payload() 822 ty: EntityType, in declare_import() argument 833 fn push_type(&mut self, ty: EntityType) -> EntityIndex { in push_type() 835 EntityType::Function(ty) => EntityIndex::Function({ in push_type() 845 EntityType::Table(ty) => { in push_type() 848 EntityType::Memory(ty) => { in push_type() 851 EntityType::Global(ty) => { in push_type() [all …]
|
| /wasmtime-44.0.1/crates/environ/src/component/ |
| H A D | types_builder.rs | 5 EngineOrModuleTypeIndex, EntityType, ModuleInternedTypeIndex, ModuleTypes, ModuleTypesBuilder, 404 ty: &wasmparser::types::EntityType, in entity_type() argument 405 ) -> Result<EntityType> { in entity_type() argument 406 use wasmparser::types::EntityType::*; in entity_type() 410 Func(id) => EntityType::Function({ in entity_type() 415 Table(ty) => EntityType::Table(self.convert_table_type(ty)?), in entity_type() 416 Memory(ty) => EntityType::Memory((*ty).into()), in entity_type() 417 Global(ty) => EntityType::Global(self.convert_global_type(ty)?), in entity_type() 423 EntityType::Tag(crate::types::Tag { in entity_type()
|
| H A D | types.rs | 2 use crate::{EntityType, ModuleInternedTypeIndex, ModuleTypes, PrimaryMap}; 505 pub imports: IndexMap<(String, String), EntityType>, 511 pub exports: IndexMap<String, EntityType>,
|
| H A D | translate.rs | 592 let (_, _, crate::types::EntityType::Function(_)) = in analyze_function_imports()
|
| /wasmtime-44.0.1/crates/fuzzing/src/generators/gc_ops/ |
| H A D | ops.rs | 11 CodeSection, ConstExpr, EntityType, ExportKind, ExportSection, Function, FunctionSection, 192 imports.import("", "gc", EntityType::Function(0)); in to_wasm_binary() 193 imports.import("", "take_refs", EntityType::Function(2)); in to_wasm_binary() 194 imports.import("", "make_refs", EntityType::Function(3)); in to_wasm_binary() 195 imports.import("", "take_struct", EntityType::Function(4)); in to_wasm_binary() 204 imports.import("", &name, EntityType::Function(ty_idx)); in to_wasm_binary()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | types.rs | 11 EngineOrModuleTypeIndex, EntityType, Global, IndexType, Limits, Memory, ModuleTypes, 1494 ty: &EntityType, in from_wasmtime() argument 1497 EntityType::Function(idx) => match idx { in from_wasmtime() 1518 EntityType::Global(ty) => GlobalType::from_wasmtime_global(engine, ty).into(), in from_wasmtime() 1519 EntityType::Memory(ty) => MemoryType::from_wasmtime_memory(ty).into(), in from_wasmtime() 1520 EntityType::Table(ty) => TableType::from_wasmtime_table(engine, ty).into(), in from_wasmtime() 1521 EntityType::Tag(ty) => TagType::from_wasmtime_tag(engine, ty).into(), in from_wasmtime() 3547 ty: EntityType, 3558 ty: EntityType, in new() argument 3613 ty: EntityType, [all …]
|
| H A D | instance.rs | 19 EntityIndex, EntityType, FuncIndex, GlobalIndex, MemoryIndex, TableIndex, TagIndex, TypeTrace, 1031 check: impl Fn(&matching::MatchCx<'_>, &EntityType, &I) -> Result<()>, in typecheck() argument
|
| /wasmtime-44.0.1/crates/environ/src/component/translate/ |
| H A D | adapt.rs | 118 use crate::EntityType; 282 ty: EntityType, in fact_import_to_core_def() argument
|
| H A D | inline.rs | 49 use crate::{EntityType, IndexType}; 1541 EntityType::Memory(m) => match m.idx_type { in memory()
|
| /wasmtime-44.0.1/crates/fuzzing/src/generators/ |
| H A D | stacks.rs | 168 wasm_encoder::EntityType::Function(check_stack_type), in wasm() 174 wasm_encoder::EntityType::Function(call_func_type), in wasm()
|
| H A D | exception_ops.rs | 12 BlockType, CodeSection, EntityType, ExportKind, ExportSection, Function, FunctionSection, 243 imports.import("", "check_i32", EntityType::Function(fn_type_check)); in encode()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | instance.rs | 21 use wasmtime_environ::{EntityIndex, EntityType, PrimaryMap}; 1022 expected: EntityType, in assert_type_matches() argument
|