Home
last modified time | relevance | path

Searched refs:EntityIndex (Results 1 – 16 of 16) sorted by relevance

/wasmtime-44.0.1/crates/environ/src/
H A Dmodule.rs307 pub exports: TryIndexMap<Atom, EntityIndex>,
386 index: EntityIndex,
590 pub fn type_of(&self, index: EntityIndex) -> EntityType { in type_of()
593 EntityIndex::Table(i) => EntityType::Table(self.tables[i]), in type_of()
596 EntityIndex::Tag(i) => EntityType::Tag(self.tags[i]), in type_of()
666 pub fn is_valid(&self, index: EntityIndex) -> bool { in is_valid()
668 EntityIndex::Function(i) => self.functions.is_valid(i), in is_valid()
669 EntityIndex::Table(i) => self.tables.is_valid(i), in is_valid()
670 EntityIndex::Memory(i) => self.memories.is_valid(i), in is_valid()
671 EntityIndex::Global(i) => self.globals.is_valid(i), in is_valid()
[all …]
H A Dtypes.rs1720 pub enum EntityIndex { enum
1733 impl From<FuncIndex> for EntityIndex { implementation
1735 EntityIndex::Function(idx) in from()
1739 impl From<TableIndex> for EntityIndex { implementation
1741 EntityIndex::Table(idx) in from()
1745 impl From<MemoryIndex> for EntityIndex { implementation
1747 EntityIndex::Memory(idx) in from()
1751 impl From<GlobalIndex> for EntityIndex { implementation
1753 EntityIndex::Global(idx) in from()
1757 impl From<TagIndex> for EntityIndex { implementation
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/trampoline/
H A Dtable.rs7 use wasmtime_environ::{EntityIndex, Module, TypeTrace};
28 module.exports.insert(name, EntityIndex::Table(table_id))?; in create_table()
H A Dtag.rs10 use wasmtime_environ::{EntityIndex, Module, TypeTrace};
32 module.exports.insert(name, EntityIndex::Tag(tag_id))?; in create_tag()
H A Dmemory.rs15 DefinedMemoryIndex, DefinedTableIndex, EntityIndex, HostPtr, Module, StaticModuleIndex,
46 .insert(name, EntityIndex::Memory(memory_id))?; in create_memory()
/wasmtime-44.0.1/crates/environ/src/compile/
H A Dmodule_environ.rs9 EntityIndex, EntityType, FuncIndex, FuncKey, GlobalIndex, IndexType, InitMemory, MemoryIndex,
487 EntityIndex::Function(index) in translate_payload()
489 ExternalKind::Table => EntityIndex::Table(TableIndex::from_u32(index)), in translate_payload()
490 ExternalKind::Memory => EntityIndex::Memory(MemoryIndex::from_u32(index)), in translate_payload()
492 ExternalKind::Tag => EntityIndex::Tag(TagIndex::from_u32(index)), in translate_payload()
833 fn push_type(&mut self, ty: EntityType) -> EntityIndex { in push_type() argument
835 EntityType::Function(ty) => EntityIndex::Function({ in push_type()
846 EntityIndex::Table(self.result.module.tables.push(ty).panic_on_oom()) in push_type()
849 EntityIndex::Memory(self.result.module.memories.push(ty).panic_on_oom()) in push_type()
852 EntityIndex::Global(self.result.module.globals.push(ty).panic_on_oom()) in push_type()
[all …]
/wasmtime-44.0.1/crates/environ/src/component/translate/
H A Dinline.rs204 memories: PrimaryMap<MemoryIndex, dfg::CoreExport<EntityIndex>>,
205 tables: PrimaryMap<TableIndex, dfg::CoreExport<EntityIndex>>,
206 globals: PrimaryMap<GlobalIndex, dfg::CoreExport<EntityIndex>>,
207 tags: PrimaryMap<TagIndex, dfg::CoreExport<EntityIndex>>,
301 Synthetic(&'a HashMap<&'a str, EntityIndex>),
1111 EntityIndex::Table(i) => i, in initializer()
1320 EntityIndex::Function(f) => { in initializer()
1509 EntityIndex::Function(i) => frame.funcs[i].1.clone(), in core_def_of_module_instance_export()
1510 EntityIndex::Table(i) => frame.tables[i].clone().into(), in core_def_of_module_instance_export()
1513 EntityIndex::Tag(i) => frame.tags[i].clone().into(), in core_def_of_module_instance_export()
[all …]
H A Dadapt.rs287 EntityIndex::Memory(i) => i, in fact_import_to_core_def()
/wasmtime-44.0.1/crates/environ/src/component/
H A Dtranslate.rs6 EngineOrModuleTypeIndex, EntityIndex, FuncKey, ModuleEnvironment, ModuleInternedTypeIndex,
347 ModuleSynthetic(HashMap<&'data str, EntityIndex>),
642 let ExportItem::Index(EntityIndex::Function(arg_func)) = &export.item in analyze_function_imports()
1399 EntityIndex::Function(index) in instantiate_module_from_exports()
1403 EntityIndex::Table(index) in instantiate_module_from_exports()
1407 EntityIndex::Memory(index) in instantiate_module_from_exports()
1411 EntityIndex::Global(index) in instantiate_module_from_exports()
1415 EntityIndex::Tag(index) in instantiate_module_from_exports()
H A Dinfo.rs51 use crate::{EntityIndex, ModuleInternedTypeIndex, PrimaryMap, WasmValType};
386 Export(CoreExport<EntityIndex>),
403 EntityIndex: From<T>,
H A Ddfg.rs33 use crate::{EntityIndex, EntityRef, ModuleInternedTypeIndex, PrimaryMap, WasmValType};
118 pub adapter_partitionings: PrimaryMap<AdapterId, (AdapterModuleId, EntityIndex)>,
266 Export(CoreExport<EntityIndex>),
285 EntityIndex: From<T>,
1239 fn adapter(&mut self, adapter: AdapterId) -> info::CoreExport<EntityIndex> { in adapter() argument
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dinstance.rs40 ElemIndex, EntityIndex, EntityRef, FuncIndex, GlobalIndex, HostPtr, MemoryIndex, PtrSize,
1604 export: EntityIndex, in get_export_by_index_mut() argument
1609 EntityIndex::Function(i) => { in get_export_by_index_mut()
1612 EntityIndex::Global(i) => Export::Global(self.get_exported_global(store, i)), in get_export_by_index_mut()
1613 EntityIndex::Table(i) => Export::Table(self.get_exported_table(store, i)), in get_export_by_index_mut()
1614 EntityIndex::Memory(i) => match self.get_exported_memory(store, i) { in get_export_by_index_mut()
1618 EntityIndex::Tag(i) => Export::Tag(self.get_exported_tag(store, i)), in get_export_by_index_mut()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dmodule.rs24 CompiledFunctionsTable, CompiledModuleInfo, EntityIndex, HostPtr, ModuleTypes, ObjectKind,
1240 pub(crate) entity: EntityIndex,
H A Dinstance.rs19 EntityIndex, EntityType, FuncIndex, GlobalIndex, MemoryIndex, TableIndex, TagIndex, TypeTrace,
490 fn _get_export(&self, store: &mut StoreOpaque, entity: EntityIndex) -> Extern { in _get_export()
H A Ddebug.rs26 DefinedFuncIndex, EntityIndex, FrameInstPos, FrameStackShape, FrameStateSlot,
336 fn debug_export(&self, store: &mut StoreOpaque, index: EntityIndex) -> Option<Extern> { in debug_export()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dinstance.rs21 use wasmtime_environ::{EntityIndex, EntityType, PrimaryMap};
615 T: Copy + Into<EntityIndex>, in lookup_vmexport() argument