diff --git a/lib/runtime-core/src/state.rs b/lib/runtime-core/src/state.rs index 947fb77d0..9add4abaa 100644 --- a/lib/runtime-core/src/state.rs +++ b/lib/runtime-core/src/state.rs @@ -109,7 +109,7 @@ pub struct CodeVersion { } impl ModuleStateMap { - fn lookup_ip &BTreeMap>( + pub fn lookup_ip &BTreeMap>( &self, ip: usize, base: usize, @@ -141,12 +141,12 @@ impl ModuleStateMap { } } } - fn lookup_call_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> { + pub fn lookup_call_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> { self.lookup_ip(ip, base, |fsm| &fsm.call_offsets) } #[warn(dead_code)] - fn lookup_trappable_ip( + pub fn lookup_trappable_ip( &self, ip: usize, base: usize, @@ -155,7 +155,7 @@ impl ModuleStateMap { } #[warn(dead_code)] - fn lookup_loop_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> { + pub fn lookup_loop_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> { self.lookup_ip(ip, base, |fsm| &fsm.loop_offsets) } }