mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
misc: chore: Remove redundant code
This commit is contained in:
1 parent
340ec79e9f
commit
05a88ccc94
109 files changed
+271
-412
No files matched your search
@@ -146,9 +146,9 @@ namespace ARMeilleure.CodeGen.RegisterAllocators
|
||||
}
|
||||
}
|
||||
|
||||
private Queue<Operation> _fillQueue = null;
|
||||
private Queue<Operation> _spillQueue = null;
|
||||
private ParallelCopy _parallelCopy = null;
|
||||
private Queue<Operation> _fillQueue;
|
||||
private Queue<Operation> _spillQueue;
|
||||
private ParallelCopy _parallelCopy;
|
||||
|
||||
public bool HasCopy { get; private set; }
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ARMeilleure.Instructions
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace ARMeilleure
|
||||
{
|
||||
using Arm64HardwareCapabilities = ARMeilleure.CodeGen.Arm64.HardwareCapabilities;
|
||||
using X86HardwareCapabilities = ARMeilleure.CodeGen.X86.HardwareCapabilities;
|
||||
using Arm64HardwareCapabilities = CodeGen.Arm64.HardwareCapabilities;
|
||||
using X86HardwareCapabilities = CodeGen.X86.HardwareCapabilities;
|
||||
|
||||
public static class Optimizations
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace ARMeilleure.State
|
||||
public long Tpidr2El0;
|
||||
}
|
||||
|
||||
private static NativeCtxStorage _dummyStorage = new();
|
||||
private static NativeCtxStorage _dummyStorage;
|
||||
|
||||
private readonly IJitMemoryBlock _block;
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace ARMeilleure.Translation
|
||||
public bool HasPtc { get; }
|
||||
public Aarch32Mode Mode { get; }
|
||||
|
||||
private int _ifThenBlockStateIndex = 0;
|
||||
private int _ifThenBlockStateIndex;
|
||||
private Condition[] _ifThenBlockState = [];
|
||||
public bool IsInIfThenBlock => _ifThenBlockStateIndex < _ifThenBlockState.Length;
|
||||
public Condition CurrentIfThenBlockCond => _ifThenBlockState[_ifThenBlockStateIndex];
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace ARMeilleure.Translation.Cache
|
||||
UnwindInfo = unwindInfo;
|
||||
}
|
||||
|
||||
public int CompareTo([AllowNull] CacheEntry other)
|
||||
public int CompareTo(CacheEntry other)
|
||||
{
|
||||
return Offset.CompareTo(other.Offset);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace ARMeilleure.Translation.Cache
|
||||
Size = size;
|
||||
}
|
||||
|
||||
public int CompareTo([AllowNull] MemoryBlock other)
|
||||
public int CompareTo(MemoryBlock other)
|
||||
{
|
||||
return Offset.CompareTo(other.Offset);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace ARMeilleure.Translation.Cache
|
||||
private static bool _initialized;
|
||||
|
||||
private static readonly List<ReservedRegion> _jitRegions = [];
|
||||
private static int _activeRegionIndex = 0;
|
||||
private static int _activeRegionIndex;
|
||||
|
||||
[SupportedOSPlatform("windows")]
|
||||
[LibraryImport("kernel32.dll", SetLastError = true)]
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace ARMeilleure.Translation.Cache
|
||||
|
||||
_unwindInfo = (UnwindInfo*)(workBufferPtr + _sizeOfRuntimeFunction);
|
||||
|
||||
_getRuntimeFunctionCallback = new GetRuntimeFunctionCallback(FunctionTableHandler);
|
||||
_getRuntimeFunctionCallback = FunctionTableHandler;
|
||||
|
||||
result = RtlInstallFunctionTableCallback(
|
||||
codeCachePtr | 3,
|
||||
@@ -102,10 +102,7 @@ namespace ARMeilleure.Translation.Cache
|
||||
|
||||
bool result;
|
||||
|
||||
unsafe
|
||||
{
|
||||
result = RtlDeleteFunctionTable(codeCachePtr | 3);
|
||||
}
|
||||
result = RtlDeleteFunctionTable(codeCachePtr | 3);
|
||||
|
||||
if (!result)
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace ARMeilleure.Translation
|
||||
|
||||
private static readonly SortedList<string, DelegateInfo> _delegates;
|
||||
|
||||
unsafe static Delegates()
|
||||
static Delegates()
|
||||
{
|
||||
_delegates = new SortedList<string, DelegateInfo>();
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ namespace ARMeilleure.Translation
|
||||
|
||||
private const bool Black = true;
|
||||
private const bool Red = false;
|
||||
private IntervalTreeNode<TK, TV> _root = null;
|
||||
private int _count = 0;
|
||||
private IntervalTreeNode<TK, TV> _root;
|
||||
private int _count;
|
||||
|
||||
public int Count => _count;
|
||||
|
||||
@@ -709,9 +709,9 @@ namespace ARMeilleure.Translation
|
||||
class IntervalTreeNode<TK, TV>
|
||||
{
|
||||
public bool Color = true;
|
||||
public IntervalTreeNode<TK, TV> Left = null;
|
||||
public IntervalTreeNode<TK, TV> Right = null;
|
||||
public IntervalTreeNode<TK, TV> Parent = null;
|
||||
public IntervalTreeNode<TK, TV> Left;
|
||||
public IntervalTreeNode<TK, TV> Right;
|
||||
public IntervalTreeNode<TK, TV> Parent;
|
||||
|
||||
/// <summary>
|
||||
/// The start of the range.
|
||||
|
||||
Reference in new issue
Block a user