Format everything

This commit is contained in:
losfair
2019-08-21 15:23:56 -07:00
parent 53ebcc355a
commit 56e735349d
8 changed files with 93 additions and 96 deletions

View File

@ -331,7 +331,7 @@ impl LLVMBackend {
local_func_id_to_offset,
},
LLVMCache { buffer },
)
);
}
}

View File

@ -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

View File

@ -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!(