Searched refs:Alloc (Results 1 - 25 of 155) sorted by relevance

1234567

/external/llvm/unittests/Support/
H A DAllocatorTest.cpp19 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 Dtemplates.cpp8 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 Dp2.cpp18 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 Dmangle-alias-template.cpp4 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 Dnew.cpp170 struct Alloc{ struct
174 ~Alloc();
182 delete[] new Alloc[10][20];
/external/clang/test/SemaCXX/
H A DPR9902.cpp16 template <class Alloc>
19 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
H A DPR9908.cpp10 template <class Alloc>
13 typedef Alloc allocator_type;
/external/chromium_org/third_party/tcmalloc/chromium/src/base/
H A Dstl_allocator.h46 // 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 Dlow_level_alloc.h49 // 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 Dstl_allocator.h46 // 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 Dlow_level_alloc.h49 // 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 Dfenced_allocator_test.cc120 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 Dring_buffer.h20 // 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 Dmapped_memory_unittest.cc125 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 Dmapped_memory.h54 void* Alloc(unsigned int size) { function in class:gpu::MemoryChunk
55 return allocator_.Alloc(size);
139 void* Alloc(
H A Dfenced_allocator.h32 // 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 Dring_buffer_test.cc143 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 Dmapped_memory.cc40 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 DSkTRefArray.h25 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 DSkTRefArray.h25 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 D7zBuf.c22 p->data = (Byte *)alloc->Alloc(alloc, size);
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DBlockCounter.h46 Factory(llvm::BumpPtrAllocator& Alloc);
/external/lzma/C/
H A D7zBuf.c22 p->data = (Byte *)alloc->Alloc(alloc, size);
/external/lzma/C/Util/Lzma/
H A Dmakefile10 $O\Alloc.obj \
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dsystem-alloc.cc146 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...]

Completed in 589 milliseconds

1234567