pub enum UnwindRuleAarch64 {
    NoOp,
    NoOpIfFirstFrameOtherwiseFp,
    OffsetSp {
        sp_offset_by_16: u16,
    },
    OffsetSpIfFirstFrameOtherwiseStackEndsHere {
        sp_offset_by_16: u16,
    },
    OffsetSpAndRestoreLr {
        sp_offset_by_16: u16,
        lr_storage_offset_from_sp_by_8: i16,
    },
    OffsetSpAndRestoreFpAndLr {
        sp_offset_by_16: u16,
        fp_storage_offset_from_sp_by_8: i16,
        lr_storage_offset_from_sp_by_8: i16,
    },
    UseFramePointer,
    UseFramepointerWithOffsets {
        sp_offset_from_fp_by_8: u16,
        fp_storage_offset_from_fp_by_8: i16,
        lr_storage_offset_from_fp_by_8: i16,
    },
}

Variants§

§

NoOp

(sp, fp, lr) = (sp, fp, lr) Only possible for the first frame. Subsequent frames must get the return address from somewhere other than the lr register to avoid infinite loops.

§

NoOpIfFirstFrameOtherwiseFp

(sp, fp, lr) = if is_first_frame (sp, fp, lr) else (fp + 16, *fp, *(fp + 8)) Used as a fallback rule.

§

OffsetSp

Fields

§sp_offset_by_16: u16

(sp, fp, lr) = (sp + 16x, fp, lr) Only possible for the first frame. Subsequent frames must get the return address from somewhere other than the lr register to avoid infinite loops.

§

OffsetSpIfFirstFrameOtherwiseStackEndsHere

Fields

§sp_offset_by_16: u16

(sp, fp, lr) = (sp + 16x, fp, lr) if is_first_frame This rule reflects an ambiguity in DWARF CFI information. When the return address is “undefined” because it was omitted, it could mean “same value”, but this is only allowed for the first frame.

§

OffsetSpAndRestoreLr

Fields

§sp_offset_by_16: u16
§lr_storage_offset_from_sp_by_8: i16

(sp, fp, lr) = (sp + 16x, fp, *(sp + 8y))

§

OffsetSpAndRestoreFpAndLr

Fields

§sp_offset_by_16: u16
§fp_storage_offset_from_sp_by_8: i16
§lr_storage_offset_from_sp_by_8: i16

(sp, fp, lr) = (sp + 16x, *(sp + 8y), *(sp + 8z))

§

UseFramePointer

(sp, fp, lr) = (fp + 16, *fp, *(fp + 8))

§

UseFramepointerWithOffsets

Fields

§sp_offset_from_fp_by_8: u16
§fp_storage_offset_from_fp_by_8: i16
§lr_storage_offset_from_fp_by_8: i16

(sp, fp, lr) = (fp + 8x, *(fp + 8y), *(fp + 8z))

Trait Implementations§

source§

impl Clone for UnwindRuleAarch64

source§

fn clone(&self) -> UnwindRuleAarch64

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UnwindRuleAarch64

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for UnwindRuleAarch64

source§

fn eq(&self, other: &UnwindRuleAarch64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for UnwindRuleAarch64

source§

impl Eq for UnwindRuleAarch64

source§

impl StructuralEq for UnwindRuleAarch64

source§

impl StructuralPartialEq for UnwindRuleAarch64

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.