mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Allow dead_code for existing arch specific methods
This commit is contained in:
parent
2f70a199e4
commit
e2e096117a
@ -100,6 +100,7 @@ pub struct InstanceImage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl ModuleStateMap {
|
impl ModuleStateMap {
|
||||||
|
#[warn(dead_code)]
|
||||||
fn lookup_call_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> {
|
fn lookup_call_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> {
|
||||||
if ip < base || ip - base >= self.total_size {
|
if ip < base || ip - base >= self.total_size {
|
||||||
None
|
None
|
||||||
@ -123,6 +124,7 @@ impl ModuleStateMap {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[warn(dead_code)]
|
||||||
fn lookup_trappable_ip(
|
fn lookup_trappable_ip(
|
||||||
&self,
|
&self,
|
||||||
ip: usize,
|
ip: usize,
|
||||||
@ -150,6 +152,7 @@ impl ModuleStateMap {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[warn(dead_code)]
|
||||||
fn lookup_loop_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> {
|
fn lookup_loop_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> {
|
||||||
if ip < base || ip - base >= self.total_size {
|
if ip < base || ip - base >= self.total_size {
|
||||||
None
|
None
|
||||||
|
Loading…
Reference in New Issue
Block a user