| /wasmtime-44.0.1/tests/all/ |
| H A D | types.rs | 225 Some(&base), in struct_subtyping() 261 (true, "base", &base, "base", &base), in struct_subtyping() 267 (true, "a", &a, "base", &base), in struct_subtyping() 273 (true, "c", &c, "base", &base), in struct_subtyping() 383 Some(&base), in array_subtyping() 389 Some(&base), in array_subtyping() 437 (true, "base", &base, "base", &base), in array_subtyping() 443 (true, "a", &a, "base", &base), in array_subtyping() 574 Some(&base), in func_subtyping() 581 Some(&base), in func_subtyping() [all …]
|
| H A D | stack_creator.rs | 16 base: NonNull<u8>, field 22 fn new(base: NonNull<u8>, len: usize) -> Self { in new() 23 CustomStack { base, len } in new() 28 unsafe { self.base.as_ptr().add(self.len) } in top() 31 let base = self.base.as_ptr() as usize; in range() localVariable 32 base..base + self.len in range() 81 let base = unsafe { self.memory.as_ptr().add(page_size) as usize }; in range() localVariable 82 base..base + self.size in range() 111 let base = NonNull::new(base_ptr).context("unable to compute stack base")?; in new_stack() localVariable 112 Ok(Box::new(CustomStack::new(base, self.size))) in new_stack()
|
| /wasmtime-44.0.1/cranelift/codegen/src/isa/s390x/inst/ |
| H A D | emit_tests.rs | 536 base: gpr(2), in test_s390x_binemit() 551 base: gpr(2), in test_s390x_binemit() 566 base: gpr(2), in test_s390x_binemit() 581 base: gpr(2), in test_s390x_binemit() 596 base: gpr(2), in test_s390x_binemit() 611 base: gpr(2), in test_s390x_binemit() 626 base: gpr(2), in test_s390x_binemit() 641 base: gpr(2), in test_s390x_binemit() 656 base: gpr(2), in test_s390x_binemit() 671 base: gpr(2), in test_s390x_binemit() [all …]
|
| H A D | args.rs | 18 base: Reg, 26 base: Reg, 81 base: reg, in reg() 91 base: reg1, in reg_plus_reg() 189 base, index, disp, .. in pretty_print() 191 if base != zero_reg() { in pretty_print() 197 show_reg(base), in pretty_print() 200 format!("{}({})", disp.pretty_print_default(), show_reg(base)) in pretty_print() 211 base, index, disp, .. in pretty_print() 213 if base != zero_reg() { in pretty_print() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/memory/ |
| H A D | static_.rs | 13 base: MemoryBase, field 24 base: MemoryBase, in new() 43 base, in new() 73 fn base(&self) -> MemoryBase { in base() method 74 self.base.clone() in base() 79 base: self.base.as_non_null().into(), in vmmemory()
|
| /wasmtime-44.0.1/cranelift/jit/src/ |
| H A D | compiled_blob.rs | 126 let base = get_address(name); in perform_relocations() localVariable 127 let what = unsafe { base.offset(isize::try_from(addend).unwrap()) }; in perform_relocations() 133 let base = get_address(name); in perform_relocations() localVariable 140 let base = get_address(name); in perform_relocations() localVariable 152 let base = get_address(name); in perform_relocations() localVariable 158 let base = get_address(name); in perform_relocations() localVariable 214 let base = get_address(name); in perform_relocations() localVariable 233 let base = get_address(name); in perform_relocations() localVariable 245 let base = get_address(name); in perform_relocations() localVariable 276 let base = get_address(name); in perform_relocations() localVariable [all …]
|
| /wasmtime-44.0.1/winch/codegen/src/isa/aarch64/ |
| H A D | address.rs | 29 base: Reg, 85 base: regs::shadow_sp(), in from_shadow_sp() 91 pub fn offset(base: Reg, offset: i64) -> Self { in offset() 100 base != regs::sp(), in offset() 103 Self::Offset { base, offset } in offset() 149 Offset { base, offset } => { in to_addressing_mode() 154 rn: base.into(), in to_addressing_mode() 164 rn: base.into(), in to_addressing_mode() 174 rn: base.into(), in to_addressing_mode() 192 Self::Offset { base, offset } => (*base, *offset), in unwrap_offset()
|
| /wasmtime-44.0.1/cranelift/codegen/meta/src/cdsl/ |
| H A D | types.rs | 285 base: LaneType, field 292 Self { base, lanes } in new() 300 self.base in doc() 306 self.base.lane_bits() in lane_bits() 316 self.base in lane_type() 342 self.base, in fmt() 354 base: LaneType, field 362 base, in new() 377 self.base.lane_bits() in lane_bits() 387 self.base in lane_type() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/ |
| H A D | unix_stack_pool.rs | 170 let base = self.mapping.as_ptr() as usize; in zero_stack() localVariable 173 top > base && top <= (base + len), in zero_stack() 184 assert!(start_of_stack >= base && start_of_stack < (base + len)); in zero_stack() 185 assert!((start_of_stack - base) % self.stack_size.byte_count() == 0); in zero_stack() 231 let base = self.mapping.as_ptr() as usize; in deallocate() localVariable 234 top > base && top <= (base + len), in deallocate() 242 assert!(start_of_stack >= base && start_of_stack < (base + len)); in deallocate() 243 assert!((start_of_stack - base) % self.stack_size.byte_count() == 0); in deallocate() 245 let index = (start_of_stack - base) / self.stack_size.byte_count(); in deallocate() 290 let base = pool.mapping.as_ptr() as usize; in test_stack_pool() localVariable [all …]
|
| /wasmtime-44.0.1/winch/codegen/src/abi/ |
| H A D | local.rs | 37 base: Base, field 47 base: Base::SP, in new() 56 base: Base::SP, in i32() 65 base: Base::SP, in i64() 74 base: Base::FP, in stack_arg() 80 self.base == Base::SP in addressed_from_sp()
|
| /wasmtime-44.0.1/crates/fiber/src/ |
| H A D | nostd.rs | 40 base: BasePtr, field 73 let (base, len) = align_ptr(storage.as_mut_ptr(), size, STACK_ALIGN); in new() 76 base: BasePtr(base), in new() 81 pub unsafe fn from_raw_parts(base: *mut u8, guard_size: usize, len: usize) -> Result<Self> { in from_raw_parts() 84 base: BasePtr(unsafe { base.offset(isize::try_from(guard_size).unwrap()) }), in from_raw_parts() 98 Some(self.base.0.wrapping_byte_add(self.len)) in top() 102 let base = self.base.0 as usize; in range() localVariable 103 Some(base..base + self.len) in range()
|
| H A D | unix.rs | 45 base: BasePtr, field 112 base: BasePtr(unsafe { base.add(guard_size) }), in from_raw_parts() 136 base: BasePtr(start_ptr), in from_custom() 143 Some(self.base.0.wrapping_byte_add(self.len)) in top() 147 let base = self.base.0 as usize; in range() localVariable 148 Some(base..base + self.len) in range() 154 let start = self.base.0.sub(*guard_size); in guard_range() 155 Some(start..self.base.0) in guard_range() 480 let base = self.mmap.mapping_base as usize; in range() localVariable 481 let end = base + self.mmap.mapping_len; in range() [all …]
|
| /wasmtime-44.0.1/cranelift/assembler-x64/src/ |
| H A D | mem.rs | 14 base: R, 19 base: R, 43 Amode::ImmReg { base, .. } => { in as_rex_prefix() 73 Amode::ImmReg { base, .. } => (Some(base.enc()), None), in encode_bx_regs() 74 Amode::ImmRegRegShift { base, index, .. } => (Some(base.enc()), Some(index.enc())), in encode_bx_regs() 184 let base = base.to_string(Some(pointer_width)); in fmt() localVariable 189 base, in fmt() 194 let base = base.to_string(Some(pointer_width)); in fmt() localVariable 408 let enc_e = base.enc(); in emit_modrm_sib_disp() 438 base, in emit_modrm_sib_disp() [all …]
|
| /wasmtime-44.0.1/cranelift/isle/veri/veri_engine/examples/x86/ |
| H A D | amode_add_shl.isle | 85 ;; NOTE: to get an easier counterexample, set base to 0 87 (spec (Amode.ImmReg simm base flags) 91 (= (widthof base) 64) 92 (= base #x0000000000000000) 96 ;; Sign-extend-32-to-64(simm32) + base + (index << shift) 97 (spec (Amode.ImmRegRegShift simm base index shift flags) 101 (bvadd base (sign_ext 64 simm)) 105 (= (widthof base) 64) 113 (base Reg) 118 (base Gpr) [all …]
|
| H A D | amode_add_uextend_shl.isle | 95 ;; NOTE: to get an easier counterexample, set base to 0 97 (spec (Amode.ImmReg simm base flags) 101 (= (widthof base) 64) 102 (= base #x0000000000000000) 106 ;; Sign-extend-32-to-64(simm32) + base + (index << shift) 107 (spec (Amode.ImmRegRegShift simm base index shift flags) 111 (bvadd base (sign_ext 64 simm)) 115 (= (widthof base) 64) 116 (= (widthof base) 64) 124 (base Reg) [all …]
|
| /wasmtime-44.0.1/cranelift/codegen/src/ir/ |
| H A D | sourceloc.rs | 66 pub fn from_base_offset(base: SourceLoc, offset: SourceLoc) -> Self { in from_base_offset() 67 if base.is_default() || offset.is_default() { in from_base_offset() 70 Self(offset.bits().wrapping_sub(base.bits())) in from_base_offset() 75 pub fn expand(&self, base: SourceLoc) -> SourceLoc { in expand() 76 if self.is_default() || base.is_default() { in expand() 79 SourceLoc::new(self.0.wrapping_add(base.bits())) in expand()
|
| H A D | globalvalue.rs | 26 base: GlobalValue, 41 base: GlobalValue, 110 base, in fmt() 117 base, in fmt()
|
| /wasmtime-44.0.1/winch/codegen/src/isa/x64/ |
| H A D | address.rs | 10 Offset { base: Reg, offset: u32 }, 16 base: Reg, 24 pub fn offset(base: Reg, offset: u32) -> Self { in offset() 25 Self::Offset { base, offset } in offset()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/custom/ |
| H A D | mmap.rs | 87 let base = self.memory.as_ptr().byte_add(range.start).cast(); in make_executable() localVariable 94 base, in make_executable() 104 let base = self.memory.as_ptr().byte_add(range.start).cast(); in make_readonly() localVariable 107 cvt(capi::wasmtime_mprotect(base, len, capi::PROT_READ))?; in make_readonly() 114 let base = self.memory.as_ptr().byte_add(range.start).cast(); in make_readwrite() localVariable 118 base, in make_readwrite() 135 let base = self in map_image_at() localVariable 142 base, in map_image_at()
|
| /wasmtime-44.0.1/cranelift/codegen/src/legalizer/ |
| H A D | globalvalue.rs | 28 base, in expand_global_value() 31 } => iadd_imm_addr(inst, func, base, offset.into(), global_type), in expand_global_value() 33 base, in expand_global_value() 37 } => load_addr(inst, func, base, offset, global_type, flags, isa), in expand_global_value() 91 base: ir::GlobalValue, in iadd_imm_addr() 98 let lhs = pos.ins().global_value(global_type, base); in iadd_imm_addr() 115 base: ir::GlobalValue, in load_addr() 130 let base_addr = pos.ins().global_value(ptr_ty, base); in load_addr()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | mmap_vec.rs | 39 base: SendSyncPtr<u8>, 74 let base = SendSyncPtr::new(ptr); in new_alloc() localVariable 75 Ok(MmapVec::Alloc { base, layout }) in new_alloc() 263 let base = self.as_ptr(); in image_range() localVariable 265 base..base.wrapping_add(len) in image_range() 282 MmapVec::Alloc { base, layout } => unsafe { in as_mut_slice() 283 core::slice::from_raw_parts_mut(base.as_mut(), layout.size()) in as_mut_slice() 329 MmapVec::Alloc { base, layout } => unsafe { in deref() 330 core::slice::from_raw_parts(base.as_ptr(), layout.size()) in deref() 347 MmapVec::Alloc { base, layout, .. } => unsafe { in drop() [all …]
|
| /wasmtime-44.0.1/cranelift/codegen/src/isa/x64/inst/ |
| H A D | args.rs | 348 base, in imm_reg() 360 base, in imm_reg_reg_shift() 376 base, in with_flags() 381 base, in with_flags() 387 base, in with_flags() 399 Amode::ImmReg { base, .. } => { in get_operands() 400 if *base != regs::rbp() && *base != regs::rsp() { in get_operands() 401 collector.reg_use(base); in get_operands() 407 collector.reg_use(base); in get_operands() 421 Amode::ImmReg { base, .. } => { in get_operands_late() [all …]
|
| /wasmtime-44.0.1/cranelift/isle/isle/isle_examples/pass/ |
| H A D | prio_trie_bug.isle | 47 (base Reg) 50 ;; Sign-extend-32-to-64(simm32) + base + (index << shift) 52 (base Reg) 82 ;; register as the base register. 94 (rule 1 (amode_add (Amode.ImmRegRegShift off base index shift flags) 97 (Amode.ImmRegRegShift sum base index shift flags)) 102 ;; new add instruction and replacing the base with 103 ;; (base+value). 104 (rule (amode_add (Amode.ImmRegRegShift off base index shift flags) value) 105 (let ((sum Reg (x64_add base value)))
|
| /wasmtime-44.0.1/crates/wasmtime/tests/ |
| H A D | custom_signal_handler.rs | 59 let base = mem_export.data_ptr(&store); in set_up_memory() localVariable 65 base as *mut std::ffi::c_void, in set_up_memory() 74 (base as usize, length) in set_up_memory() 78 base: usize, in handle_sigsegv() 88 let result = (si_addr as u64) < (base as u64) + (length as u64); in handle_sigsegv() 92 base as *mut libc::c_void, in handle_sigsegv() 140 let (base, length) = set_up_memory(&mut store, instance); in test_custom_signal_handler_single_instance_hostcall() 143 handle_sigsegv(base, length, signum, siginfo) in test_custom_signal_handler_single_instance_hostcall() 161 let (base, length) = set_up_memory(&mut store, instance); in test_custom_signal_handler_single_instance() 164 handle_sigsegv(base, length, signum, siginfo) in test_custom_signal_handler_single_instance()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/windows/ |
| H A D | mmap.rs | 191 let base = self in make_executable() localVariable 215 wasmtime_jit_icache_coherence::clear_cache(base, len).context("failed cache clear")?; in make_executable() 227 let result = VirtualProtect(base, len, flags, &mut old); in make_executable() 242 let base = self.as_send_sync_ptr().as_ptr().add(range.start).cast(); in make_readonly() localVariable 243 let result = VirtualProtect(base, range.end - range.start, PAGE_READONLY, &mut old); in make_readonly() 254 let base = self.as_send_sync_ptr().as_ptr().add(range.start).cast(); in make_readwrite() localVariable 255 let result = VirtualProtect(base, range.end - range.start, PAGE_READWRITE, &mut old); in make_readwrite()
|