mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-16 10:21:22 +00:00
Cargo fmt
This commit is contained in:
@ -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!(
|
||||
|
Reference in New Issue
Block a user