aboutsummaryrefslogtreecommitdiff
path: root/src/ARMeilleure/CodeGen/Unwinding/UnwindPushEntry.cs
blob: 507ace598eebec05623ffbe92d76e1040484c74d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace ARMeilleure.CodeGen.Unwinding
{
    struct UnwindPushEntry
    {
        public const int Stride = 16; // Bytes.

        public UnwindPseudoOp PseudoOp { get; }
        public int PrologOffset { get; }
        public int RegIndex { get; }
        public int StackOffsetOrAllocSize { get; }

        public UnwindPushEntry(UnwindPseudoOp pseudoOp, int prologOffset, int regIndex = -1, int stackOffsetOrAllocSize = -1)
        {
            PseudoOp = pseudoOp;
            PrologOffset = prologOffset;
            RegIndex = regIndex;
            StackOffsetOrAllocSize = stackOffsetOrAllocSize;
        }
    }
}