Home
last modified time | relevance | path

Searched refs:ComponentInstance (Results 1 – 23 of 23) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dstore.rs10 CallContext, ComponentInstance, HandleTable, OwnedComponentInstance,
218 pub(crate) fn get<'a>(&self, store: &'a StoreOpaque) -> &'a ComponentInstance { in get() argument
228 pub(crate) fn get_mut<'a>(&self, store: &'a mut StoreOpaque) -> Pin<&'a mut ComponentInstance> { in get_mut() argument
243 Pin<&'a mut ComponentInstance>, in get_mut_and_registry() argument
252 fn from_data_get_mut<'a>(&self, store: &'a mut StoreData) -> Pin<&'a mut ComponentInstance> { in from_data_get_mut() argument
269 pub(crate) fn component_instance(&self, id: ComponentInstanceId) -> &ComponentInstance { in component_instance() argument
276 ) -> Pin<&mut ComponentInstance> { in component_instance_mut() argument
311 pub(crate) fn component_instance(&self, id: ComponentInstanceId) -> &ComponentInstance { in component_instance() argument
319 ) -> Pin<&mut ComponentInstance> { in component_instance_mut() argument
344 Pin<&mut ComponentInstance>, in lift_context_parts() argument
H A Dmatching.rs6 use crate::runtime::vm::component::ComponentInstance;
43 TypeDef::ComponentInstance(t) => match actual { in definition()
190 pub fn new(instance: &'a ComponentInstance) -> InstanceType<'a> { in new()
H A Dtypes.rs1081 pub struct ComponentInstance(Handle<TypeComponentInstanceIndex>); struct
1083 impl ComponentInstance { implementation
1122 ComponentInstance(ComponentInstance), enumerator
1133 TypeDef::ComponentInstance(idx) => { in from()
1134 Self::ComponentInstance(ComponentInstance::from(*idx, ty)) in from()
1174 Self::ComponentInstance(ComponentInstance::from(*idx, ty)) in from_export()
H A Dinstance.rs12 use crate::runtime::vm::component::{ComponentInstance, TypedResource, TypedResourceIndex};
352 ) -> Option<(&'a ComponentInstance, &'a Export)> { in lookup_export() argument
732 let instance = ComponentInstance::new( in new()
1058 fn instance<'b>(&self, store: &'b StoreOpaque) -> &'b ComponentInstance { in instance() argument
1063 fn instance_mut<'b>(&self, store: &'b mut StoreOpaque) -> Pin<&'b mut ComponentInstance> { in instance_mut() argument
H A Dfunc.rs8 use crate::runtime::vm::component::{ComponentInstance, InstanceFlags};
150 instance: Option<&ComponentInstance>, in _typed() argument
163 instance: Option<&ComponentInstance>, in typecheck() argument
H A Dlinker.rs325 if !matches!(item_def, TypeDef::ComponentInstance(_)) && linker.get(item_name).is_some() in define_unknown_imports_as_traps()
339 TypeDef::ComponentInstance(i) => { in define_unknown_imports_as_traps()
H A Dconcurrent.rs61 use crate::vm::component::{CallContext, ComponentInstance, InstanceState};
4386 state: Pin<&mut ComponentInstance>, in from_instance() argument
4624 state: Pin<&mut ComponentInstance>, in from_instance() argument
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dcomponent.rs103 pub struct ComponentInstance { struct
234 impl ComponentInstance { implementation
284 .byte_sub(mem::size_of::<ComponentInstance>()) in from_vmctx()
285 .cast::<ComponentInstance>() in from_vmctx()
332 let mut ret = OwnedInstance::new(ComponentInstance { in new()
976 unsafe impl InstanceLayout for ComponentInstance { implementation
989 ComponentInstance::alloc_layout(&self.offsets) in layout()
1001 pub type OwnedComponentInstance = OwnedInstance<ComponentInstance>;
1006 pub fn instance(&self) -> *mut ComponentInstance { in instance() argument
1009 .offset(-(offset_of!(ComponentInstance, vmctx) as isize)) in instance()
[all …]
H A Dinstance.rs675 super::component::ComponentInstance::vmctx_instance_id(vmctx) in get_exported_global()
690 super::component::ComponentInstance::vmctx_instance_id(vmctx) in get_exported_global()
/wasmtime-44.0.1/crates/c-api/src/component/types/
H A Dinstance.rs3 use wasmtime::component::types::ComponentInstance;
7 pub(crate) ty: ComponentInstance,
H A Dcomponent.rs122 ComponentInstance(Box<wasmtime_component_instance_type_t>), enumerator
136 ComponentItem::ComponentInstance(ty) => { in from()
137 wasmtime_component_item_t::ComponentInstance(Box::new(ty.into())) in from()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/func/
H A Doptions.rs10 use crate::runtime::vm::component::{ComponentInstance, HandleTable, ResourceTables};
104 pub fn instance(&self) -> &ComponentInstance { in instance() argument
109 pub fn instance_mut(&mut self) -> Pin<&mut ComponentInstance> { in instance_mut() argument
312 instance: Pin<&'a mut ComponentInstance>,
392 pub fn instance_mut(&mut self) -> Pin<&mut ComponentInstance> { in instance_mut() argument
H A Dhost.rs14 ComponentInstance, VMComponentContext, VMLowering, VMLoweringCallee,
344 ComponentInstance::enter_host_from_wasm(cx, |store, instance| { in cabi_entrypoint()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/resources/
H A Dty.rs4 use crate::runtime::vm::component::ComponentInstance;
70 instance: &ComponentInstance, in guest() argument
/wasmtime-44.0.1/tests/all/component_model/
H A Dlinker.rs139 ComponentItem::ComponentInstance(instance) => { in linker_substituting_types_issue_8003()
H A Ddynamic.rs1004 let ComponentItem::ComponentInstance(ai_ty) = ai_ty else { in introspection()
1011 let ComponentItem::ComponentInstance(bi_ty) = bi_ty else { in introspection()
1040 let ComponentItem::ComponentInstance(i_ty) = i_ty else { in introspection()
1047 let ComponentItem::ComponentInstance(i_i_ty) = i_i_ty else { in introspection()
1062 let ComponentItem::ComponentInstance(r_ty) = r_ty else { in introspection()
1069 let ComponentItem::ComponentInstance(r2_ty) = r2_ty else { in introspection()
/wasmtime-44.0.1/crates/environ/src/component/
H A Dtypes.rs272 ComponentInstance(ComponentInstanceIndex), enumerator
456 ComponentInstance(TypeComponentInstanceIndex), enumerator
477 TypeDef::ComponentInstance(_) => "instance", in desc()
H A Dtypes_builder.rs138 Export::Instance { ty, .. } => TypeDef::ComponentInstance(*ty), in export_type_def()
283 TypeDef::ComponentInstance(self.convert_instance(types, id)?) in convert_component_entity_type()
310 TypeDef::ComponentInstance(self.convert_instance(types, id)?) in convert_type()
H A Dtranslate.rs1280 wasmparser::ComponentInstance::Instantiate { in translate_payload()
1287 wasmparser::ComponentInstance::FromExports(exports) => { in translate_payload()
1470 ComponentItem::ComponentInstance(index) in kind_to_item()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/component/
H A Dlibcalls.rs10 use crate::runtime::vm::component::{ComponentInstance, VMComponentContext};
86 use super::{ComponentInstance, VMComponentContext};
107 ComponentInstance::enter_host_from_wasm(vmctx, |store, instance| {
/wasmtime-44.0.1/crates/environ/src/component/translate/
H A Dinline.rs1436 ComponentItem::ComponentInstance(i) => { in initializer()
1770 ComponentItem::ComponentInstance(i) => { in item()
1903 TypeDef::ComponentInstance(ty) => { in from_import()
/wasmtime-44.0.1/src/commands/
H A Drun.rs966 CItem::ComponentInstance(c) => c in search_component_funcs()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/concurrent/
H A Dfutures_and_streams.rs13 use crate::vm::component::{ComponentInstance, HandleTable, TransmitLocalState};
4479 impl ComponentInstance { implementation