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