Home
last modified time | relevance | path

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

/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dunix_stack_pool.rs71 page_size.byte_count(), in new()
121 .add(self.stack_size.unchecked_mul(index).byte_count()) in allocate()
128 self.page_size.byte_count(), in allocate()
129 size_without_guard.byte_count(), in allocate()
182 let bottom_of_stack = top - stack_size.byte_count(); in zero_stack()
183 let start_of_stack = bottom_of_stack - self.page_size.byte_count(); in zero_stack()
203 (bottom_of_stack + rest.byte_count()) as *mut u8, in zero_stack()
205 size_to_memset.byte_count(), in zero_stack()
210 decommit(bottom_of_stack as _, rest.byte_count()); in zero_stack()
212 size_to_memset.byte_count() in zero_stack()
[all …]
H A Dmemory_pool.rs238 cursor.byte_count()..cursor.byte_count() + layout.slot_bytes.byte_count(), in new()
326 if min > u64::try_from(self.layout.max_memory_bytes.byte_count()).unwrap() { in validate_memory()
430 base_capacity.byte_count(), in allocate()
580 self.layout.max_memory_bytes.byte_count(), in take_memory_image_slot()
809 (1, faulting_region_bytes.byte_count()) in calculate()
814 (1, faulting_region_bytes.byte_count()) in calculate()
849 .byte_count() in calculate()
851 .unwrap_or(faulting_region_bytes.byte_count()) in calculate()
852 .max(max_memory_bytes.byte_count()); in calculate()
853 assert!(needed_slot_bytes >= max_memory_bytes.byte_count()); in calculate()
[all …]
H A Dtable_pool.rs112 .byte_count(), in get()
128 .min(self.table_size.byte_count() / element_size); in data_size()
314 let words_per_page = host_page_size.byte_count() / size_of::<*const u8>(); in test_table_pool_continuations_capacity()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/custom/
H A Dmmap.rs31 size.byte_count(), in new()
36 let memory = ptr::slice_from_raw_parts_mut(ptr.cast(), size.byte_count()); in new()
43 cvt(unsafe { capi::wasmtime_mmap_new(size.byte_count(), 0, &mut ptr) })?; in reserve()
44 let memory = ptr::slice_from_raw_parts_mut(ptr.cast(), size.byte_count()); in reserve()
62 ptr.byte_add(start.byte_count()).cast(), in make_accessible()
63 len.byte_count(), in make_accessible()
138 .byte_add(memory_offset.byte_count()) in map_image_at()
143 memory_len.byte_count(), in map_image_at()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dpagemap_disabled.rs36 reset_manually(slice::from_raw_parts_mut(ptr, keep_resident.byte_count())); in reset_with_pagemap()
42 ptr = ptr.add(keep_resident.byte_count()); in reset_with_pagemap()
47 decommit(ptr, len.byte_count()); in reset_with_pagemap()
49 keep_resident.byte_count() in reset_with_pagemap()
H A Dmmap.rs435 unsafe { self.mmap().as_non_null().byte_add(self.offset.byte_count()) } in as_non_null()
486 mem.make_executable(pagex3.byte_count()..pagex3.byte_count(), false) in mprotect_zero_length()
489 mem.make_readonly(pagex3.byte_count()..pagex3.byte_count()) in mprotect_zero_length()
H A Dcow.rs162 base.add(self.linear_memory_offset.byte_count()), in remap_as_zeros_at()
163 self.len.byte_count(), in remap_as_zeros_at()
376 assert!(size_bytes_aligned.byte_count() <= self.static_size); in set_heap_limit()
473 assert!(initial_size_bytes <= self.accessible.byte_count()); in instantiate()
482 .byte_count() in instantiate()
613 let image_start = image.linear_memory_offset.byte_count(); in reset_with_original_mapping()
614 let image_end = image_start + image.len.byte_count(); in reset_with_original_mapping()
663 assert!(range.end.byte_count() <= self.static_size); in set_protection()
673 vm::expose_existing_mapping(start, len.byte_count())?; in set_protection()
675 vm::hide_existing_mapping(start, len.byte_count())?; in set_protection()
[all …]
H A Dbyte_count.rs82 pub fn byte_count(self) -> usize { in byte_count() method
317 let byte_count = HostAlignedByteCount::new(65536).unwrap(); in byte_count_display() localVariable
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/unix/
H A Dmmap.rs49 size.byte_count(), in new()
54 let memory = std::ptr::slice_from_raw_parts_mut(ptr.cast(), size.byte_count()); in new()
63 size.byte_count(), in reserve()
80 let memory = std::ptr::slice_from_raw_parts_mut(ptr.cast(), size.byte_count()); in reserve()
117 ptr.byte_add(start.byte_count()).cast(), in make_accessible()
118 len.byte_count(), in make_accessible()
223 let map_base = self.memory.as_ptr().byte_add(memory_offset.byte_count()); in map_image_at()
226 memory_len.byte_count(), in map_image_at()
H A Dpagemap.rs248 if keep_resident.byte_count() == 0 { in reset_with_pagemap()
255 if keep_resident.byte_count() <= host_page_size && len.byte_count() <= host_page_size { in reset_with_pagemap()
285 let scan_arg = PageMapScanBuilder::new(ptr::slice_from_raw_parts(ptr, len.byte_count())) in reset_with_pagemap()
286 .max_pages(keep_resident.byte_count() / host_page_size) in reset_with_pagemap()
345 decommit(result.walk_end().cast_mut(), len.byte_count() - scan_size); in reset_with_pagemap()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/miri/
H A Dmmap.rs48 if (size.byte_count() as u64) > 1 << 32 { in reserve()
51 let layout = make_layout(size.byte_count()); in reserve()
57 let memory = std::ptr::slice_from_raw_parts_mut(ptr.cast(), size.byte_count()); in reserve()
89 self.as_send_sync_ptr().as_ptr().add(start.byte_count()), in make_accessible()
91 len.byte_count(), in make_accessible()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/memory/
H A Dmmap.rs153 self.current_capacity().byte_count() in byte_capacity()
184 self.pre_guard_size.byte_count()..(self.pre_guard_size.byte_count() + self.len); in grow_to()
198 assert!(new_size <= current_capacity.byte_count()); in grow_to()
237 let pre_guard_size = self.pre_guard_size.byte_count(); in vmmemory()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/windows/
H A Dmmap.rs47 size.byte_count(), in new()
56 let memory = std::ptr::slice_from_raw_parts_mut(ptr.cast(), size.byte_count()); in new()
68 size.byte_count(), in reserve()
76 let memory = std::ptr::slice_from_raw_parts_mut(ptr.cast(), size.byte_count()); in reserve()
161 .add(start.byte_count()) in make_accessible()
163 len.byte_count(), in make_accessible()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dvm.rs146 mod byte_count; module
166 pub use crate::runtime::vm::byte_count::*;