Skip to content

Commit

Permalink
Explicitly state class for instances of ExpressionTree::FreeListForType.
Browse files Browse the repository at this point in the history
  • Loading branch information
shoops committed Nov 18, 2024
1 parent e03cd5b commit 2a68867
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/NativeJIT/inc/NativeJIT/ExpressionTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ namespace NativeJIT
template <typename T>
ExpressionTree::Storage<T> ExpressionTree::Direct()
{
auto & freeList = FreeListForType<T>::Get(*this);
auto & freeList = ExpressionTree::FreeListForType<T>::Get(*this);
Storage<T> direct;

if (freeList.GetFreeCount() > 0)
Expand All @@ -121,7 +121,7 @@ namespace NativeJIT
typedef typename Storage<T>::FullRegister FullRegister;

auto & code = GetCodeGenerator();
auto & freeList = FreeListForType<T>::Get(*this);
auto & freeList = ExpressionTree::FreeListForType<T>::Get(*this);

LogThrowAssert(!IsPinned(r), "Attempted to obtain the pinned register %s", r.GetName());

Expand Down Expand Up @@ -397,7 +397,7 @@ namespace NativeJIT
ExpressionTree& tree,
DirectRegister reg)
{
auto & freeList = FreeListForType<T>::Get(tree);
auto & freeList = ExpressionTree::FreeListForType<T>::Get(tree);
LogThrowAssert(!freeList.IsAvailable(reg.GetId()),
"Register %s must already be allocated",
reg.GetName());
Expand All @@ -409,7 +409,7 @@ namespace NativeJIT
template <typename T>
Storage<T> ExpressionTree::Storage<T>::ForAnyFreeRegister(ExpressionTree& tree)
{
auto & freeList = FreeListForType<T>::Get(tree);
auto & freeList = ExpressionTree::FreeListForType<T>::Get(tree);
Storage<T>::DirectRegister r(freeList.Allocate());

Data* data = &tree.PlacementConstruct<Data>(tree, r);
Expand All @@ -422,7 +422,7 @@ namespace NativeJIT
Storage<T> ExpressionTree::Storage<T>::ForFreeRegister(ExpressionTree& tree,
DirectRegister reg)
{
auto & freeList = FreeListForType<T>::Get(tree);
auto & freeList = ExpressionTree::FreeListForType<T>::Get(tree);
freeList.Allocate(reg.GetId());

Data* data = &tree.PlacementConstruct<Data>(tree, reg);
Expand Down Expand Up @@ -737,7 +737,7 @@ namespace NativeJIT

if (!IsSoleDataOwner())
{
auto & freeList = FreeListForType<T>::Get(tree);
auto & freeList = ExpressionTree::FreeListForType<T>::Get(tree);
auto & code = tree.GetCodeGenerator();
typedef typename CanonicalRegisterType<FullRegister>::Type FullType;

Expand Down Expand Up @@ -771,7 +771,7 @@ namespace NativeJIT

if (GetStorageClass() == StorageClass::Direct)
{
auto & freeList = FreeListForType<T>::Get(m_data->GetTree());
auto & freeList = ExpressionTree::FreeListForType<T>::Get(m_data->GetTree());

return freeList.GetPin(m_data->GetRegisterId());
}
Expand Down

0 comments on commit 2a68867

Please sign in to comment.