diff options
Diffstat (limited to 'src/jit/compilerbitsettraits.hpp')
-rw-r--r-- | src/jit/compilerbitsettraits.hpp | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/src/jit/compilerbitsettraits.hpp b/src/jit/compilerbitsettraits.hpp index 1b543951d8..e2ba2f8a7a 100644 --- a/src/jit/compilerbitsettraits.hpp +++ b/src/jit/compilerbitsettraits.hpp @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - #ifndef CompilerBitSetTraits_HPP_DEFINED #define CompilerBitSetTraits_HPP_DEFINED 1 @@ -10,19 +9,19 @@ #include "compiler.h" /////////////////////////////////////////////////////////////////////////////// -// +// // CompAllocBitSetTraits -// +// /////////////////////////////////////////////////////////////////////////////// -// static +// static IAllocator* CompAllocBitSetTraits::GetAllocator(Compiler* comp) { return comp->getAllocatorBitset(); } #ifdef DEBUG -// static +// static IAllocator* CompAllocBitSetTraits::GetDebugOnlyAllocator(Compiler* comp) { return comp->getAllocatorDebugOnly(); @@ -30,9 +29,9 @@ IAllocator* CompAllocBitSetTraits::GetDebugOnlyAllocator(Compiler* comp) #endif // DEBUG /////////////////////////////////////////////////////////////////////////////// -// +// // TrackedVarBitSetTraits -// +// /////////////////////////////////////////////////////////////////////////////// // static @@ -48,7 +47,7 @@ unsigned TrackedVarBitSetTraits::GetArrSize(Compiler* comp, unsigned elemSize) return comp->lvaTrackedCountInSizeTUnits; } -// static +// static unsigned TrackedVarBitSetTraits::GetEpoch(Compiler* comp) { return comp->GetCurLVEpoch(); @@ -60,14 +59,14 @@ BitSetSupport::BitSetOpCounter* TrackedVarBitSetTraits::GetOpCounter(Compiler* c #if VARSET_COUNTOPS return &Compiler::m_varsetOpCounter; #else - return NULL; + return nullptr; #endif } /////////////////////////////////////////////////////////////////////////////// -// +// // AllVarBitSetTraits -// +// /////////////////////////////////////////////////////////////////////////////// // static @@ -82,7 +81,7 @@ unsigned AllVarBitSetTraits::GetArrSize(Compiler* comp, unsigned elemSize) return unsigned(roundUp(GetSize(comp), elemSize)); } -// static +// static unsigned AllVarBitSetTraits::GetEpoch(Compiler* comp) { return GetSize(comp); @@ -94,14 +93,14 @@ BitSetSupport::BitSetOpCounter* AllVarBitSetTraits::GetOpCounter(Compiler* comp) #if ALLVARSET_COUNTOPS return &Compiler::m_allvarsetOpCounter; #else - return NULL; + return nullptr; #endif } /////////////////////////////////////////////////////////////////////////////// -// +// // BasicBlockBitSetTraits -// +// /////////////////////////////////////////////////////////////////////////////// // static @@ -118,10 +117,10 @@ unsigned BasicBlockBitSetTraits::GetArrSize(Compiler* comp, unsigned elemSize) assert(GetEpoch(comp) != 0); assert(elemSize == sizeof(size_t)); - return comp->fgBBSetCountInSizeTUnits; // This is precomputed to avoid doing math every time this function is called + return comp->fgBBSetCountInSizeTUnits; // This is precomputed to avoid doing math every time this function is called } -// static +// static unsigned BasicBlockBitSetTraits::GetEpoch(Compiler* comp) { return comp->GetCurBasicBlockEpoch(); @@ -130,13 +129,13 @@ unsigned BasicBlockBitSetTraits::GetEpoch(Compiler* comp) // static BitSetSupport::BitSetOpCounter* BasicBlockBitSetTraits::GetOpCounter(Compiler* comp) { - return NULL; + return nullptr; } /////////////////////////////////////////////////////////////////////////////// -// +// // BitVecTraits -// +// /////////////////////////////////////////////////////////////////////////////// // static @@ -164,7 +163,7 @@ unsigned BitVecTraits::GetArrSize(BitVecTraits* b, unsigned elemSize) { assert(elemSize == sizeof(size_t)); unsigned elemBits = 8 * elemSize; - return (unsigned) roundUp(b->size, elemBits)/elemBits; + return (unsigned)roundUp(b->size, elemBits) / elemBits; } // static @@ -176,7 +175,7 @@ unsigned BitVecTraits::GetEpoch(BitVecTraits* b) // static BitSetSupport::BitSetOpCounter* BitVecTraits::GetOpCounter(BitVecTraits* b) { - return NULL; + return nullptr; } #endif // CompilerBitSetTraits_HPP_DEFINED |