2020-12-16 15:07:42 -05:00
|
|
|
using ARMeilleure.CodeGen.Unwinding;
|
|
|
|
using System;
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
|
|
|
namespace ARMeilleure.Translation.Cache
|
|
|
|
{
|
2022-12-05 08:47:39 -05:00
|
|
|
readonly struct CacheEntry : IComparable<CacheEntry>
|
2020-12-16 15:07:42 -05:00
|
|
|
{
|
|
|
|
public int Offset { get; }
|
|
|
|
public int Size { get; }
|
|
|
|
|
|
|
|
public UnwindInfo UnwindInfo { get; }
|
|
|
|
|
|
|
|
public CacheEntry(int offset, int size, UnwindInfo unwindInfo)
|
|
|
|
{
|
|
|
|
Offset = offset;
|
|
|
|
Size = size;
|
|
|
|
UnwindInfo = unwindInfo;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int CompareTo([AllowNull] CacheEntry other)
|
|
|
|
{
|
|
|
|
return Offset.CompareTo(other.Offset);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|