Home
last modified time | relevance | path

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

12

/wasmtime-44.0.1/crates/wasmtime/src/compile/
H A Druntime.rs156 alignment: self in custom_alignment()
176 alignment: usize, field
183 result.alignment = align.alignment; in finish_object()
208 alignment: usize, in finish_object() field
219 self.mmap = match MmapVec::with_capacity_and_alignment(additional, self.alignment) { in finish_object()
/wasmtime-44.0.1/crates/test-util/src/
H A Dcomponent_fuzz.rs682 alignment: u32, field
727 alignment: 1, in size_and_alignment()
732 alignment: 2, in size_and_alignment()
737 alignment: 4, in size_and_alignment()
742 alignment: 8, in size_and_alignment()
747 alignment: 4, in size_and_alignment()
814 alignment: align, in record_size_and_alignment()
827 alignment = alignment.max(size_and_alignment.alignment); in variant_size_and_alignment()
835 alignment, in variant_size_and_alignment()
837 alignment, in variant_size_and_alignment()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/machinst/
H A Dhelpers.rs12 pub(crate) fn align_to<N>(x: N, alignment: N) -> N in align_to()
21 let alignment_mask = alignment - 1.into(); in align_to()
H A Dbuffer.rs356 alignment: self.alignment, in apply_base_srcloc()
403 pub alignment: u32, field
645 align: data.alignment(), in register_constant()
658 let mut alignment = self.min_alignment; in finish_constants() localVariable
663 alignment = constant.alignment().max(alignment); in finish_constants()
665 alignment in finish_constants()
1602 let alignment = self.finish_constants(constants); in finish() localVariable
1644 alignment, in finish()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dmmap_vec.rs69 fn new_alloc(len: usize, alignment: usize) -> Result<MmapVec, OutOfMemory> { in new_alloc()
70 let layout = Layout::from_size_align(len, alignment) in new_alloc()
92 pub fn with_capacity_and_alignment(size: usize, alignment: usize) -> Result<MmapVec> { in with_capacity_and_alignment()
95 assert!(alignment <= crate::runtime::vm::host_page_size()); in with_capacity_and_alignment()
100 return Ok(MmapVec::new_alloc(size, alignment)?); in with_capacity_and_alignment()
381 fn alignment() { in alignment() function
/wasmtime-44.0.1/winch/codegen/src/abi/
H A Dmod.rs646 pub(crate) fn align_to<N>(value: N, alignment: N) -> N in align_to()
655 let alignment_mask = alignment - 1.into(); in align_to()
661 pub(crate) fn calculate_frame_adjustment(frame_size: u32, addend: u32, alignment: u32) -> u32 { in calculate_frame_adjustment()
663 (alignment - (total % alignment)) % alignment in calculate_frame_adjustment()
/wasmtime-44.0.1/crates/cranelift/src/
H A Dcompiled_function.rs64 pub alignment: u32, field
81 alignment: u32, in new()
86 alignment, in new()
H A Dobj.rs126 let alignment = compiled_func.alignment; in append_func() localVariable
130 .append(true, &body, alignment, &mut self.ctrl_plane); in append_func()
H A Dcompiler.rs1513 let alignment = compiled_code.buffer.alignment.max(preferred_alignment); in finish_with_info() localVariable
1517 alignment, in finish_with_info()
/wasmtime-44.0.1/crates/environ/
H A DCargo.toml50 # `Vec<u8>` with no alignment requirements on it. By enabling the `unaligned`
52 # alignment of the bytes that we're reading.
/wasmtime-44.0.1/cranelift/filetests/filetests/isa/x64/
H A Dtoo-large-stackframe.clif17 ;; We expect this to fail as well: the rounding-up for alignment after
/wasmtime-44.0.1/cranelift/jit/src/
H A Dbackend.rs483 let alignment = res.buffer.alignment as u64; in define_function_with_control_plane() localVariable
486 let align = alignment in define_function_with_control_plane()
535 alignment: u64, in define_function_bytes()
553 let align = alignment in define_function_bytes()
/wasmtime-44.0.1/cranelift/object/src/
H A Dbackend.rs342 let alignment = res.buffer.alignment as u64; in define_function_with_control_plane() localVariable
352 self.define_function_inner(func_id, alignment, buffer.data(), relocs) in define_function_with_control_plane()
358 alignment: u64, in define_function_bytes()
366 self.define_function_inner(func_id, alignment, bytes, relocs) in define_function_bytes()
493 alignment: u64, in define_function_inner()
510 let align = alignment.max(self.isa.symbol_alignment()); in define_function_inner()
/wasmtime-44.0.1/cranelift/module/src/
H A Dmodule.rs984 alignment: u64, in define_function_bytes()
1085 alignment: u64, in define_function_bytes()
1089 (**self).define_function_bytes(func_id, alignment, bytes, relocs) in define_function_bytes()
1189 alignment: u64, in define_function_bytes()
1193 (**self).define_function_bytes(func_id, alignment, bytes, relocs) in define_function_bytes()
/wasmtime-44.0.1/winch/codegen/src/isa/x64/
H A Dabi.rs164 let alignment = std::cmp::max(ty_size, slot_size); in to_abi_operand() localVariable
165 let offset = align_to(stack_offset, u32::from(alignment)); in to_abi_operand()
167 (arg, offset + u32::from(alignment)) in to_abi_operand()
H A Dmasm.rs331 let alignment: u32 = <Self::ABI as abi::ABI>::call_stack_align().into(); in call() localVariable
333 let delta = calculate_frame_adjustment(self.sp_offset()?.as_u32(), addend, alignment); in call()
334 let aligned_args_size = align_to(stack_args_size, alignment); in call()
/wasmtime-44.0.1/cranelift/codegen/src/ir/
H A Dstackslot.rs168 pub fn alignment(&self, max_align: StackSize) -> StackSize { in alignment() method
/wasmtime-44.0.1/winch/codegen/src/isa/aarch64/
H A Dmasm.rs103 let alignment: u32 = <Aarch64ABI as ABI>::call_stack_align().into(); in with_aligned_sp() localVariable
105 let delta = calculate_frame_adjustment(self.sp_offset()?.as_u32(), addend, alignment); in with_aligned_sp()
414 let alignment: u32 = <Self::ABI as abi::ABI>::call_stack_align().into(); in call() localVariable
416 let delta = calculate_frame_adjustment(self.sp_offset()?.as_u32(), addend, alignment); in call()
417 let aligned_args_size = align_to(stack_args_size, alignment); in call()
/wasmtime-44.0.1/cranelift/docs/
H A Dir.md451 the expected alignment. By default, misaligned loads and stores are allowed,
466 If no alignment is specified, Cranelift will pick an appropriate alignment
470 :flag align(N): Request at least N bytes alignment.
475 the alignment of these stack memory accesses can be inferred from the offsets
528 appropriate alignment for storing a value with type Type.
/wasmtime-44.0.1/cranelift/fuzzgen/src/
H A Dfunction_generator.rs1637 let alignment = self.param(&self.config.stack_slot_alignment_log2)? as u8; in generate_stack_slots() localVariable
1638 let alignment_bytes = 1 << alignment; in generate_stack_slots()
1640 let ss_data = StackSlotData::new(StackSlotKind::ExplicitSlot, bytes, alignment); in generate_stack_slots()
/wasmtime-44.0.1/crates/environ/src/
H A Dvmoffsets.rs1180 fn alignment() { in alignment() function
/wasmtime-44.0.1/tests/misc_testsuite/component-model/
H A Dstrings.wast290 ;; test is looking for (proper alignment in the 3rd realloc).
/wasmtime-44.0.1/crates/wiggle/tests/
H A Dtypenames.witx37 ;;; merely for alignment with POSIX.
/wasmtime-44.0.1/crates/wasi/witx/p0/
H A Dtypenames.witx37 ;;; merely for alignment with POSIX.
/wasmtime-44.0.1/crates/wasi/witx/p1/
H A Dtypenames.witx37 ;;; merely for alignment with POSIX.

12