/external/llvm/unittests/Support/ |
D | AllocatorTest.cpp | 19 BumpPtrAllocator Alloc; in TEST() local 20 int *a = (int*)Alloc.Allocate(sizeof(int), 0); in TEST() 21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0); in TEST() 22 int *c = (int*)Alloc.Allocate(sizeof(int), 0); in TEST() 31 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST() 36 BumpPtrAllocator Alloc(4096, 4096); in TEST() local 37 Alloc.Allocate(3000, 0); in TEST() 38 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST() 39 Alloc.Allocate(3000, 0); in TEST() 40 EXPECT_EQ(2U, Alloc.GetNumSlabs()); in TEST() [all …]
|
/external/chromium_org/gpu/command_buffer/client/ |
D | fenced_allocator_test.cc | 120 FencedAllocator::Offset offset = allocator_->Alloc(kSize); in TEST_F() 133 FencedAllocator::Offset offset = allocator_->Alloc(0); in TEST_F() 150 offsets[i] = allocator_->Alloc(kSize); in TEST_F() 157 FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize); in TEST_F() 164 offsets[0] = allocator_->Alloc(kSize/2); in TEST_F() 170 offset_failed = allocator_->Alloc(kSize); in TEST_F() 192 offsets[i] = allocator_->Alloc(kSize); in TEST_F() 199 FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize); in TEST_F() 215 offsets[0] = allocator_->Alloc(kSize); in TEST_F() 240 offsets[i] = allocator_->Alloc(kSize); in TEST_F() [all …]
|
D | mapped_memory_unittest.cc | 125 void *pointer = chunk_->Alloc(kSize); in TEST_F() 137 uint8 *pointer_char = static_cast<uint8*>(chunk_->Alloc(kSize)); in TEST_F() 171 void* mem1 = manager_->Alloc(kSize, &id1, &offset1); in TEST_F() 179 void* mem2 = manager_->Alloc(kSize, &id2, &offset2); in TEST_F() 186 void* mem3 = manager_->Alloc(kSize, &id3, &offset3); in TEST_F() 197 void* mem4 = manager_->Alloc(kSize / 2, &id4, &offset4); in TEST_F() 198 void* mem5 = manager_->Alloc(kSize / 2, &id5, &offset5); in TEST_F() 220 pointers[i] = manager_->Alloc(kSize, &id, &offset); in TEST_F() 242 void* new_ptr = manager_->Alloc(kSize, &new_id, &new_offset); in TEST_F() 261 void* mem1 = manager_->Alloc(kSize, &id1, &offset1); in TEST_F() [all …]
|
D | ring_buffer_test.cc | 143 RingBuffer::Offset offset = allocator_->Alloc(kSize); in TEST_F() 161 RingBuffer::Offset offset = allocator_->Alloc(kSize); in TEST_F() 174 RingBuffer::Offset offset1 = allocator_->Alloc(kSize); in TEST_F() 187 RingBuffer::Offset offset = allocator_->Alloc(kBufferSize); in TEST_F() 196 RingBuffer::Offset offset = allocator_->Alloc(kAlloc1); in TEST_F() 199 offset = allocator_->Alloc(kAlloc2); in TEST_F() 203 offset = allocator_->Alloc(kBufferSize); in TEST_F() 242 void* pointer = allocator_->Alloc(kSize); in TEST_F() 278 void* pointer = allocator_->Alloc(kSize); in TEST_F() 291 void* pointer1 = allocator_->Alloc(kSize); in TEST_F()
|
D | ring_buffer.h | 45 Offset Alloc(unsigned int size); 138 void* Alloc(unsigned int size) { in Alloc() function 139 RingBuffer::Offset offset = allocator_.Alloc(size); in Alloc() 155 return static_cast<T*>(Alloc(count * sizeof(T))); in AllocTyped()
|
D | fenced_allocator.h | 52 Offset Alloc(unsigned int size); 165 void *Alloc(unsigned int size) { in Alloc() function 166 FencedAllocator::Offset offset = allocator_.Alloc(size); in Alloc() 182 return static_cast<T *>(Alloc(count * sizeof(T))); in AllocTyped()
|
D | mapped_memory.cc | 40 void* MappedMemoryManager::Alloc( in Alloc() function in gpu::MappedMemoryManager 52 void* mem = chunk->Alloc(size); in Alloc() 69 void* mem = chunk->Alloc(size); in Alloc() 91 void* mem = mc->Alloc(size); in Alloc()
|
D | transfer_buffer.h | 36 void* Alloc(unsigned int size) { in Alloc() function 37 return RingBufferWrapper::Alloc(RoundToAlignment(size)); in Alloc() 80 virtual void* Alloc(unsigned int size) = 0; 108 virtual void* Alloc(unsigned int size) OVERRIDE;
|
D | mapped_memory.h | 54 void* Alloc(unsigned int size) { in Alloc() function 55 return allocator_.Alloc(size); in Alloc() 139 void* Alloc(
|
/external/clang/test/CXX/temp/temp.decls/temp.alias/ |
D | p2.cpp | 18 template<class T> struct Alloc {}; struct 19 template<class T> using Vec = vector<T, Alloc<T>>; 27 void process(vector<T, Alloc<T>>& w) // expected-error {{redefinition of 'process'}} in process() 34 void g(TT<int, Alloc<int>>); 43 using VTest = vector<int, Alloc<int>>;
|
/external/clang/test/CodeCompletion/ |
D | templates.cpp | 8 template<typename T, typename Alloc = std::allocator<T> > 9 class vector : Alloc { 14 template<typename Alloc> class vector<bool, Alloc>;
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
D | stl_allocator.h | 58 template <typename T, class Alloc> 70 typedef STL_Allocator<T1, Alloc> other; 75 template <class T1> STL_Allocator(const STL_Allocator<T1, Alloc>&) { } in STL_Allocator() argument 83 return static_cast<T*>(Alloc::Allocate(n * sizeof(T))); 85 void deallocate(pointer p, size_type n) { Alloc::Free(p, n * sizeof(T)); } in deallocate()
|
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
D | stl_allocator.h | 58 template <typename T, class Alloc> 70 typedef STL_Allocator<T1, Alloc> other; 75 template <class T1> STL_Allocator(const STL_Allocator<T1, Alloc>&) { } in STL_Allocator() argument 83 return static_cast<T*>(Alloc::Allocate(n * sizeof(T))); 85 void deallocate(pointer p, size_type n) { Alloc::Free(p, n * sizeof(T)); } in deallocate()
|
/external/clang/test/CodeGenCXX/ |
D | mangle-alias-template.cpp | 4 template<typename T> using Alloc = alloc<T>; typedef 5 template<typename T, typename A = Alloc<T>> struct vector {}; 31 Alloc<int> AC; in z() 35 h<Alloc>(AC); in z()
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
D | system-alloc.cc | 146 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 154 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 162 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 182 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 195 void* SbrkSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in SbrkSysAllocator 267 void* MmapSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in MmapSysAllocator 336 void* DevMemSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in DevMemSysAllocator 426 void* DefaultSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in DefaultSysAllocator 430 void* result = allocs_[i]->Alloc(size, actual_size, alignment); in Alloc() 483 void* result = sys_alloc->Alloc(size, actual_size, alignment); in TCMalloc_SystemAlloc()
|
D | memfs_malloc.cc | 99 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 117 void* HugetlbSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in HugetlbSysAllocator 120 return fallback_->Alloc(size, actual_size, alignment); in Alloc() 126 return fallback_->Alloc(size, actual_size, alignment); in Alloc() 135 return fallback_->Alloc(size, actual_size, alignment); in Alloc() 148 return fallback_->Alloc(size, actual_size, alignment); in Alloc()
|
/external/lzma/C/Util/Lzma/ |
D | makefile.gcc | 9 Alloc.o \ 25 Alloc.o: ../../Alloc.c 26 $(CXX) $(CFLAGS) ../../Alloc.c
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
D | memfs_malloc.cc | 99 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 117 void* HugetlbSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in HugetlbSysAllocator 120 return fallback_->Alloc(size, actual_size, alignment); in Alloc() 126 return fallback_->Alloc(size, actual_size, alignment); in Alloc() 135 return fallback_->Alloc(size, actual_size, alignment); in Alloc() 148 return fallback_->Alloc(size, actual_size, alignment); in Alloc()
|
D | system-alloc.cc | 289 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 297 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 305 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 325 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 338 void* SbrkSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in SbrkSysAllocator 409 void* MmapSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in MmapSysAllocator 474 void* DevMemSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in DevMemSysAllocator 563 void* DefaultSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in DefaultSysAllocator 567 void* result = allocs_[i]->Alloc(size, actual_size, alignment); in Alloc() 627 void* result = sys_alloc->Alloc(size, actual_size, alignment); in TCMalloc_SystemAlloc()
|
/external/clang/include/clang/Analysis/Support/ |
D | BumpVector.h | 33 llvm::PointerIntPair<llvm::BumpPtrAllocator*, 1> Alloc; variable 37 BumpVectorContext() : Alloc(new llvm::BumpPtrAllocator(), 1) {} in BumpVectorContext() 42 BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, 0) {} in BumpVectorContext() 45 if (Alloc.getInt()) in ~BumpVectorContext() 46 delete Alloc.getPointer(); in ~BumpVectorContext() 49 llvm::BumpPtrAllocator &getAllocator() { return *Alloc.getPointer(); } in getAllocator()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ProgramStateTrait.h | 87 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { 88 return new typename data_type::Factory(Alloc); 138 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { 139 return new typename data_type::Factory(Alloc); 177 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { 178 return new typename data_type::Factory(Alloc);
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkTRefArray.h | 25 static SkTRefArray<T>* Alloc(int count) { in Alloc() function 42 SkTRefArray<T>* obj = Alloc(count); in Create() 56 SkTRefArray<T>* obj = Alloc(count); in Create()
|
/external/skia/src/core/ |
D | SkTRefArray.h | 25 static SkTRefArray<T>* Alloc(int count) { in Alloc() function 42 SkTRefArray<T>* obj = Alloc(count); in Create() 56 SkTRefArray<T>* obj = Alloc(count); in Create()
|
/external/clang/test/SemaCXX/ |
D | PR9902.cpp | 16 template <class Alloc> 19 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
|
D | PR9908.cpp | 10 template <class Alloc> 13 typedef Alloc allocator_type;
|