mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 06:46:24 +02:00
misc: chore: [ci skip] Use explicit types & target-typed new
This commit is contained in:
parent
faacec9801
commit
6ab899f621
4 changed files with 15 additions and 17 deletions
|
@ -48,7 +48,7 @@ namespace Ryujinx.Cpu.LightningJit.Cache
|
|||
return;
|
||||
}
|
||||
|
||||
var firstRegion = new ReservedRegion(allocator, CacheSize);
|
||||
ReservedRegion firstRegion = new(allocator, CacheSize);
|
||||
_jitRegions.Add(firstRegion);
|
||||
_activeRegionIndex = 0;
|
||||
|
||||
|
@ -104,7 +104,7 @@ namespace Ryujinx.Cpu.LightningJit.Cache
|
|||
{
|
||||
Debug.Assert(_initialized);
|
||||
|
||||
foreach (var region in _jitRegions)
|
||||
foreach (ReservedRegion region in _jitRegions)
|
||||
{
|
||||
if (pointer.ToInt64() < region.Pointer.ToInt64() ||
|
||||
pointer.ToInt64() >= (region.Pointer + CacheSize).ToInt64())
|
||||
|
@ -160,7 +160,7 @@ namespace Ryujinx.Cpu.LightningJit.Cache
|
|||
}
|
||||
|
||||
int exhaustedRegion = _activeRegionIndex;
|
||||
var newRegion = new ReservedRegion(_jitRegions[0].Allocator, CacheSize);
|
||||
ReservedRegion newRegion = new(_jitRegions[0].Allocator, CacheSize);
|
||||
_jitRegions.Add(newRegion);
|
||||
_activeRegionIndex = _jitRegions.Count - 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue