Home
last modified time | relevance | path

Searched refs:MemoryIndex (Results 1 – 25 of 25) sorted by relevance

/wasmtime-44.0.1/crates/environ/src/fact/
H A Dtranscode.rs1 use crate::MemoryIndex;
9 pub from_memory: MemoryIndex,
11 pub to_memory: MemoryIndex,
/wasmtime-44.0.1/crates/environ/src/
H A Dmodule.rs14 pub memory_index: MemoryIndex,
85 map: TryPrimaryMap<MemoryIndex, Option<StaticMemoryInitializer>>,
203 fn memory_size_in_bytes(&mut self, memory_index: MemoryIndex) -> Result<u64, SizeOverflow>; in memory_size_in_bytes()
209 fn eval_offset(&mut self, memory_index: MemoryIndex, expr: &ConstExpr) -> Option<u64>; in eval_offset() argument
214 fn write(&mut self, memory_index: MemoryIndex, init: &StaticMemoryInitializer) -> bool; in write() argument
362 pub memories: TryPrimaryMap<MemoryIndex, Memory>,
474 pub fn memory_index(&self, defined_memory: DefinedMemoryIndex) -> MemoryIndex { in memory_index() argument
475 MemoryIndex::new(self.num_imported_memories + defined_memory.index()) in memory_index()
481 pub fn defined_memory_index(&self, memory: MemoryIndex) -> Option<DefinedMemoryIndex> { in defined_memory_index()
515 pub fn is_imported_memory(&self, index: MemoryIndex) -> bool { in is_imported_memory()
H A Dfact.rs27 use crate::{EntityRef, FuncIndex, GlobalIndex, MemoryIndex, PrimaryMap, Tunables};
96 imported_memories: PrimaryMap<MemoryIndex, CoreDef>,
149 memory: Option<MemoryIndex>,
441 ) -> MemoryIndex { in import_memory() argument
564 memory: Option<MemoryIndex>, in import_prepare_call() argument
H A Dvmoffsets.rs38 FuncRefIndex, GlobalIndex, MemoryIndex, Module, OwnedMemoryIndex, TableIndex, TagIndex,
976 pub fn vmctx_vmmemory_import(&self, index: MemoryIndex) -> u32 { in vmctx_vmmemory_import()
1083 pub fn vmctx_vmmemory_import_from(&self, index: MemoryIndex) -> u32 { in vmctx_vmmemory_import_from()
H A Dtypes.rs1612 pub struct MemoryIndex(u32); struct
1613 entity_impl_with_try_clone!(MemoryIndex);
1726 Memory(MemoryIndex),
1745 impl From<MemoryIndex> for EntityIndex {
1746 fn from(idx: MemoryIndex) -> EntityIndex { in from()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Ddebug_builtins.rs5 use wasmtime_environ::{EntityRef, MemoryIndex};
27 let index = MemoryIndex::new(VMCTX_AND_MEMORY.1); in resolve_vmctx_memory_ptr()
H A Dinstance.rs40 ElemIndex, EntityIndex, EntityRef, FuncIndex, GlobalIndex, HostPtr, MemoryIndex, PtrSize,
386 fn imported_memory(&self, index: MemoryIndex) -> &VMMemoryImport { in imported_memory()
424 pub(crate) fn get_memory(&self, index: MemoryIndex) -> VMMemoryDefinition { in get_memory()
600 pub fn get_exported_memory(&self, store: StoreId, index: MemoryIndex) -> ExportMemory { in get_exported_memory()
1085 dst_index: MemoryIndex, in memory_copy() argument
1087 src_index: MemoryIndex, in memory_copy() argument
1180 memory_index: MemoryIndex, in memory_init() argument
1192 memory_index: MemoryIndex, in memory_init_segment() argument
1572 ) -> impl ExactSizeIterator<Item = (MemoryIndex, ExportMemory)> + '_ { in all_memories()
H A Dlibcalls.rs74 DataIndex, DefinedMemoryIndex, DefinedTableIndex, ElemIndex, FuncIndex, MemoryIndex,
560 let src_index = MemoryIndex::from_u32(src_index); in memory_copy()
561 let dst_index = MemoryIndex::from_u32(dst_index); in memory_copy()
593 let memory_index = MemoryIndex::from_u32(memory_index); in memory_init()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dtrampoline.rs18 use wasmtime_environ::{MemoryIndex, TableIndex, TagIndex};
30 .get_exported_memory(id, MemoryIndex::from_u32(0))) in generate_memory_export()
H A Dinstance.rs19 EntityIndex, EntityType, FuncIndex, GlobalIndex, MemoryIndex, TableIndex, TagIndex, TypeTrace,
653 ) -> impl ExactSizeIterator<Item = (MemoryIndex, vm::ExportMemory)> + 'a { in all_memories()
662 memories: TryPrimaryMap<MemoryIndex, VMMemoryImport>,
H A Ddebug.rs28 FuncIndex, FuncKey, GlobalIndex, MemoryIndex, TableIndex, TagIndex, Trap,
228 MemoryIndex::from_bits(memory_index).into(), in debug_memory()
257 MemoryIndex::from_bits(memory_index).into(), in debug_shared_memory()
/wasmtime-44.0.1/crates/cranelift/src/
H A Ddebug.rs18 DefinedFuncIndex, DefinedMemoryIndex, EntityRef, MemoryIndex, ModuleTranslation,
101 let index = MemoryIndex::new(0); in new()
H A Dfunc_environ.rs750 fn memory(&self, index: MemoryIndex) -> Memory { in memory()
3178 index: MemoryIndex, in memory_vmctx_and_defined_index() argument
3249 index: MemoryIndex, in translate_memory_grow() argument
3280 index: MemoryIndex, in translate_memory_size() argument
3364 src_index: MemoryIndex, in translate_memory_copy() argument
3365 dst_index: MemoryIndex, in translate_memory_copy() argument
3399 memory_index: MemoryIndex, in translate_memory_fill() argument
3422 memory_index: MemoryIndex, in translate_memory_init() argument
3542 memory_index: MemoryIndex, in translate_atomic_wait() argument
3577 memory_index: MemoryIndex, in translate_atomic_notify() argument
[all …]
/wasmtime-44.0.1/winch/codegen/src/codegen/
H A Denv.rs16 MemoryIndex, ModuleTranslation, ModuleTypesBuilder, PrimaryMap, PtrSize, Table, TableIndex,
119 resolved_heaps: HashMap<MemoryIndex, HeapData>,
267 pub fn resolve_heap(&mut self, index: MemoryIndex) -> HeapData { in resolve_heap()
H A Dmod.rs27 FUNCREF_MASK, GlobalIndex, MemoryIndex, PtrSize, TableIndex, Tunables, TypeIndex, WasmHeapType,
681 let memory_index = MemoryIndex::from_u32(memarg.memory); in emit_compute_heap_address()
1477 MemoryIndex::from_u32(arg.memory), in emit_atomic_wait()
1528 MemoryIndex::from_u32(arg.memory), in emit_atomic_notify()
1556 mem: MemoryIndex, in prepare_builtin_defined_memory_arg() argument
/wasmtime-44.0.1/crates/environ/src/compile/
H A Dmodule_environ.rs9 EntityIndex, EntityType, FuncIndex, FuncKey, GlobalIndex, IndexType, InitMemory, MemoryIndex,
490 ExternalKind::Memory => EntityIndex::Memory(MemoryIndex::from_u32(index)), in translate_payload()
666 let memory_index = MemoryIndex::from_u32(memory_index); in translate_payload()
1021 info: &'a mut PrimaryMap<MemoryIndex, Memory>, in try_static_init()
1027 memory_index: MemoryIndex, in try_static_init() argument
1032 fn eval_offset(&mut self, memory_index: MemoryIndex, expr: &ConstExpr) -> Option<u64> { in try_static_init() argument
1042 fn write(&mut self, memory: MemoryIndex, init: &StaticMemoryInitializer) -> bool { in try_static_init() argument
/wasmtime-44.0.1/crates/environ/src/component/translate/
H A Dadapt.rs154 memory: Option<dfg::CoreExport<MemoryIndex>>,
284 fn unwrap_memory(def: &dfg::CoreDef) -> dfg::CoreExport<MemoryIndex> { in fact_import_to_core_def() argument
H A Dinline.rs204 memories: PrimaryMap<MemoryIndex, dfg::CoreExport<EntityIndex>>,
1522 memory: MemoryIndex, in memory() argument
1523 ) -> (dfg::CoreExport<MemoryIndex>, bool) { in memory() argument
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/
H A Dallocator.rs663 memory: wasmtime_environ::MemoryIndex, in initialize_memories() argument
676 memory: wasmtime_environ::MemoryIndex, in initialize_memories() argument
692 memory_index: wasmtime_environ::MemoryIndex, in initialize_memories() argument
/wasmtime-44.0.1/crates/environ/src/component/
H A Dtranslate.rs413 memory: Option<MemoryIndex>,
920 memory: Some(MemoryIndex::from_u32(memory)), in translate_payload()
941 memory: Some(MemoryIndex::from_u32(memory)), in translate_payload()
1406 let index = MemoryIndex::from_u32(export.index); in instantiate_module_from_exports()
1579 let idx = MemoryIndex::from_u32(*idx); in canonical_options()
H A Dinfo.rs314 pub export: CoreExport<MemoryIndex>,
H A Dtypes.rs262 pub use crate::{FuncIndex, GlobalIndex, MemoryIndex, TableIndex};
H A Ddfg.rs73 pub memories: Intern<MemoryId, CoreExport<MemoryIndex>>,
/wasmtime-44.0.1/crates/cranelift/src/translate/
H A Dcode_translator.rs98 DataIndex, ElemIndex, FuncIndex, GlobalIndex, MemoryIndex, TableIndex, TagIndex, TypeConvert,
820 let mem = MemoryIndex::from_u32(*mem); in translate_operator()
828 let mem = MemoryIndex::from_u32(*mem); in translate_operator()
1376 let memory_index = MemoryIndex::from_u32(memarg.memory); in translate_operator()
1402 let memory_index = MemoryIndex::from_u32(memarg.memory); in translate_operator()
1624 let src_index = MemoryIndex::from_u32(*src_mem); in translate_operator()
1627 let dst_index = MemoryIndex::from_u32(*dst_mem); in translate_operator()
1636 let mem = MemoryIndex::from_u32(*mem); in translate_operator()
1644 let mem = MemoryIndex::from_u32(*mem); in translate_operator()
3489 let memory_index = MemoryIndex::from_u32(memarg.memory); in prepare_addr()
/wasmtime-44.0.1/winch/codegen/src/
H A Dvisitor.rs31 FUNCREF_INIT_BIT, FuncIndex, GlobalIndex, IndexType, MemoryIndex, TableIndex, TypeIndex,
1864 let mem = MemoryIndex::from_u32(mem); in visit_memory_fill()
1874 let heap = self.env.resolve_heap(MemoryIndex::from_u32(mem)); in visit_memory_size()
1880 let mem = MemoryIndex::from_u32(mem); in visit_memory_grow()