aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/CodeGen/Unwinding/UnwindPushEntry.cs
blob: fd8ea402b227ce3f288f868ba56f5567f802de5b (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;
        }
    }
}