/external/v8/src/ |
D | splay-tree-inl.h | 14 template<typename Config, class Allocator> 15 SplayTree<Config, Allocator>::~SplayTree() { in ~SplayTree() 21 template<typename Config, class Allocator> 22 bool SplayTree<Config, Allocator>::Insert(const Key& key, in Insert() 46 template<typename Config, class Allocator> 47 void SplayTree<Config, Allocator>::InsertInternal(int cmp, Node* node) { in InsertInternal() 61 template<typename Config, class Allocator> 62 bool SplayTree<Config, Allocator>::FindInternal(const Key& key) { in FindInternal() 70 template<typename Config, class Allocator> 71 bool SplayTree<Config, Allocator>::Contains(const Key& key) { in Contains() [all …]
|
/external/llvm/include/llvm/Support/ |
D | Allocator.h | 145 : CurPtr(nullptr), End(nullptr), BytesAllocated(0), Allocator() {} in BumpPtrAllocatorImpl() 147 BumpPtrAllocatorImpl(T &&Allocator) in BumpPtrAllocatorImpl() argument 149 Allocator(std::forward<T &&>(Allocator)) {} in BumpPtrAllocatorImpl() 157 Allocator(std::move(Old.Allocator)) { in BumpPtrAllocatorImpl() 178 Allocator = std::move(RHS.Allocator); 234 void *NewSlab = Allocator.Allocate(PaddedSize, 0); in Allocate() 309 AllocatorT Allocator; variable 324 void *NewSlab = Allocator.Allocate(AllocatedSlabSize, 0); in StartNewSlab() 340 Allocator.Deallocate(*I, AllocatedSlabSize); in DeallocateSlabs() 349 Allocator.Deallocate(Ptr, Size); in DeallocateCustomSizedSlabs() [all …]
|
D | RecyclingAllocator.h | 35 AllocatorType Allocator; variable 38 ~RecyclingAllocator() { Base.clear(Allocator); } in ~RecyclingAllocator() 44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() 46 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() 52 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate() 55 Allocator.PrintStats(); in PrintStats() 65 T, Size, Align> &Allocator) { in new() argument 67 return Allocator.Allocate(); in new()
|
D | Recycler.h | 67 void clear(AllocatorType &Allocator) { in clear() argument 70 Allocator.Deallocate(t); in clear() 82 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() argument 88 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate() 92 T *Allocate(AllocatorType &Allocator) { in Allocate() argument 93 return Allocate<T>(Allocator); in Allocate()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Allocator.h | 148 : CurPtr(nullptr), End(nullptr), BytesAllocated(0), Allocator() {} in BumpPtrAllocatorImpl() 150 BumpPtrAllocatorImpl(T &&Allocator) in BumpPtrAllocatorImpl() argument 152 Allocator(std::forward<T &&>(Allocator)) {} in BumpPtrAllocatorImpl() 160 Allocator(std::move(Old.Allocator)) { in BumpPtrAllocatorImpl() 181 Allocator = std::move(RHS.Allocator); 237 void *NewSlab = Allocator.Allocate(PaddedSize, 0); in Allocate() 312 AllocatorT Allocator; variable 327 void *NewSlab = Allocator.Allocate(AllocatedSlabSize, 0); in StartNewSlab() 343 Allocator.Deallocate(*I, AllocatedSlabSize); in DeallocateSlabs() 352 Allocator.Deallocate(Ptr, Size); in DeallocateCustomSizedSlabs() [all …]
|
/external/clang/include/clang/Basic/ |
D | PartialDiagnostic.h | 123 StorageAllocator *Allocator; variable 130 if (Allocator) in getStorage() 131 DiagStorage = Allocator->Allocate(); in getStorage() 133 assert(Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))); in getStorage() 153 if (Allocator) in freeStorageSlow() 154 Allocator->Deallocate(DiagStorage); in freeStorageSlow() 155 else if (Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))) in freeStorageSlow() 182 : DiagID(0), DiagStorage(nullptr), Allocator(nullptr) { } in PartialDiagnostic() 184 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator) in PartialDiagnostic() argument 185 : DiagID(DiagID), DiagStorage(nullptr), Allocator(&Allocator) { } in PartialDiagnostic() [all …]
|
/external/libcxx/test/std/containers/sequences/deque/deque.cons/ |
D | size.pass.cpp | 23 template <class T, class Allocator> 28 typedef std::deque<T, Allocator> C; in test2() 32 C d(n, Allocator()); in test2() 45 template <class T, class Allocator> 49 typedef std::deque<T, Allocator> C; in test1() 65 template <class T, class Allocator> 67 test3(unsigned n, Allocator const &alloc = Allocator()) in test3() 70 typedef std::deque<T, Allocator> C; in test3() 82 template <class T, class Allocator> 86 test1<T, Allocator> ( n ); in test() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | Allocator.h | 77 MallocAllocator Allocator; 80 MallocSlabAllocator() : Allocator() { } 105 SlabAllocator &Allocator; 190 BumpPtrAllocator Allocator; 194 : Allocator(size, threshold, allocator) {} 204 MemSlab *Slab = Allocator.CurSlab; 206 char *End = Slab == Allocator.CurSlab ? Allocator.CurPtr : 209 Ptr = Allocator.AlignPtr(Ptr, alignOf<T>()); 215 Allocator.Reset(); 220 return Allocator.Allocate<T>(num); [all …]
|
D | RecyclingAllocator.h | 35 AllocatorType Allocator; variable 38 ~RecyclingAllocator() { Base.clear(Allocator); } in ~RecyclingAllocator() 44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() 46 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() 52 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate() 62 T, Size, Align> &Allocator) { in new() argument 63 return Allocator.Allocate(); in new()
|
D | TargetRegistry.h | 806 TargetRegistry::RegisterMCAsmInfo(T, &Allocator); in RegisterMCAsmInfo() 809 static MCAsmInfo *Allocator(const Target &T, StringRef TT) { in Allocator() function 840 TargetRegistry::RegisterMCCodeGenInfo(T, &Allocator); in RegisterMCCodeGenInfo() 843 static MCCodeGenInfo *Allocator(StringRef TT, in Allocator() function 874 TargetRegistry::RegisterMCInstrInfo(T, &Allocator); in RegisterMCInstrInfo() 877 static MCInstrInfo *Allocator() { in Allocator() function 907 TargetRegistry::RegisterMCInstrAnalysis(T, &Allocator); in RegisterMCInstrAnalysis() 910 static MCInstrAnalysis *Allocator(const MCInstrInfo *Info) { in Allocator() function 940 TargetRegistry::RegisterMCRegInfo(T, &Allocator); in RegisterMCRegInfo() 943 static MCRegisterInfo *Allocator(StringRef TT) { in Allocator() function [all …]
|
/external/fmtlib/fmt/ |
D | string.h | 20 template <typename Char, typename Allocator = std::allocator<Char> > 23 typedef std::basic_string<Char, std::char_traits<Char>, Allocator> StringType; 36 explicit StringBuffer(const Allocator &allocator = Allocator()) 80 template <typename Char, typename Allocator = std::allocator<Char> > 83 internal::StringBuffer<Char, Allocator> buffer_; 91 explicit BasicStringWriter(const Allocator &allocator = Allocator()) 99 void move_to(std::basic_string<Char, std::char_traits<Char>, Allocator> &str) { in move_to()
|
/external/swiftshader/third_party/subzero/src/ |
D | IceMemory.cpp | 32 ArenaAllocator *Allocator = in set_current() local 33 Manager == nullptr ? nullptr : Manager->Allocator.get(); in set_current() 34 set_current(Allocator); in set_current() 37 void CfgAllocatorTraits::set_current(ArenaAllocator *Allocator) { in set_current() argument 38 ICE_TLS_SET_FIELD(CfgAllocator, Allocator); in set_current() 53 ArenaAllocator *Allocator = in set_current() local 55 ICE_TLS_SET_FIELD(LivenessAllocator, Allocator); in set_current()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_allocator_test.cc | 89 template <class Allocator> 91 Allocator *a = new Allocator; in TestSizeClassAllocator() 93 SizeClassAllocatorLocalCache<Allocator> cache; in TestSizeClassAllocator() 112 uptr class_id0 = Allocator::SizeClassMapT::ClassID(size); in TestSizeClassAllocator() 125 CHECK_EQ(class_id, Allocator::SizeClassMapT::ClassID(size)); in TestSizeClassAllocator() 170 template <class Allocator> 172 Allocator *a = new Allocator; in SizeClassAllocatorMetadataStress() 174 SizeClassAllocatorLocalCache<Allocator> cache; in SizeClassAllocatorMetadataStress() 213 template <class Allocator> 215 Allocator *a = new Allocator; in SizeClassAllocatorGetBlockBeginStress() [all …]
|
/external/llvm/unittests/Support/ |
D | ArrayRecyclerTest.cpp | 52 BumpPtrAllocator Allocator; in TEST() local 56 Object *A1 = DUT.allocate(Cap, Allocator); in TEST() 60 Object *A2 = DUT.allocate(Cap, Allocator); in TEST() 64 Object *A3 = DUT.allocate(Cap, Allocator); in TEST() 84 Object *A2x = DUT.allocate(Cap, Allocator); in TEST() 93 Object *A3x = DUT.allocate(Cap, Allocator); in TEST() 95 Object *A1x = DUT.allocate(Cap, Allocator); in TEST() 97 Object *A2y = DUT.allocate(Cap, Allocator); in TEST() 101 Object *A4 = DUT.allocate(Cap, Allocator); in TEST() 106 DUT.clear(Allocator); in TEST()
|
/external/libcxx/test/std/containers/sequences/vector/ |
D | types.pass.cpp | 42 template <class T, class Allocator> 46 typedef std::vector<T, Allocator> C; in test() 52 … static_assert((std::is_same<typename C::value_type, typename Allocator::value_type>::value), ""); in test() 53 static_assert((std::is_same<typename C::allocator_type, Allocator>::value), ""); in test() 54 static_assert((std::is_same<typename C::size_type, typename Allocator::size_type>::value), ""); in test() 55 …static_assert((std::is_same<typename C::difference_type, typename Allocator::difference_type>::val… in test() 56 static_assert((std::is_same<typename C::reference, typename Allocator::reference>::value), ""); in test() 57 …static_assert((std::is_same<typename C::const_reference, typename Allocator::const_reference>::val… in test() 58 static_assert((std::is_same<typename C::pointer, typename Allocator::pointer>::value), ""); in test() 59 …static_assert((std::is_same<typename C::const_pointer, typename Allocator::const_pointer>::value),… in test()
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | ScopedHashTable.h | 64 AllocatorTy &Allocator) { in Create() argument 65 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>(); in Create() 74 void Destroy(AllocatorTy &Allocator) { in Destroy() argument 77 Allocator.Deallocate(this); in Destroy() 156 AllocatorTy Allocator; variable 163 ScopedHashTable(AllocatorTy A) : CurScope(0), Allocator(A) {} in ScopedHashTable() 172 AllocatorRefTy getAllocator() { return Allocator; } in getAllocator() 173 AllocatorCRefTy getAllocator() const { return Allocator; } in getAllocator() 213 Allocator); in insertIntoScope() 220 template <typename K, typename V, typename KInfo, typename Allocator> [all …]
|
/external/llvm/include/llvm/ADT/ |
D | ScopedHashTable.h | 64 AllocatorTy &Allocator) { in Create() argument 65 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>(); in Create() 73 template <typename AllocatorTy> void Destroy(AllocatorTy &Allocator) { in Destroy() argument 76 Allocator.Deallocate(this); in Destroy() 157 AllocatorTy Allocator; variable 165 ScopedHashTable(AllocatorTy A) : CurScope(0), Allocator(A) {} in ScopedHashTable() 171 AllocatorTy &getAllocator() { return Allocator; } in getAllocator() 172 const AllocatorTy &getAllocator() const { return Allocator; } in getAllocator() 213 Allocator); in insertIntoScope() 220 template <typename K, typename V, typename KInfo, typename Allocator> [all …]
|
D | StringMap.h | 152 static StringMapEntry *Create(StringRef Key, AllocatorTy &Allocator, in Create() argument 163 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create() 197 void Destroy(AllocatorTy &Allocator) { in Destroy() argument 202 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy() 218 AllocatorTy Allocator; variable 228 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {} in StringMap() 232 Allocator(A) {} in StringMap() 242 : StringMapImpl(std::move(RHS)), Allocator(std::move(RHS.Allocator)) {} in StringMap() 246 std::swap(Allocator, RHS.Allocator); 252 Allocator(RHS.Allocator) { in StringMap() [all …]
|
/external/libcxx/test/std/strings/basic.string/ |
D | types.pass.cpp | 43 template <class Traits, class Allocator> 47 typedef std::basic_string<typename Traits::char_type, Traits, Allocator> S; in test() 51 … static_assert((std::is_same<typename S::value_type, typename Allocator::value_type>::value), ""); in test() 52 static_assert((std::is_same<typename S::allocator_type, Allocator>::value), ""); in test() 53 …static_assert((std::is_same<typename S::size_type, typename std::allocator_traits<Allocator>::size… in test() 54 …td::is_same<typename S::difference_type, typename std::allocator_traits<Allocator>::difference_typ… in test() 57 …static_assert((std::is_same<typename S::pointer, typename std::allocator_traits<Allocator>::pointe… in test() 58 …static_assert((std::is_same<typename S::const_pointer, typename std::allocator_traits<Allocator>::… in test()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | StringMap.h | 158 static StringMapEntry *Create(StringRef Key, AllocatorTy &Allocator, in Create() argument 169 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create() 203 void Destroy(AllocatorTy &Allocator) { in Destroy() argument 208 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy() 224 AllocatorTy Allocator; variable 234 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {} in StringMap() 238 Allocator(A) {} in StringMap() 248 : StringMapImpl(std::move(RHS)), Allocator(std::move(RHS.Allocator)) {} in StringMap() 252 std::swap(Allocator, RHS.Allocator); 258 Allocator(RHS.Allocator) { in StringMap() [all …]
|
/external/libcxx/test/std/containers/sequences/deque/ |
D | types.pass.cpp | 40 template <class T, class Allocator> 44 typedef std::deque<T, Allocator> C; in test() 47 … static_assert((std::is_same<typename C::value_type, typename Allocator::value_type>::value), ""); in test() 48 static_assert((std::is_same<typename C::allocator_type, Allocator>::value), ""); in test() 49 static_assert((std::is_same<typename C::size_type, typename Allocator::size_type>::value), ""); in test() 50 …static_assert((std::is_same<typename C::difference_type, typename Allocator::difference_type>::val… in test() 51 static_assert((std::is_same<typename C::reference, typename Allocator::reference>::value), ""); in test() 52 …static_assert((std::is_same<typename C::const_reference, typename Allocator::const_reference>::val… in test() 53 static_assert((std::is_same<typename C::pointer, typename Allocator::pointer>::value), ""); in test() 54 …static_assert((std::is_same<typename C::const_pointer, typename Allocator::const_pointer>::value),… in test()
|
/external/libcxx/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/ |
D | alloc.pass.cpp | 37 template <class T, class Allocator> 38 void check_allocator ( const dynarray<T> &dyn, const Allocator &alloc ) { in check_allocator() 43 template <class T, class Allocator> 44 void test ( const std::initializer_list<T> &vals, const Allocator &alloc ) { in test() 54 template <class T, class Allocator> 55 void test ( const T &val, const Allocator &alloc1, const Allocator &alloc2 ) { in test()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiBufferAndImageAllocationUtil.hpp | 34 class Allocator; 53 Allocator& allocator, 65 Allocator& allocator, 77 Allocator& allocator, 89 Allocator& allocator, 101 Allocator& allocator, 113 Allocator& allocator,
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawImageObjectUtil.hpp | 70 vk::Allocator& allocator, 74 vk::Allocator& allocator, 84 vk::Allocator& allocator, 93 vk::Allocator& allocator, 112 vk::Allocator& allocator, 125 vk::Allocator& allocator, 147 vk::Allocator& allocator, 156 vk::Allocator& allocator, 165 vk::Allocator& allocator, 182 vk::Allocator& allocator, [all …]
|
/external/libcxx/test/std/containers/sequences/vector.bool/ |
D | types.pass.cpp | 38 template <class Allocator> 42 typedef std::vector<bool, Allocator> C; in test() 45 … static_assert((std::is_same<typename C::value_type, typename Allocator::value_type>::value), ""); in test() 46 static_assert((std::is_same<typename C::allocator_type, Allocator>::value), ""); in test() 47 …static_assert((std::is_same<typename C::size_type, typename std::allocator_traits<Allocator>::size… in test() 48 …td::is_same<typename C::difference_type, typename std::allocator_traits<Allocator>::difference_typ… in test()
|