Cargo fmt

This commit is contained in:
losfair
2019-08-19 19:17:50 -07:00
parent fbe69281ec
commit 90dcdfec1c
2 changed files with 13 additions and 8 deletions

View File

@ -1,7 +1,7 @@
// https://llvm.org/docs/StackMaps.html#stackmap-section
use byteorder::{LittleEndian, ReadBytesExt};
use std::collections::{HashMap, BTreeMap};
use std::collections::{BTreeMap, HashMap};
use std::io::{self, Cursor};
use wasmer_runtime_core::state::{
x64::{new_machine_state, X64Register, GPR},
@ -231,7 +231,10 @@ 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!(