Home
last modified time | relevance | path

Searched refs:Allocator (Results 1 – 25 of 614) sorted by relevance

12345678910>>...25

/external/google-fruit/include/fruit/impl/data_structures/
Dfixed_size_vector.defn.h31 template <typename T, typename Allocator>
32 inline FixedSizeVector<T, Allocator>::FixedSizeVector(std::size_t capacity, Allocator allocator) in FixedSizeVector()
42 template <typename T, typename Allocator>
43 inline FixedSizeVector<T, Allocator>::~FixedSizeVector() { in ~FixedSizeVector()
50 template <typename T, typename Allocator>
51 inline FixedSizeVector<T, Allocator>::FixedSizeVector(FixedSizeVector&& other) : FixedSizeVector() { in FixedSizeVector()
55 template <typename T, typename Allocator>
56 inline FixedSizeVector<T, Allocator>& FixedSizeVector<T, Allocator>::operator=(FixedSizeVector&& ot…
61 template <typename T, typename Allocator>
62 inline std::size_t FixedSizeVector<T, Allocator>::size() const { in size()
[all …]
/external/v8/src/
Dsplay-tree-inl.h16 template<typename Config, class Allocator>
17 SplayTree<Config, Allocator>::~SplayTree() { in ~SplayTree()
23 template<typename Config, class Allocator>
24 bool SplayTree<Config, Allocator>::Insert(const Key& key, in Insert()
48 template<typename Config, class Allocator>
49 void SplayTree<Config, Allocator>::InsertInternal(int cmp, Node* node) { in InsertInternal()
63 template<typename Config, class Allocator>
64 bool SplayTree<Config, Allocator>::FindInternal(const Key& key) { in FindInternal()
72 template<typename Config, class Allocator>
73 bool SplayTree<Config, Allocator>::Contains(const Key& key) { in Contains()
[all …]
/external/libchrome/base/
Dstl_util.h87 template <typename CharT, typename Traits, typename Allocator>
88 CharT* data(std::basic_string<CharT, Traits, Allocator>& str) { in data()
239 template <typename CharT, typename Traits, typename Allocator, typename Value>
240 void Erase(std::basic_string<CharT, Traits, Allocator>& container, in Erase()
246 template <typename CharT, typename Traits, typename Allocator, class Predicate>
247 void EraseIf(std::basic_string<CharT, Traits, Allocator>& container, in EraseIf()
253 template <class T, class Allocator, class Value>
254 void Erase(std::deque<T, Allocator>& container, const Value& value) { in Erase()
259 template <class T, class Allocator, class Predicate>
260 void EraseIf(std::deque<T, Allocator>& container, Predicate pred) { in EraseIf()
[all …]
/external/llvm/include/llvm/Support/
DAllocator.h145 : 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 …]
DRecyclingAllocator.h35 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()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DAllocator.h148 : 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DAllocator.h152 BumpPtrAllocatorImpl(T &&Allocator) in BumpPtrAllocatorImpl() argument
153 : Allocator(std::forward<T &&>(Allocator)) {} in BumpPtrAllocatorImpl()
161 Allocator(std::move(Old.Allocator)) { in BumpPtrAllocatorImpl()
183 Allocator = std::move(RHS.Allocator);
245 void *NewSlab = Allocator.Allocate(PaddedSize, 0); in Allocate()
331 AllocatorT Allocator; variable
346 void *NewSlab = Allocator.Allocate(AllocatedSlabSize, 0); in StartNewSlab()
362 Allocator.Deallocate(*I, AllocatedSlabSize); in DeallocateSlabs()
371 Allocator.Deallocate(Ptr, Size); in DeallocateCustomSizedSlabs()
388 BumpPtrAllocator Allocator; variable
[all …]
DRecyclingAllocator.h35 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()
/external/clang/include/clang/Basic/
DPartialDiagnostic.h123 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/
Dsize.pass.cpp23 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/
DAllocator.h77 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 …]
DRecyclingAllocator.h35 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()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_test.cc89 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/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/MSF/
DMappedBlockStreamTest.cpp70 BumpPtrAllocator Allocator; member in __anon20d442d40111::DiscontiguousStream
80 F.Allocator); in TEST()
90 F.Allocator); in TEST()
106 F.Allocator); in TEST()
112 EXPECT_EQ(0U, F.Allocator.getBytesAllocated()); in TEST()
121 F.Allocator); in TEST()
126 EXPECT_EQ(0U, F.Allocator.getBytesAllocated()); in TEST()
131 EXPECT_EQ(0U, F.Allocator.getBytesAllocated()); in TEST()
140 F.Allocator); in TEST()
145 EXPECT_EQ(10U, F.Allocator.getBytesAllocated()); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/MSF/
DMappedBlockStream.h46 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator);
50 uint32_t StreamIndex, BumpPtrAllocator &Allocator);
54 BumpPtrAllocator &Allocator);
58 BumpPtrAllocator &Allocator);
71 BumpPtrAllocator &getAllocator() { return Allocator; } in getAllocator()
81 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator);
104 BumpPtrAllocator &Allocator; variable
112 WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator);
116 uint32_t StreamIndex, BumpPtrAllocator &Allocator);
121 BumpPtrAllocator &Allocator);
[all …]
/external/libcxx/test/std/containers/sequences/vector/
Dtypes.pass.cpp42 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-7.0/llvm/unittests/Support/
DArrayRecyclerTest.cpp52 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/llvm/unittests/Support/
DArrayRecyclerTest.cpp52 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/swiftshader/third_party/subzero/src/
DIceMemory.cpp32 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/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/MSF/
DMappedBlockStream.cpp49 BumpPtrAllocator &Allocator) in MappedBlockStream() argument
51 Allocator(Allocator) {} in MappedBlockStream()
55 BumpPtrAllocator &Allocator) { in createStream() argument
57 BlockSize, Layout, MsfData, Allocator); in createStream()
62 BumpPtrAllocator &Allocator) { in createIndexedStream() argument
68 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
74 BumpPtrAllocator &Allocator) { in createDirectoryStream() argument
78 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createDirectoryStream()
84 BumpPtrAllocator &Allocator) { in createFpmStream() argument
86 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createFpmStream()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringMap.h158 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/llvm/include/llvm/ADT/
DStringMap.h152 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 …]
DScopedHashTable.h64 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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DScopedHashTable.h68 AllocatorTy &Allocator) { in Create() argument
69 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>(); in Create()
77 template <typename AllocatorTy> void Destroy(AllocatorTy &Allocator) { in Destroy() argument
80 Allocator.Deallocate(this); in Destroy()
166 AllocatorTy Allocator; variable
170 ScopedHashTable(AllocatorTy A) : Allocator(A) {} in ScopedHashTable()
179 AllocatorTy &getAllocator() { return Allocator; } in getAllocator()
180 const AllocatorTy &getAllocator() const { return Allocator; } in getAllocator()
221 Allocator); in insertIntoScope()
228 template <typename K, typename V, typename KInfo, typename Allocator>
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DScopedHashTable.h64 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 …]

12345678910>>...25