Home
last modified time | relevance | path

Searched refs:HostAlignedByteCount (Results 1 – 14 of 14) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dbyte_count.rs9 pub struct HostAlignedByteCount( struct
14 impl HostAlignedByteCount { impl
69 pub fn host_page_size() -> HostAlignedByteCount { in host_page_size()
71 HostAlignedByteCount(host_page_size()) in host_page_size()
173 impl PartialEq<usize> for HostAlignedByteCount { implementation
180 impl PartialEq<HostAlignedByteCount> for usize {
207 impl fmt::Display for HostAlignedByteCount { implementation
216 impl fmt::LowerHex for HostAlignedByteCount { implementation
286 impl Arbitrary for HostAlignedByteCount { implementation
330 HostAlignedByteCount::new(host_page_size + 1) in byte_count_ops()
[all …]
H A Dmmap.rs4 use super::HostAlignedByteCount;
81 accessible_size: HostAlignedByteCount, in accessible_reserved() argument
82 mapping_size: HostAlignedByteCount, in accessible_reserved() argument
132 pub fn len_aligned(&self) -> HostAlignedByteCount { in len_aligned() argument
154 MmapOffset::new(self.clone(), HostAlignedByteCount::ZERO) in zero_offset()
171 start: HostAlignedByteCount, in make_accessible() argument
172 len: HostAlignedByteCount, in make_accessible() argument
398 offset: HostAlignedByteCount,
421 pub fn offset(&self) -> HostAlignedByteCount { in offset() argument
450 memory_offset: HostAlignedByteCount, in map_image_at() argument
[all …]
H A Dcow.rs9 HostAlignedByteCount, MmapOffset, ModuleMemoryImageSource, host_page_size,
47 len: HostAlignedByteCount,
65 linear_memory_offset: HostAlignedByteCount,
79 linear_memory_offset: HostAlignedByteCount, in new() argument
227 let offset = HostAlignedByteCount::new(offset_usize) in new()
323 accessible: HostAlignedByteCount,
361 accessible: HostAlignedByteCount, in create() argument
525 keep_resident: HostAlignedByteCount, in clear_and_remain_ready() argument
541 keep_resident: HostAlignedByteCount, in reset_all_memory_contents() argument
567 keep_resident: HostAlignedByteCount, in reset_with_original_mapping() argument
[all …]
H A Dpagemap_disabled.rs1 use crate::runtime::vm::HostAlignedByteCount;
24 mut len: HostAlignedByteCount, in reset_with_pagemap() argument
25 mut keep_resident: HostAlignedByteCount, in reset_with_pagemap() argument
H A Dmemory.rs82 use crate::runtime::vm::{HostAlignedByteCount, MmapOffset};
594 if let Ok(byte_size) = HostAlignedByteCount::new(alloc.byte_size()) { in new()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/memory/
H A Dmmap.rs6 use crate::runtime::vm::{HostAlignedByteCount, Mmap, mmap::AlignedLength};
40 extra_to_reserve_on_growth: HostAlignedByteCount,
44 pre_guard_size: HostAlignedByteCount,
45 offset_guard_size: HostAlignedByteCount,
63 HostAlignedByteCount::new_rounded_up_u64(tunables.memory_guard_size) in new()
68 HostAlignedByteCount::ZERO in new()
110 let accessible = HostAlignedByteCount::new_rounded_up(minimum)?; in new()
130 fn accessible(&self) -> HostAlignedByteCount { in accessible() argument
131 let accessible = HostAlignedByteCount::new_rounded_up(self.len) in accessible()
138 fn current_capacity(&self) -> HostAlignedByteCount { in current_capacity() argument
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/miri/
H A Dmmap.rs10 use crate::runtime::vm::{HostAlignedByteCount, SendSyncPtr};
35 pub fn new(size: HostAlignedByteCount) -> Result<Self> { in new()
39 ret.make_accessible(HostAlignedByteCount::ZERO, size)?; in new()
44 pub fn reserve(size: HostAlignedByteCount) -> Result<Self> { in reserve()
68 let count = HostAlignedByteCount::new_rounded_up(dst.len())?; in from_file()
82 start: HostAlignedByteCount, in make_accessible() argument
83 len: HostAlignedByteCount, in make_accessible() argument
126 _memory_offset: HostAlignedByteCount, in map_image_at() argument
127 _memory_len: HostAlignedByteCount, in map_image_at() argument
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dmemory_pool.rs65 vm::HostAlignedByteCount,
579 HostAlignedByteCount::ZERO, in take_memory_image_slot()
659 expected_slot_bytes: HostAlignedByteCount,
662 max_memory_bytes: HostAlignedByteCount,
665 guard_bytes: HostAlignedByteCount,
725 slot_bytes: HostAlignedByteCount,
728 max_memory_bytes: HostAlignedByteCount,
794 HostAlignedByteCount::ZERO in calculate()
1024 any::<HostAlignedByteCount>(), in constraints()
1026 any::<HostAlignedByteCount>(), in constraints()
[all …]
H A Dunix_stack_pool.rs7 HostAlignedByteCount, Mmap, PoolingInstanceAllocatorConfig, mmap::AlignedLength,
23 stack_size: HostAlignedByteCount,
25 page_size: HostAlignedByteCount,
28 async_stack_keep_resident: HostAlignedByteCount,
40 let page_size = HostAlignedByteCount::host_page_size(); in new()
44 HostAlignedByteCount::ZERO in new()
46 HostAlignedByteCount::new_rounded_up(config.stack_size) in new()
47 .and_then(|size| size.checked_add(HostAlignedByteCount::host_page_size())) in new()
85 async_stack_keep_resident: HostAlignedByteCount::new_rounded_up( in new()
H A Dtable_pool.rs10 use crate::{prelude::*, vm::HostAlignedByteCount};
22 table_size: HostAlignedByteCount,
25 keep_resident: HostAlignedByteCount,
32 let table_size = HostAlignedByteCount::new_rounded_up( in new()
48 let keep_resident = HostAlignedByteCount::new_rounded_up(config.table_keep_resident)?; in new()
234 let table_byte_size_page_aligned = HostAlignedByteCount::new_rounded_up(table_byte_size) in reset_table_pages_to_zero()
278 let host_page_size = HostAlignedByteCount::host_page_size(); in test_table_pool()
313 let host_page_size = HostAlignedByteCount::host_page_size(); in test_table_pool_continuations_capacity()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/custom/
H A Dmmap.rs4 use crate::runtime::vm::{HostAlignedByteCount, SendSyncPtr};
27 pub fn new(size: HostAlignedByteCount) -> Result<Self> { in new()
41 pub fn reserve(size: HostAlignedByteCount) -> Result<Self> { in reserve()
56 start: HostAlignedByteCount, in make_accessible() argument
57 len: HostAlignedByteCount, in make_accessible() argument
130 memory_offset: HostAlignedByteCount, in map_image_at() argument
131 memory_len: HostAlignedByteCount, in map_image_at() argument
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/windows/
H A Dmmap.rs3 use crate::runtime::vm::{HostAlignedByteCount, SendSyncPtr};
43 pub fn new(size: HostAlignedByteCount) -> Result<Self> { in new()
64 pub fn reserve(size: HostAlignedByteCount) -> Result<Self> { in reserve()
154 start: HostAlignedByteCount, in make_accessible() argument
155 len: HostAlignedByteCount, in make_accessible() argument
267 _memory_offset: HostAlignedByteCount, in map_image_at() argument
268 _memory_len: HostAlignedByteCount, in map_image_at() argument
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/unix/
H A Dmmap.rs3 use crate::runtime::vm::{HostAlignedByteCount, SendSyncPtr};
45 pub fn new(size: HostAlignedByteCount) -> Result<Self> { in new()
59 pub fn reserve(size: HostAlignedByteCount) -> Result<Self> { in reserve()
111 start: HostAlignedByteCount, in make_accessible() argument
112 len: HostAlignedByteCount, in make_accessible() argument
219 memory_offset: HostAlignedByteCount, in map_image_at() argument
220 memory_len: HostAlignedByteCount, in map_image_at() argument
H A Dpagemap.rs9 use crate::runtime::vm::{HostAlignedByteCount, host_page_size};
238 len: HostAlignedByteCount, in reset_with_pagemap() argument
239 mut keep_resident: HostAlignedByteCount, in reset_with_pagemap() argument