Home
last modified time | relevance | path

Searched refs:SourceLoc (Results 1 – 20 of 20) sorted by relevance

/wasmtime-44.0.1/cranelift/codegen/src/ir/
H A Dsourceloc.rs19 pub struct SourceLoc(u32); struct
21 impl SourceLoc { implementation
38 impl Default for SourceLoc { implementation
44 impl fmt::Display for SourceLoc { implementation
66 pub fn from_base_offset(base: SourceLoc, offset: SourceLoc) -> Self { in from_base_offset() argument
75 pub fn expand(&self, base: SourceLoc) -> SourceLoc { in expand() argument
79 SourceLoc::new(self.0.wrapping_add(base.bits())) in expand()
107 use crate::ir::SourceLoc;
112 assert_eq!(SourceLoc::default().to_string(), "@-"); in display()
113 assert_eq!(SourceLoc::new(0).to_string(), "@0000"); in display()
[all …]
H A Dfunction.rs30 use super::{RelSourceLoc, SourceLoc, UserExternalName};
75 base_srcloc: Option<SourceLoc>,
98 pub fn base_srcloc(&self) -> SourceLoc { in base_srcloc() argument
103 pub fn ensure_base_srcloc(&mut self, srcloc: SourceLoc) -> SourceLoc { in ensure_base_srcloc() argument
445 pub fn set_srcloc(&mut self, inst: Inst, srcloc: SourceLoc) { in set_srcloc() argument
451 pub fn srcloc(&self, inst: Inst) -> SourceLoc { in srcloc() argument
H A Dmod.rs62 pub use crate::ir::sourceloc::SourceLoc;
H A Dlayout.rs759 use crate::ir::{Block, Inst, SourceLoc};
790 fn srcloc(&self) -> SourceLoc { in srcloc() argument
794 fn set_srcloc(&mut self, _srcloc: SourceLoc) { in set_srcloc() argument
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dcursor.rs32 fn srcloc(&self) -> ir::SourceLoc; in srcloc() argument
35 fn set_srcloc(&mut self, srcloc: ir::SourceLoc); in set_srcloc() argument
56 fn with_srcloc(mut self, srcloc: ir::SourceLoc) -> Self in with_srcloc()
619 srcloc: ir::SourceLoc,
655 fn srcloc(&self) -> ir::SourceLoc { in srcloc() argument
659 fn set_srcloc(&mut self, srcloc: ir::SourceLoc) { in set_srcloc() argument
/wasmtime-44.0.1/cranelift/module/src/
H A Dtraps.rs11 pub srcloc: ir::SourceLoc,
/wasmtime-44.0.1/crates/cranelift/src/
H A Dcompiled_function.rs231 iter: impl IntoIterator<Item = (ir::SourceLoc, u32, u32)>, in collect_address_maps()
280 fn cvt(loc: ir::SourceLoc) -> FilePos { in collect_address_maps()
H A Dtrap.rs23 fn debug_tags(&self, _srcloc: ir::SourceLoc) -> Vec<ir::DebugTag> { in debug_tags()
H A Dfunc_environ.rs231 pub(crate) next_srcloc: ir::SourceLoc,
292 next_srcloc: ir::SourceLoc::default(), in new()
1734 srcloc: ir::SourceLoc,
1755 srcloc: ir::SourceLoc, in new() argument
1769 srcloc: ir::SourceLoc, in new_tail() argument
3085 srcloc: ir::SourceLoc, in translate_call_indirect() argument
3106 srcloc: ir::SourceLoc, in translate_call() argument
3117 srcloc: ir::SourceLoc, in translate_call_ref() argument
3128 srcloc: ir::SourceLoc, in translate_return_call() argument
3140 srcloc: ir::SourceLoc, in translate_return_call_indirect() argument
[all …]
/wasmtime-44.0.1/crates/cranelift/src/translate/
H A Dfunc_translator.rs329 fn cur_srcloc(reader: &BinaryReader) -> ir::SourceLoc { in cur_srcloc() argument
332 ir::SourceLoc::new(reader.original_position().try_into().unwrap()) in cur_srcloc()
/wasmtime-44.0.1/winch/codegen/src/codegen/
H A Dmod.rs17 ir::{RelSourceLoc, SourceLoc},
83 pub base: Option<SourceLoc>,
263 pub fn source_loc_from(&mut self, loc: SourceLoc) -> RelSourceLoc { in source_loc_from()
1370 let loc = SourceLoc::new(offset as u32); in source_location_before_visit_op()
/wasmtime-44.0.1/cranelift/reader/src/
H A Dlexer.rs58 SourceLoc(&'a str), // @00c7 enumerator
469 token(Token::SourceLoc(&self.source[begin..end]), loc) in scan_srcloc()
H A Dparser.rs914 fn optional_srcloc(&mut self) -> ParseResult<ir::SourceLoc> { in optional_srcloc() argument
915 if let Some(Token::SourceLoc(text)) = self.token() { in optional_srcloc()
919 Ok(ir::SourceLoc::new(num)) in optional_srcloc()
1998 | Some(Token::SourceLoc(_)) in parse_basic_block()
2160 srcloc: ir::SourceLoc, in parse_instruction() argument
/wasmtime-44.0.1/cranelift/codegen/src/machinst/
H A Dbuffer.rs175 use crate::ir::{DebugTag, ExceptionTag, ExternalName, RelSourceLoc, SourceLoc, TrapCode};
224 type SourceLocType = SourceLoc;
339 pub fn apply_base_srcloc(self, base_srcloc: SourceLoc) -> MachBufferFinalized<Final> { in apply_base_srcloc()
2276 fn apply_base_srcloc(self, base_srcloc: SourceLoc) -> MachSrcLoc<Final> { in apply_base_srcloc()
/wasmtime-44.0.1/cranelift/frontend/src/
H A Dfrontend.rs46 srcloc: ir::SourceLoc,
337 pub fn set_srcloc(&mut self, srcloc: ir::SourceLoc) { in set_srcloc() argument
342 pub fn srcloc(&self) -> ir::SourceLoc { in srcloc() argument
/wasmtime-44.0.1/winch/codegen/src/isa/aarch64/
H A Dasm.rs23 ir::{ExternalName, MemFlags, SourceLoc, TrapCode, UserExternalNameRef},
128 pub fn finalize(mut self, loc: Option<SourceLoc>) -> MachBufferFinalized<Final> { in finalize()
H A Dmasm.rs33 ir::{MemFlags, RelSourceLoc, SourceLoc, types},
502 fn finalize(mut self, base: Option<SourceLoc>) -> Result<MachBufferFinalized<Final>> { in finalize()
/wasmtime-44.0.1/winch/codegen/src/
H A Dmasm.rs11 ir::{Endianness, MemFlags, RelSourceLoc, SourceLoc, UserExternalNameRef},
1818 fn finalize(self, base: Option<SourceLoc>) -> Result<MachBufferFinalized<Final>>; in finalize()
/wasmtime-44.0.1/winch/codegen/src/isa/x64/
H A Dmasm.rs39 ir::{MemFlags, RelSourceLoc, SourceLoc},
880 fn finalize(mut self, base: Option<SourceLoc>) -> Result<MachBufferFinalized<Final>> { in finalize()
H A Dasm.rs15 ir::{ExternalName, MemFlags, SourceLoc, TrapCode, Type, UserExternalNameRef, types},
330 pub fn finalize(mut self, loc: Option<SourceLoc>) -> MachBufferFinalized<Final> { in finalize()