| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | matching.rs | 12 ComponentTypes, NameMap, ResourceIndex, TypeComponentInstance, TypeDef, TypeFuncIndex, 34 expected: &TypeDef, in definition() argument 38 TypeDef::Module(t) => match actual { in definition() 43 TypeDef::ComponentInstance(t) => match actual { in definition() 48 TypeDef::ComponentFunc(t) => match actual { in definition() 53 TypeDef::Component(_) => match actual { in definition() 57 TypeDef::Interface(_) => match actual { in definition() 62 TypeDef::Resource(i) => { in definition() 112 TypeDef::CoreFunc(_) => unreachable!(), in definition() 159 if let TypeDef::Interface(_) = expected { in instance()
|
| H A D | linker.rs | 315 use wasmtime_environ::component::TypeDef; in define_unknown_imports_as_traps() 320 item_def: &TypeDef, in define_unknown_imports_as_traps() argument 325 if !matches!(item_def, TypeDef::ComponentInstance(_)) && linker.get(item_name).is_some() in define_unknown_imports_as_traps() 331 TypeDef::ComponentFunc(_) => { in define_unknown_imports_as_traps() 339 TypeDef::ComponentInstance(i) => { in define_unknown_imports_as_traps() 352 TypeDef::Resource(_) => { in define_unknown_imports_as_traps() 356 TypeDef::Component(_) | TypeDef::Module(_) => { in define_unknown_imports_as_traps()
|
| H A D | types.rs | 12 TypeComponentInstanceIndex, TypeDef, TypeEnumIndex, TypeFlagsIndex, TypeFuncIndex, 1130 pub(crate) fn from(engine: &Engine, def: &TypeDef, ty: &InstanceType<'_>) -> Self { in from() argument 1132 TypeDef::Component(idx) => Self::Component(Component::from(*idx, ty)), in from() 1133 TypeDef::ComponentInstance(idx) => { in from() 1136 TypeDef::ComponentFunc(idx) => Self::ComponentFunc(ComponentFunc::from(*idx, ty)), in from() 1137 TypeDef::Interface(iface_ty) => Self::Type(Type::from(iface_ty, ty)), in from() 1138 TypeDef::Module(idx) => Self::Module(Module::from(*idx, ty)), in from() 1139 TypeDef::CoreFunc(idx) => { in from() 1151 TypeDef::Resource(idx) => match ty.types[*idx] { in from()
|
| H A D | instance.rs | 263 Export::Type(TypeDef::Resource(id)) => { in get_resource()
|
| /wasmtime-44.0.1/crates/environ/src/component/ |
| H A D | types_builder.rs | 132 ) -> TypeDef { in export_type_def() argument 134 Export::LiftedFunction { ty, .. } => TypeDef::ComponentFunc(*ty), in export_type_def() 136 TypeDef::Module(*ty) in export_type_def() 138 Export::Instance { ty, .. } => TypeDef::ComponentInstance(*ty), in export_type_def() 275 ) -> Result<TypeDef> { in convert_component_entity_type() argument 280 TypeDef::Component(self.convert_component(types, id)?) in convert_component_entity_type() 283 TypeDef::ComponentInstance(self.convert_instance(types, id)?) in convert_component_entity_type() 290 TypeDef::Interface(self.defined_type(types, id)?) in convert_component_entity_type() 293 TypeDef::Resource(self.resource_id(id.resource())) in convert_component_entity_type() 307 TypeDef::Component(self.convert_component(types, id)?) in convert_type() [all …]
|
| H A D | types.rs | 452 pub enum TypeDef { enum 472 impl TypeDef { impl 476 TypeDef::Component(_) => "component", in desc() 478 TypeDef::ComponentFunc(_) => "function", in desc() 479 TypeDef::Interface(_) => "type", in desc() 480 TypeDef::Module(_) => "core module", in desc() 481 TypeDef::CoreFunc(_) => "core function", in desc() 482 TypeDef::Resource(_) => "resource", in desc() 546 pub imports: IndexMap<String, TypeDef>, 548 pub exports: IndexMap<String, TypeDef>, [all …]
|
| H A D | info.rs | 79 pub import_types: PrimaryMap<ImportIndex, (String, TypeDef)>, 498 Type(TypeDef),
|
| H A D | dfg.rs | 46 pub import_types: PrimaryMap<ImportIndex, (String, TypeDef)>, 259 Type(TypeDef),
|
| /wasmtime-44.0.1/crates/environ/src/component/translate/ |
| H A D | inline.rs | 114 if let TypeDef::Interface(_) = ty { in run() 269 Type(TypeDef), 1900 fn from_import(path: ImportPath<'a>, ty: TypeDef) -> Result<ComponentItemDef<'a>> { in from_import() 1902 TypeDef::Module(ty) => ComponentItemDef::Module(ModuleDef::Import(path, ty)), in from_import() 1903 TypeDef::ComponentInstance(ty) => { in from_import() 1906 TypeDef::ComponentFunc(_ty) => ComponentItemDef::Func(ComponentFuncDef::Import(path)), in from_import() 1909 TypeDef::Component(_ty) => bail!("root-level component imports are not supported"), in from_import() 1910 TypeDef::Interface(_) | TypeDef::Resource(_) => ComponentItemDef::Type(ty), in from_import() 1911 TypeDef::CoreFunc(_) => unreachable!(), in from_import() 1957 ComponentItemDef::Type(TypeDef::Resource(idx)) => types[idx].unwrap_concrete_ty(), in lookup_resource()
|
| /wasmtime-44.0.1/crates/wit-bindgen/src/ |
| H A D | lib.rs | 1651 fn type_resource(&mut self, id: TypeId, name: &str, _resource: &TypeDef, docs: &Docs) { in type_resource() argument
|