This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc261bb
commit f1d8669
Showing
4 changed files
with
168 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//! Frame layout item changes. | ||
use crate::isa::RegUnit; | ||
use std::boxed::Box; | ||
|
||
/// Change in the frame layout information. | ||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] | ||
pub enum FrameLayoutChange { | ||
/// Base CFA pointer moved to different register/offset. | ||
CallFrameAddressAt { | ||
/// CFA register. | ||
reg: RegUnit, | ||
/// CFA offset. | ||
offset: isize, | ||
}, | ||
/// Register saved at. | ||
RegAt { | ||
/// Saved register. | ||
reg: RegUnit, | ||
/// Offset in the frame (offset from CFA). | ||
cfa_offset: isize, | ||
}, | ||
/// Return address saved at. | ||
RaAt { | ||
/// Offset in the frame (offset from CFA). | ||
cfa_offset: isize, | ||
}, | ||
} | ||
|
||
/// Set of frame layout changes. | ||
pub type FrameLayoutChanges = Box<[FrameLayoutChange]>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters