/external/llvm/unittests/Support/ |
H A D | AllocatorTest.cpp | 19 BumpPtrAllocator Alloc; local 20 int *a = (int*)Alloc.Allocate(sizeof(int), 0); 21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0); 22 int *c = (int*)Alloc.Allocate(sizeof(int), 0); 31 EXPECT_EQ(1U, Alloc.GetNumSlabs()); 36 BumpPtrAllocator Alloc(4096, 4096); 37 Alloc.Allocate(3000, 0); 38 EXPECT_EQ(1U, Alloc.GetNumSlabs()); 39 Alloc.Allocate(3000, 0); 40 EXPECT_EQ(2U, Alloc 63 BumpPtrAllocator Alloc; local [all...] |
/external/clang/test/CodeCompletion/ |
H A D | templates.cpp | 8 template<typename T, typename Alloc = std::allocator<T> > 9 class vector : Alloc { 14 template<typename Alloc> class vector<bool, Alloc>; 22 // CHECK-CC1-NEXT: vector<<#typename T#>{#, <#typename Alloc#>#}>
|
/external/clang/test/CXX/temp/temp.decls/temp.alias/ |
H A D | p2.cpp | 18 template<class T> struct Alloc {}; struct in namespace:StdExample 19 template<class T> using Vec = vector<T, Alloc<T>>; 27 void process(vector<T, Alloc<T>>& w) // expected-error {{redefinition of 'process'}} 34 void g(TT<int, Alloc<int>>); 42 // v's type is same as vector<int, Alloc<int>>. 43 using VTest = vector<int, Alloc<int>>;
|
/external/clang/test/CodeGenCXX/ |
H A D | mangle-alias-template.cpp | 4 template<typename T> using Alloc = alloc<T>; 5 template<typename T, typename A = Alloc<T>> struct vector {}; 31 Alloc<int> AC; 35 h<Alloc>(AC);
|
H A D | new.cpp | 170 struct Alloc{ struct 174 ~Alloc(); 182 delete[] new Alloc[10][20];
|
/external/clang/test/SemaCXX/ |
H A D | PR9902.cpp | 16 template <class Alloc> 19 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
|
H A D | PR9908.cpp | 10 template <class Alloc> 13 typedef Alloc allocator_type;
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
H A D | stl_allocator.h | 46 // that uses a given type-less allocator Alloc, which must provide: 47 // static void* Alloc::Allocate(size_t size); 48 // static void Alloc::Free(void* ptr, size_t size); 58 template <typename T, class Alloc> 70 typedef STL_Allocator<T1, Alloc> other; 75 template <class T1> STL_Allocator(const STL_Allocator<T1, Alloc>&) { } 83 return static_cast<T*>(Alloc::Allocate(n * sizeof(T))); 85 void deallocate(pointer p, size_type n) { Alloc::Free(p, n * sizeof(T)); }
|
H A D | low_level_alloc.h | 49 // for Alloc() call the DefaultArena() is used. 53 static void *Alloc(size_t request) 59 // Alloc(). Does nothing if passed 0. "s" must be either 0, 60 // or must have been returned from a call to Alloc() and not yet passed to 61 // Free() since that call to Alloc(). The space is returned to the arena 65 // ATTRIBUTE_SECTION(malloc_hook) for Alloc* and Free 75 // Report calls to Alloc() and Free() via the MallocHook interface. 79 // Make calls to Alloc(), Free() be async-signal-safe. Not set in 88 // Alloc/Free.
|
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
H A D | stl_allocator.h | 46 // that uses a given type-less allocator Alloc, which must provide: 47 // static void* Alloc::Allocate(size_t size); 48 // static void Alloc::Free(void* ptr, size_t size); 58 template <typename T, class Alloc> 70 typedef STL_Allocator<T1, Alloc> other; 75 template <class T1> STL_Allocator(const STL_Allocator<T1, Alloc>&) { } 83 return static_cast<T*>(Alloc::Allocate(n * sizeof(T))); 85 void deallocate(pointer p, size_type n) { Alloc::Free(p, n * sizeof(T)); }
|
H A D | low_level_alloc.h | 49 // for Alloc() call the DefaultArena() is used. 53 static void *Alloc(size_t request) 59 // Alloc(). Does nothing if passed 0. "s" must be either 0, 60 // or must have been returned from a call to Alloc() and not yet passed to 61 // Free() since that call to Alloc(). The space is returned to the arena 65 // ATTRIBUTE_SECTION(malloc_hook) for Alloc* and Free 75 // Report calls to Alloc() and Free() via the MallocHook interface. 79 // Make calls to Alloc(), Free() be async-signal-safe. Not set in 88 // Alloc/Free.
|
/external/chromium_org/gpu/command_buffer/client/ |
H A D | fenced_allocator_test.cc | 120 FencedAllocator::Offset offset = allocator_->Alloc(kSize); 133 FencedAllocator::Offset offset = allocator_->Alloc(0); 150 offsets[i] = allocator_->Alloc(kSize); 157 FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize); 164 offsets[0] = allocator_->Alloc(kSize/2); 170 offset_failed = allocator_->Alloc(kSize); 192 offsets[i] = allocator_->Alloc(kSize); 199 FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize); 215 offsets[0] = allocator_->Alloc(kSize); 240 offsets[i] = allocator_->Alloc(kSiz [all...] |
H A D | ring_buffer.h | 20 // with Alloc and then a is freed pending a token with FreePendingToken. Old 45 Offset Alloc(unsigned int size); 138 void* Alloc(unsigned int size) { function in class:gpu::RingBufferWrapper 139 RingBuffer::Offset offset = allocator_.Alloc(size); 146 // This is a type-safe version of Alloc, returning a typed pointer. 155 return static_cast<T*>(Alloc(count * sizeof(T)));
|
H A D | mapped_memory_unittest.cc | 125 void *pointer = chunk_->Alloc(kSize); 137 uint8 *pointer_char = static_cast<uint8*>(chunk_->Alloc(kSize)); 171 void* mem1 = manager_->Alloc(kSize, &id1, &offset1); 179 void* mem2 = manager_->Alloc(kSize, &id2, &offset2); 186 void* mem3 = manager_->Alloc(kSize, &id3, &offset3); 197 void* mem4 = manager_->Alloc(kSize / 2, &id4, &offset4); 198 void* mem5 = manager_->Alloc(kSize / 2, &id5, &offset5); 220 pointers[i] = manager_->Alloc(kSize, &id, &offset); 242 void* new_ptr = manager_->Alloc(kSize, &new_id, &new_offset); 261 void* mem1 = manager_->Alloc(kSiz [all...] |
H A D | mapped_memory.h | 54 void* Alloc(unsigned int size) { function in class:gpu::MemoryChunk 55 return allocator_.Alloc(size); 139 void* Alloc(
|
H A D | fenced_allocator.h | 32 // Invalid offset, returned by Alloc in case of failure. 52 Offset Alloc(unsigned int size); 165 void *Alloc(unsigned int size) { function in class:gpu::FencedAllocatorWrapper 166 FencedAllocator::Offset offset = allocator_.Alloc(size); 173 // This is a type-safe version of Alloc, returning a typed pointer. 182 return static_cast<T *>(Alloc(count * sizeof(T)));
|
H A D | ring_buffer_test.cc | 143 RingBuffer::Offset offset = allocator_->Alloc(kSize); 161 RingBuffer::Offset offset = allocator_->Alloc(kSize); 174 RingBuffer::Offset offset1 = allocator_->Alloc(kSize); 187 RingBuffer::Offset offset = allocator_->Alloc(kBufferSize); 196 RingBuffer::Offset offset = allocator_->Alloc(kAlloc1); 199 offset = allocator_->Alloc(kAlloc2); 203 offset = allocator_->Alloc(kBufferSize); 242 void* pointer = allocator_->Alloc(kSize); 278 void* pointer = allocator_->Alloc(kSize); 291 void* pointer1 = allocator_->Alloc(kSiz [all...] |
H A D | mapped_memory.cc | 40 void* MappedMemoryManager::Alloc( function in class:gpu::MappedMemoryManager 52 void* mem = chunk->Alloc(size); 65 TRACE_EVENT0("gpu", "MappedMemoryManager::Alloc::wait"); 69 void* mem = chunk->Alloc(size); 91 void* mem = mc->Alloc(size);
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkTRefArray.h | 25 static SkTRefArray<T>* Alloc(int count) { function in class:SkTRefArray 42 SkTRefArray<T>* obj = Alloc(count); 56 SkTRefArray<T>* obj = Alloc(count);
|
/external/skia/src/core/ |
H A D | SkTRefArray.h | 25 static SkTRefArray<T>* Alloc(int count) { function in class:SkTRefArray 42 SkTRefArray<T>* obj = Alloc(count); 56 SkTRefArray<T>* obj = Alloc(count);
|
/external/chromium_org/third_party/lzma_sdk/ |
H A D | 7zBuf.c | 22 p->data = (Byte *)alloc->Alloc(alloc, size);
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | BlockCounter.h | 46 Factory(llvm::BumpPtrAllocator& Alloc);
|
/external/lzma/C/ |
H A D | 7zBuf.c | 22 p->data = (Byte *)alloc->Alloc(alloc, size);
|
/external/lzma/C/Util/Lzma/ |
H A D | makefile | 10 $O\Alloc.obj \
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
H A 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, function in class:SbrkSysAllocator 267 void* MmapSysAllocator::Alloc(size_t size, size_t *actual_size, function in class:MmapSysAllocator 336 void* DevMemSysAllocator::Alloc(size_t size, size_t *actual_size, function in class:DevMemSysAllocator 426 void* DefaultSysAllocator::Alloc(size_t size, size_t *actual_size, function in class:DefaultSysAllocator 430 void* result = allocs_[i]->Alloc(size, actual_size, alignment); 483 void* result = sys_alloc->Alloc(siz [all...] |