mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-16 10:21:22 +00:00
Format everything
This commit is contained in:
@ -331,7 +331,7 @@ impl LLVMBackend {
|
||||
local_func_id_to_offset,
|
||||
},
|
||||
LLVMCache { buffer },
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,9 @@ use libc::{
|
||||
c_void, mmap, mprotect, munmap, siginfo_t, MAP_ANON, MAP_PRIVATE, PROT_EXEC, PROT_NONE,
|
||||
PROT_READ, PROT_WRITE,
|
||||
};
|
||||
use nix::sys::signal::{sigaction, SaFlags, SigAction, SigHandler, SigSet, SIGBUS, SIGSEGV, SIGILL};
|
||||
use nix::sys::signal::{
|
||||
sigaction, SaFlags, SigAction, SigHandler, SigSet, SIGBUS, SIGILL, SIGSEGV,
|
||||
};
|
||||
use std::ptr;
|
||||
|
||||
/// `__register_frame` and `__deregister_frame` on macos take a single fde as an
|
||||
|
@ -232,10 +232,8 @@ impl StackmapEntry {
|
||||
if loc.offset_or_small_constant >= 0 {
|
||||
assert!(loc.offset_or_small_constant >= 16); // (saved_rbp, return_address)
|
||||
assert!(loc.offset_or_small_constant % 8 == 0);
|
||||
prev_frame_diff.insert(
|
||||
(loc.offset_or_small_constant as usize - 16) / 8,
|
||||
Some(mv),
|
||||
);
|
||||
prev_frame_diff
|
||||
.insert((loc.offset_or_small_constant as usize - 16) / 8, Some(mv));
|
||||
} else {
|
||||
let stack_offset = ((-loc.offset_or_small_constant) / 4) as usize;
|
||||
assert!(
|
||||
|
Reference in New Issue
Block a user