/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); 233 void *NewSlab = Allocator.Allocate(PaddedSize, 0); in Allocate() 306 AllocatorT Allocator; variable 321 void *NewSlab = Allocator.Allocate(AllocatedSlabSize, 0); in StartNewSlab() 337 Allocator.Deallocate(*I, AllocatedSlabSize); in DeallocateSlabs() 346 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()
|
D | TargetRegistry.h | 893 TargetRegistry::RegisterMCAsmInfo(T, &Allocator); in RegisterMCAsmInfo() 897 static MCAsmInfo *Allocator(const MCRegisterInfo & /*MRI*/, in Allocator() function 928 TargetRegistry::RegisterMCCodeGenInfo(T, &Allocator); in RegisterMCCodeGenInfo() 932 static MCCodeGenInfo *Allocator(const Triple & /*TT*/, Reloc::Model /*RM*/, in Allocator() function 963 TargetRegistry::RegisterMCInstrInfo(T, &Allocator); in RegisterMCInstrInfo() 967 static MCInstrInfo *Allocator() { return new MCInstrInfoImpl(); } in Allocator() function 994 TargetRegistry::RegisterMCInstrAnalysis(T, &Allocator); in RegisterMCInstrAnalysis() 998 static MCInstrAnalysis *Allocator(const MCInstrInfo *Info) { in Allocator() function 1027 TargetRegistry::RegisterMCRegInfo(T, &Allocator); in RegisterMCRegInfo() 1031 static MCRegisterInfo *Allocator(const Triple & /*TT*/) { in Allocator() function [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 | 21 template <class T, class Allocator> 26 typedef std::deque<T, Allocator> C; in test2() 30 C d(n, Allocator()); in test2() 43 template <class T, class Allocator> 47 typedef std::deque<T, Allocator> C; in test1() 63 template <class T, class Allocator> 65 test3(unsigned n, Allocator const &alloc = Allocator()) in test3() 68 typedef std::deque<T, Allocator> C; in test3() 78 template <class T, class Allocator> 82 test1<T, Allocator> ( n ); in test() [all …]
|
/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() 49 … static_assert((std::is_same<typename C::value_type, typename Allocator::value_type>::value), ""); in test() 50 static_assert((std::is_same<typename C::allocator_type, Allocator>::value), ""); in test() 51 static_assert((std::is_same<typename C::size_type, typename Allocator::size_type>::value), ""); in test() 52 …static_assert((std::is_same<typename C::difference_type, typename Allocator::difference_type>::val… in test() 53 static_assert((std::is_same<typename C::reference, typename Allocator::reference>::value), ""); in test() 54 …static_assert((std::is_same<typename C::const_reference, typename Allocator::const_reference>::val… in test() 55 static_assert((std::is_same<typename C::pointer, typename Allocator::pointer>::value), ""); in test() 56 …static_assert((std::is_same<typename C::const_pointer, typename Allocator::const_pointer>::value),… in test()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_allocator_test.cc | 79 template <class Allocator> 81 Allocator *a = new Allocator; in TestSizeClassAllocator() 83 SizeClassAllocatorLocalCache<Allocator> cache; in TestSizeClassAllocator() 102 uptr class_id0 = Allocator::SizeClassMapT::ClassID(size); in TestSizeClassAllocator() 115 CHECK_EQ(class_id, Allocator::SizeClassMapT::ClassID(size)); in TestSizeClassAllocator() 160 template <class Allocator> 162 Allocator *a = new Allocator; in SizeClassAllocatorMetadataStress() 164 SizeClassAllocatorLocalCache<Allocator> cache; in SizeClassAllocatorMetadataStress() 203 template <class Allocator> 205 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/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/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/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 | 148 static StringMapEntry *Create(StringRef Key, AllocatorTy &Allocator, in Create() argument 159 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create() 173 static StringMapEntry *Create(StringRef Key, AllocatorTy &Allocator) { in Create() argument 174 return Create(Key, Allocator, ValueTy()); in Create() 198 void Destroy(AllocatorTy &Allocator) { in Destroy() argument 203 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy() 219 AllocatorTy Allocator; variable 229 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {} in StringMap() 233 Allocator(A) {} in StringMap() 243 : StringMapImpl(std::move(RHS)), Allocator(std::move(RHS.Allocator)) {} in StringMap() [all …]
|
/external/libcxx/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/ |
D | alloc.pass.cpp | 38 template <class T, class Allocator> 39 void check_allocator ( const dynarray<T> &dyn, const Allocator &alloc ) { in check_allocator() 44 template <class T, class Allocator> 45 void test ( const std::initializer_list<T> &vals, const Allocator &alloc ) { in test() 55 template <class T, class Allocator> 56 void test ( const T &val, const Allocator &alloc1, const Allocator &alloc2 ) { in test()
|
/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()
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawImageObjectUtil.hpp | 69 vk::Allocator& allocator, 73 vk::Allocator& allocator, 83 vk::Allocator& allocator, 92 vk::Allocator& allocator, 111 vk::Allocator& allocator, 124 vk::Allocator& allocator, 146 vk::Allocator& allocator, 155 vk::Allocator& allocator, 164 vk::Allocator& allocator, 181 vk::Allocator& allocator, [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderExecutor.hpp | 120 Allocator& memAlloc, 130 Allocator& memAlloc, 141 Allocator& memAlloc, 156 …st DeviceInterface& vk, const VkQueue queue, const deUint32 queueFamilyIndex, Allocator& memAlloc); 244 Allocator& memAlloc, 256 Allocator& memAlloc, 269 Allocator& memAlloc, 298 …or&, const VkDevice&, const DeviceInterface&, const VkQueue, const deUint32, Allocator&) const = 0; 310 …iceInterface& vk, const VkQueue queue, const deUint32 queueFamilyIndex, Allocator& memAlloc) const; 331 …viceInterface& vk, const VkQueue queue, const deUint32 queueFamilyIndex, Allocator& memAlloc) const in setup() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/ |
D | vktDynamicStateImageObjectUtil.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/deqp/external/vulkancts/modules/vulkan/query_pool/ |
D | vktQueryPoolImageObjectUtil.hpp | 69 vk::Allocator& allocator, 73 vk::Allocator& allocator, 82 vk::Allocator& allocator, 101 vk::Allocator& allocator, 114 vk::Allocator& allocator, 136 vk::Allocator& allocator, 145 vk::Allocator& allocator, 154 vk::Allocator& allocator, 171 vk::Allocator& allocator, 184 vk::Allocator& allocator, [all …]
|
/external/opencv3/modules/cudev/include/opencv2/cudev/ptr2d/ |
D | gpumat.hpp | 66 __host__ GpuMat_(Allocator* allocator = defaultAllocator()); 69 __host__ GpuMat_(int arows, int acols, Allocator* allocator = defaultAllocator()); 70 __host__ explicit GpuMat_(Size asize, Allocator* allocator = defaultAllocator()); 73 __host__ GpuMat_(int arows, int acols, Scalar val, Allocator* allocator = defaultAllocator()); 74 __host__ GpuMat_(Size asize, Scalar val, Allocator* allocator = defaultAllocator()); 80 __host__ explicit GpuMat_(const GpuMat& m, Allocator* allocator = defaultAllocator()); 91 __host__ explicit GpuMat_(InputArray arr, Allocator* allocator = defaultAllocator());
|
/external/llvm/lib/CodeGen/ |
D | MachineFunction.cpp | 68 RegInfo = new (Allocator) MachineRegisterInfo(this); in MachineFunction() 73 FrameInfo = new (Allocator) in MachineFunction() 81 ConstantPool = new (Allocator) MachineConstantPool(getDataLayout()); in MachineFunction() 95 WinEHInfo = new (Allocator) WinEHFuncInfo(); in MachineFunction() 113 InstructionRecycler.clear(Allocator); in ~MachineFunction() 114 OperandRecycler.clear(Allocator); in ~MachineFunction() 115 BasicBlockRecycler.clear(Allocator); in ~MachineFunction() 118 Allocator.Deallocate(RegInfo); in ~MachineFunction() 122 Allocator.Deallocate(MFInfo); in ~MachineFunction() 126 Allocator.Deallocate(FrameInfo); in ~MachineFunction() [all …]
|
/external/opencv3/modules/core/include/opencv2/core/ |
D | cuda.hpp | 99 class CV_EXPORTS Allocator class in cv::cuda::GpuMat 102 virtual ~Allocator() {} in ~Allocator() 110 static Allocator* defaultAllocator(); 111 static void setDefaultAllocator(Allocator* allocator); 114 explicit GpuMat(Allocator* allocator = defaultAllocator()); 117 GpuMat(int rows, int cols, int type, Allocator* allocator = defaultAllocator()); 118 GpuMat(Size size, int type, Allocator* allocator = defaultAllocator()); 121 GpuMat(int rows, int cols, int type, Scalar s, Allocator* allocator = defaultAllocator()); 122 GpuMat(Size size, int type, Scalar s, Allocator* allocator = defaultAllocator()); 136 explicit GpuMat(InputArray arr, Allocator* allocator = defaultAllocator()); [all …]
|
/external/libcxx/test/std/containers/sequences/forwardlist/forwardlist.cons/ |
D | size.pass.cpp | 21 template <class T, class Allocator> 22 void check_allocator(unsigned n, Allocator const &alloc = Allocator()) in check_allocator() 25 typedef std::forward_list<T, Allocator> C; in check_allocator()
|
/external/gemmlowp/test/ |
D | test_allocator.cc | 20 void test_allocator(Allocator* a, int max_array_size) { in test_allocator() 32 !(reinterpret_cast<std::uintptr_t>(int32_array) % Allocator::kAlignment)); in test_allocator() 34 !(reinterpret_cast<std::uintptr_t>(int8_array) % Allocator::kAlignment)); in test_allocator() 43 Allocator allocator; in test_allocator()
|