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