Home
last modified time | relevance | path

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

12345678910>>...26

/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dlimits.rs71 current: usize, in memory_growing() argument
72 desired: usize, in memory_growing() argument
108 current: usize, in table_growing() argument
109 desired: usize, in table_growing() argument
177 current: usize, in memory_growing() argument
178 desired: usize, in memory_growing() argument
191 current: usize, in table_growing() argument
192 desired: usize, in table_growing() argument
317 instances: usize,
318 tables: usize,
[all …]
/wasmtime-44.0.1/cranelift/fuzzgen/src/
H A Dconfig.rs10 pub max_test_case_inputs: usize,
12 pub testcase_funcs: RangeInclusive<usize>,
13 pub signature_params: RangeInclusive<usize>,
14 pub signature_rets: RangeInclusive<usize>,
18 pub vars_per_function: RangeInclusive<usize>,
27 pub jump_table_entries: RangeInclusive<usize>,
32 pub switch_cases: RangeInclusive<usize>,
47 pub backwards_branch_ratio: (usize, usize),
55 pub allowed_int_divz_ratio: (usize, usize),
62 pub allowed_fcvt_traps_ratio: (usize, usize),
[all …]
/wasmtime-44.0.1/crates/unwinder/src/
H A Dstackwalk.rs51 unsafe fn get_next_older_pc_from_fp(&self, fp: usize) -> usize; in get_next_older_pc_from_fp() argument
65 pc: usize,
67 fp: usize,
103 pc: usize,
104 fp: usize,
105 trampoline_fp: usize,
138 pub unsafe fn new(pc: usize, fp: usize, trampoline_fp: usize) -> FrameCursor { in new() argument
287 pc: usize, in frame_iterator() argument
288 fp: usize, in frame_iterator() argument
326 pc: usize, in visit_frames() argument
[all …]
H A Dthrow.rs26 pub pc: usize,
28 pub sp: usize,
30 pub fp: usize,
45 pub unsafe fn find<F: Fn(&Frame) -> Option<(usize, usize)>>( in find() argument
48 exit_pc: usize, in find() argument
49 exit_trampoline_frame: usize, in find() argument
50 entry_frame: usize, in find() argument
/wasmtime-44.0.1/crates/unwinder/src/arch/
H A Dx86.rs5 pub fn get_stack_pointer() -> usize { in get_stack_pointer()
6 let stack_pointer: usize; in get_stack_pointer()
17 pub unsafe fn get_next_older_pc_from_fp(fp: usize) -> usize { in get_next_older_pc_from_fp() argument
20 unsafe { *(fp as *mut usize).offset(1) } in get_next_older_pc_from_fp()
24 pc: usize, in resume_to_exception_handler() argument
25 sp: usize, in resume_to_exception_handler() argument
26 fp: usize, in resume_to_exception_handler() argument
27 payload1: usize, in resume_to_exception_handler() argument
28 payload2: usize, in resume_to_exception_handler() argument
53 pub fn assert_fp_is_aligned(fp: usize) { in assert_fp_is_aligned() argument
[all …]
H A Driscv64.rs4 pub fn get_stack_pointer() -> usize { in get_stack_pointer()
5 let stack_pointer: usize; in get_stack_pointer()
16 pub unsafe fn get_next_older_pc_from_fp(fp: usize) -> usize { in get_next_older_pc_from_fp() argument
17 unsafe { *(fp as *mut usize).offset(1) } in get_next_older_pc_from_fp()
21 pc: usize, in resume_to_exception_handler() argument
22 sp: usize, in resume_to_exception_handler() argument
23 fp: usize, in resume_to_exception_handler() argument
24 payload1: usize, in resume_to_exception_handler() argument
25 payload2: usize, in resume_to_exception_handler() argument
43 pub const NEXT_OLDER_FP_FROM_FP_OFFSET: usize = 0;
[all …]
H A Daarch64.rs4 pub fn get_stack_pointer() -> usize { in get_stack_pointer()
5 let stack_pointer: usize; in get_stack_pointer()
27 pub unsafe fn get_next_older_pc_from_fp(fp: usize) -> usize { in get_next_older_pc_from_fp() argument
29 let mut pc = *(fp as *mut usize).offset(1); in get_next_older_pc_from_fp()
52 pc: usize, in resume_to_exception_handler() argument
53 sp: usize, in resume_to_exception_handler() argument
54 fp: usize, in resume_to_exception_handler() argument
55 payload1: usize, in resume_to_exception_handler() argument
56 payload2: usize, in resume_to_exception_handler() argument
74 pub const NEXT_OLDER_FP_FROM_FP_OFFSET: usize = 0;
[all …]
H A Ds390x.rs4 pub fn get_stack_pointer() -> usize { in get_stack_pointer()
16 pub unsafe fn get_next_older_pc_from_fp(fp: usize) -> usize { in get_next_older_pc_from_fp() argument
20 unsafe { *(fp as *mut usize).offset(14) } in get_next_older_pc_from_fp()
24 pc: usize, in resume_to_exception_handler() argument
25 sp: usize, in resume_to_exception_handler() argument
26 _fp: usize, in resume_to_exception_handler() argument
27 payload1: usize, in resume_to_exception_handler() argument
28 payload2: usize, in resume_to_exception_handler() argument
45 pub const NEXT_OLDER_FP_FROM_FP_OFFSET: usize = 0;
48 pub const NEXT_OLDER_SP_FROM_FP_OFFSET: usize = 0;
[all …]
H A Dmod.rs70 payload1: usize,
71 payload2: usize,
111 const NEXT_OLDER_FP_FROM_FP_OFFSET: usize = imp::NEXT_OLDER_FP_FROM_FP_OFFSET;
115 const NEXT_OLDER_SP_FROM_FP_OFFSET: usize = imp::NEXT_OLDER_SP_FROM_FP_OFFSET;
127 fn next_older_fp_from_fp_offset(&self) -> usize {
130 fn next_older_sp_from_fp_offset(&self) -> usize {
133 unsafe fn get_next_older_pc_from_fp(&self, fp: usize) -> usize {
138 fn assert_fp_is_aligned(&self, fp: usize) {
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/custom/
H A Dcapi.rs47 extern "C" fn(ip: usize, fp: usize, has_faulting_addr: bool, faulting_addr: usize);
91 pub fn wasmtime_munmap(ptr: *mut u8, size: usize) -> i32; in wasmtime_munmap()
104 pub fn wasmtime_page_size() -> usize; in wasmtime_page_size()
143 len: usize, in wasmtime_memory_image_new() argument
165 len: usize, in wasmtime_memory_image_map_at() argument
191 pub fn wasmtime_sync_lock_free(lock: *mut usize); in wasmtime_sync_lock_free() argument
199 pub fn wasmtime_sync_lock_acquire(lock: *mut usize); in wasmtime_sync_lock_acquire() argument
203 pub fn wasmtime_sync_lock_release(lock: *mut usize); in wasmtime_sync_lock_release() argument
211 pub fn wasmtime_sync_rwlock_read(lock: *mut usize); in wasmtime_sync_rwlock_read() argument
223 pub fn wasmtime_sync_rwlock_write(lock: *mut usize); in wasmtime_sync_rwlock_write() argument
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dranges.rs17 pub fn with_capacity(capacity: usize) -> Self { in with_capacity()
25 pub fn push_end(&mut self, end: usize) { in push_end() argument
38 pub fn len(&self) -> usize { in len() argument
44 pub fn reserve(&mut self, mut additional: usize) { in reserve() argument
52 pub fn get(&self, index: usize) -> Range<usize> { in get() argument
56 self.ranges[index] as usize..self.ranges[index + 1] as usize in get()
63 ) -> impl DoubleEndedIterator<Item = (usize, Range<usize>)> + ExactSizeIterator + '_ { in iter()
67 .map(|(index, range)| (self.map_index(index), range[0] as usize..range[1] as usize)) in iter()
92 fn map_index(&self, index: usize) -> usize { in map_index() argument
118 pub fn reverse_target(&mut self, target_len: usize) { in reverse_target() argument
/wasmtime-44.0.1/cranelift/bitset/src/
H A Dcompound.rs50 pub struct CompoundBitSet<T = usize> {
135 pub fn len(&self) -> usize { in len() argument
162 pub fn capacity(&self) -> usize { in capacity() argument
190 fn word_and_bit(i: usize) -> (usize, u8) { in word_and_bit() argument
200 fn elem(word: usize, bit: u8) -> usize { in elem() argument
201 let bit = usize::from(bit); in elem()
414 pub fn max(&self) -> Option<usize> { in max() argument
557 type Item = usize;
568 pub struct Iter<'a, T = usize> {
570 word: usize,
[all …]
/wasmtime-44.0.1/tests/all/
H A Dmemory_creator.rs11 mem: usize,
12 size: usize,
13 guard_size: usize,
14 used_wasm_bytes: usize,
15 glob_bytes_counter: Arc<Mutex<usize>>,
19 unsafe fn new(minimum: usize, maximum: usize, glob_counter: Arc<Mutex<usize>>) -> Self { in new() argument
41 mem: mem as usize, in new()
58 fn byte_size(&self) -> usize { in byte_size() argument
103 minimum: usize, in new_memory() argument
104 maximum: Option<usize>, in new_memory() argument
[all …]
H A Dlimits.rs3 const WASM_PAGE_SIZE: usize = wasmtime_environ::Memory::DEFAULT_PAGE_SIZE as usize;
401 current: usize, in memory_growing() argument
402 desired: usize, in memory_growing() argument
513 current: usize, in memory_growing() argument
514 desired: usize, in memory_growing() argument
641 current: usize, in table_growing() argument
642 desired: usize, in table_growing() argument
717 current: usize, in memory_growing() argument
718 desired: usize, in memory_growing() argument
731 current: usize, in table_growing() argument
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dstack_switching.rs46 pub revision: usize,
76 pub stack_limit: usize,
78 pub last_wasm_entry_fp: usize,
141 pub fn with_stack_limit(stack_limit: usize) -> Self { in with_stack_limit()
207 pub revision: usize,
339 tsp as usize - stack_size, in cont_new()
428 #[repr(usize, C)]
595 usize::from( in check_vm_common_stack_information_offsets()
622 usize::from(offsets.ptr.vmhostarray_data()) in check_vm_array_offsets()
670 usize::from(offsets.ptr.vmcontref_stack()) in check_vm_contref_offsets()
[all …]
H A Dvmcontext.rs50 usize,
358 usize::from(offsets.vmtag_import_from()) in check_vmtag_import_offsets()
402 pub fn current_length(&self) -> usize { in current_length() argument
459 pub current_elements: usize,
1061 (@ty size) => (usize);
1073 == mem::size_of::<usize>() * (BuiltinFunctionIndex::len() as usize)
1143 pub stack_limit: UnsafeCell<usize>,
1175 pub last_wasm_exit_pc: UnsafeCell<usize>,
1195 pub last_wasm_entry_sp: UnsafeCell<usize>,
1198 pub last_wasm_entry_fp: UnsafeCell<usize>,
[all …]
/wasmtime-44.0.1/crates/wmemcheck/src/
H A Dlib.rs14 mallocs: HashMap<usize, usize>,
15 pub stack_pointer: usize,
16 max_stack_size: usize,
24 DoubleMalloc { addr: usize, len: usize },
26 InvalidRead { addr: usize, len: usize },
28 InvalidWrite { addr: usize, len: usize },
32 OutOfBounds { addr: usize, len: usize },
61 pub fn malloc(&mut self, addr: usize, len: usize) -> Result<(), AccessError> { in malloc() argument
84 pub fn read(&mut self, addr: usize, len: usize) -> Result<(), AccessError> { in read() argument
142 fn is_in_bounds_heap(&self, addr: usize, len: usize) -> bool { in is_in_bounds_heap() argument
[all …]
/wasmtime-44.0.1/pulley/src/
H A Ddisas.rs20 start_offset: usize,
21 start: usize,
119 fn disas(&self, position: usize, disas: &mut String); in disas() argument
123 fn disas(&self, _position: usize, disas: &mut String) { in disas() argument
129 fn disas(&self, _position: usize, disas: &mut String) { in disas() argument
135 fn disas(&self, _position: usize, disas: &mut String) { in disas() argument
141 fn disas(&self, _position: usize, disas: &mut String) { in disas() argument
147 fn disas(&self, _position: usize, disas: &mut String) { in disas() argument
201 fn disas(&self, position: usize, disas: &mut String) { in disas() argument
236 fn disas(&self, position: usize, disas: &mut String) { in disas() argument
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/concurrent/futures_and_streams/
H A Dbuffers.rs101 fn skip(&mut self, count: usize); in skip() argument
159 fn skip(&mut self, count: usize) { in skip() argument
220 offset: usize,
221 limit: usize,
225 pub fn new(buffer: Vec<u8>, offset: usize, limit: usize) -> Self { in new() argument
234 pub fn into_parts(self) -> (Vec<u8>, usize, usize) { in into_parts() argument
247 fn skip(&mut self, count: usize) { in skip() argument
268 offset: usize,
323 fn skip(&mut self, count: usize) { in skip() argument
384 fn skip(&mut self, count: usize) { in skip() argument
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/memory/
H A Dstatic_.rs16 capacity: usize,
19 size: usize,
25 base_capacity: usize, in new() argument
26 initial_size: usize, in new() argument
27 maximum_size: Option<usize>, in new() argument
51 fn byte_size(&self) -> usize { in byte_size() argument
55 fn byte_capacity(&self) -> usize { in byte_capacity() argument
59 fn grow_to(&mut self, new_byte_size: usize) -> Result<()> { in grow_to()
69 fn set_byte_size(&mut self, len: usize) { in set_byte_size() argument
/wasmtime-44.0.1/crates/cranelift/src/translate/
H A Dstack.rs56 num_param_values: usize,
57 num_return_values: usize,
75 num_param_values: usize,
76 num_return_values: usize,
87 num_param_values: usize,
88 num_return_values: usize,
442 num_param_types: usize, in push_block_impl() argument
461 num_param_types: usize, in push_block() argument
472 num_param_types: usize, in push_try_table_block() argument
489 num_param_types: usize, in push_loop() argument
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/unix/
H A Dsignals.rs217 usize, in delegate_signal_to_previous_handler()
245 pc: cx.uc_mcontext.gregs[libc::REG_RIP as usize] as usize, in get_trap_registers()
246 fp: cx.uc_mcontext.gregs[libc::REG_RBP as usize] as usize, in get_trap_registers()
251 pc: cx.uc_mcontext.gregs[libc::REG_EIP as usize] as usize, in get_trap_registers()
252 fp: cx.uc_mcontext.gregs[libc::REG_EBP as usize] as usize, in get_trap_registers()
257 pc: cx.uc_mcontext.pc as usize, in get_trap_registers()
313 pc: cx.mc_gpregs.gp_elr as usize, in get_trap_registers()
319 pc: cx.sc_rip as usize, in get_trap_registers()
320 fp: cx.sc_rbp as usize, in get_trap_registers()
491 const MIN_STACK_SIZE: usize = 64 * 4096; in lazy_per_thread_init()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/stack_switching/stack/
H A Dunix.rs82 len: usize,
88 pub fn new(size: usize) -> io::Result<Self> { in new()
137 _guard_size: usize, in from_raw_parts() argument
138 len: usize, in from_raw_parts() argument
155 pub fn range(&self) -> Option<Range<usize>> { in range() argument
160 pub fn control_context_instruction_pointer(&self) -> usize { in control_context_instruction_pointer() argument
164 let ptr = self.top.sub(8).cast::<usize>(); in control_context_instruction_pointer()
169 pub fn control_context_frame_pointer(&self) -> usize { in control_context_frame_pointer() argument
173 let ptr = self.top.sub(16).cast::<usize>(); in control_context_frame_pointer()
178 pub fn control_context_stack_pointer(&self) -> usize { in control_context_stack_pointer() argument
[all …]
H A Ddummy.rs13 _len: usize,
18 pub fn new(_size: usize) -> Result<Self> { in new()
30 pub unsafe fn from_raw_parts(_base: *mut u8, _guard_size: usize, _len: usize) -> Result<Self> { in from_raw_parts() argument
42 pub fn range(&self) -> Option<Range<usize>> { in range() argument
46 pub fn control_context_instruction_pointer(&self) -> usize { in control_context_instruction_pointer() argument
50 pub fn control_context_frame_pointer(&self) -> usize { in control_context_frame_pointer() argument
54 pub fn control_context_stack_pointer(&self) -> usize { in control_context_stack_pointer() argument
/wasmtime-44.0.1/cranelift/jit/src/memory/
H A Darena.rs9 fn align_up(addr: usize, align: usize) -> usize { in align_up() argument
17 len: usize,
18 position: usize,
26 debug_assert_eq!(ptr as usize % region::page::size(), 0); in new()
69 fn allocate(&mut self, size: usize, align: usize) -> *mut u8 { in allocate() argument
77 fn has_space_for(&self, size: usize, align: usize) -> bool { in has_space_for() argument
99 size: usize,
100 position: usize,
128 size: usize, in allocate_inner() argument
132 let align = usize::try_from(align).expect("alignment too big"); in allocate_inner()
[all …]

12345678910>>...26