2020-12-16 20:07:42 +00:00
|
|
|
using ARMeilleure.CodeGen.Unwinding;
|
|
|
|
using System;
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
|
|
|
namespace ARMeilleure.Translation.Cache
|
|
|
|
{
|
2022-12-05 13:47:39 +00:00
|
|
|
readonly struct CacheEntry : IComparable<CacheEntry>
|
2020-12-16 20:07:42 +00: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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|