Home
last modified time | relevance | path

Searched refs:MemoryAllocationIndex (Results 1 – 9 of 9) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dgc_heap_pool.rs4 use crate::vm::{Memory, MemoryAllocationIndex};
15 InUse(MemoryAllocationIndex),
19 fn alloc(&mut self, memory_alloc_index: MemoryAllocationIndex) -> Option<Box<dyn GcHeap>> { in alloc()
30 fn dealloc(&mut self, heap: Box<dyn GcHeap>) -> MemoryAllocationIndex { in dealloc() argument
85 memory_alloc_index: MemoryAllocationIndex, in allocate() argument
122 ) -> (MemoryAllocationIndex, Memory) { in deallocate() argument
H A Dmemory_pool.rs54 MemoryAllocationIndex,
355 ) -> Result<(MemoryAllocationIndex, Memory)> { in allocate() argument
474 allocation_index: MemoryAllocationIndex, in deallocate() argument
539 fn get_base(&self, allocation_index: MemoryAllocationIndex) -> MmapOffset { in get_base()
566 allocation_index: MemoryAllocationIndex, in take_memory_image_slot() argument
601 allocation_index: MemoryAllocationIndex, in return_memory_image_slot() argument
638 index: MemoryAllocationIndex, in from_unstriped_slot_index() argument
647 fn as_unstriped_slot_index(self, stripe: usize, num_stripes: usize) -> MemoryAllocationIndex { in as_unstriped_slot_index() argument
650 MemoryAllocationIndex(self.0 * num_stripes + stripe) in as_unstriped_slot_index()
921 let index = MemoryAllocationIndex(i); in test_memory_pool()
H A Ddecommit_queue.rs12 use crate::vm::{MemoryAllocationIndex, MemoryImageSlot, Table, TableAllocationIndex};
55 memories: SmallVec<[(MemoryAllocationIndex, MemoryImageSlot, usize); 1]>,
125 allocation_index: MemoryAllocationIndex, in push_memory() argument
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/
H A Don_demand.rs2 InstanceAllocationRequest, InstanceAllocator, MemoryAllocationIndex, TableAllocationIndex,
118 ) -> Pin<Box<dyn Future<Output = Result<(MemoryAllocationIndex, Memory)>> + Send + 'a>> { in allocate_memory()
131 let allocation_index = MemoryAllocationIndex::default(); in allocate_memory()
147 allocation_index: MemoryAllocationIndex, in deallocate_memory() argument
150 debug_assert_eq!(allocation_index, MemoryAllocationIndex::default()); in deallocate_memory()
232 memory_alloc_index: MemoryAllocationIndex, in allocate_gc_heap() argument
235 debug_assert_eq!(memory_alloc_index, MemoryAllocationIndex::default()); in allocate_gc_heap()
246 ) -> (MemoryAllocationIndex, Memory) { in deallocate_gc_heap() argument
248 (MemoryAllocationIndex::default(), gc_heap.detach()) in deallocate_gc_heap()
H A Dpooling.rs48 InstanceAllocationRequest, InstanceAllocator, MemoryAllocationIndex, TableAllocationIndex,
687 ) -> Pin<Box<dyn Future<Output = Result<(MemoryAllocationIndex, Memory)>> + Send + 'a>> { in allocate_memory()
718 allocation_index: MemoryAllocationIndex, in deallocate_memory() argument
882 memory_alloc_index: MemoryAllocationIndex, in allocate_gc_heap() argument
897 ) -> (MemoryAllocationIndex, Memory) { in deallocate_gc_heap() argument
/wasmtime-44.0.1/crates/wasmtime/src/runtime/trampoline/
H A Dmemory.rs6 CompiledModuleId, InstanceAllocationRequest, InstanceAllocator, Memory, MemoryAllocationIndex,
179 ) -> Pin<Box<dyn Future<Output = Result<(MemoryAllocationIndex, Memory)>> + Send + 'a>> { in allocate_memory()
190 MemoryAllocationIndex::default(), in allocate_memory()
201 allocation_index: MemoryAllocationIndex, in deallocate_memory() argument
262 _memory_alloc_index: crate::vm::MemoryAllocationIndex, in allocate_gc_heap() argument
273 ) -> (crate::vm::MemoryAllocationIndex, crate::vm::Memory) { in deallocate_gc_heap() argument
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/
H A Dallocator.rs64 pub struct MemoryAllocationIndex(u32); struct
66 impl Default for MemoryAllocationIndex { implementation
70 MemoryAllocationIndex(u32::MAX) in default()
74 impl MemoryAllocationIndex { impl
196 ) -> Pin<Box<dyn Future<Output = Result<(MemoryAllocationIndex, Memory)>> + Send + 'a>>; in allocate_memory()
208 allocation_index: MemoryAllocationIndex, in deallocate_memory() argument
257 memory_alloc_index: MemoryAllocationIndex, in allocate_gc_heap() argument
270 ) -> (MemoryAllocationIndex, Memory); in deallocate_gc_heap() argument
359 memories: TryPrimaryMap<DefinedMemoryIndex, (MemoryAllocationIndex, Memory)>, in allocate_module()
404 memories: &mut TryPrimaryMap<DefinedMemoryIndex, (MemoryAllocationIndex, Memory)>, in allocate_memories() argument
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dinstance.rs119 memories: TryPrimaryMap<DefinedMemoryIndex, (MemoryAllocationIndex, Memory)>,
169 memories: TryPrimaryMap<DefinedMemoryIndex, (MemoryAllocationIndex, Memory)>, in new() argument
1641 ) -> &mut TryPrimaryMap<DefinedMemoryIndex, (MemoryAllocationIndex, Memory)> { in memories_mut() argument
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dvm.rs103 MemoryAllocationIndex, OnDemandInstanceAllocator, TableAllocationIndex, initialize_instance,