MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / source_location_before_visit_op

Method source_location_before_visit_op

winch/codegen/src/codegen/mod.rs:2307–2312  ·  view source on GitHub ↗

Hook to handle source location mapping before visiting an operator.

(&mut self, offset: usize)

Source from the content-addressed store, hash-verified

2305
2306 // Hook to handle source location mapping before visiting an operator.
2307 fn source_location_before_visit_op(&mut self, offset: usize) -> Result<()> {
2308 let loc = SourceLoc::new(offset as u32);
2309 let rel = self.source_loc_from(loc);
2310 self.source_location.current = self.masm.start_source_loc(rel)?;
2311 Ok(())
2312 }
2313
2314 // Hook to handle source location mapping after visiting an operator.
2315 fn source_location_after_visit_op(&mut self) -> Result<()> {

Callers 1

before_visit_opMethod · 0.80

Calls 4

OkFunction · 0.85
source_loc_fromMethod · 0.80
newFunction · 0.50
start_source_locMethod · 0.45

Tested by

no test coverage detected