/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/deque/deque.cons/ |
iter_iter.pass.cpp | 26 typedef std::allocator<T> Allocator; 27 typedef std::deque<T, Allocator> C; 36 template <class Allocator, class InputIterator> 41 typedef std::deque<T, Allocator> C;
|
/external/llvm/include/llvm/CodeGen/ |
LiveInterval.h | 27 #include "llvm/Support/Allocator.h" 45 typedef BumpPtrAllocator Allocator; 134 /// register or value. This class also contains a bit of register allocator 230 VNInfo *getNextValue(SlotIndex def, VNInfo::Allocator &VNInfoAllocator) { 240 VNInfo *createDeadDef(SlotIndex Def, VNInfo::Allocator &VNInfoAllocator); 245 VNInfo::Allocator &VNInfoAllocator) {
|
/external/llvm/include/llvm/Support/ |
RecyclingAllocator.h | 1 //==- llvm/Support/RecyclingAllocator.h - Recycling Allocator ----*- C++ -*-==// 22 /// RecyclingAllocator - This class wraps an Allocator, adding the 33 /// Allocator - The wrapped allocator. 35 AllocatorType Allocator; 38 ~RecyclingAllocator() { Base.clear(Allocator); } 44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } 46 T *Allocate() { return Base.Allocate(Allocator); } 52 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } 55 Allocator.PrintStats() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/ |
PODArena.h | 47 // The arena is configured with an allocator, which is responsible 49 class Allocator : public RefCounted<Allocator> { 54 virtual ~Allocator() { } 55 friend class WTF::RefCounted<Allocator>; 58 // The Arena's default allocator, which uses fastMalloc and 60 class FastMallocAllocator : public Allocator { 80 // Creates a new PODArena configured with the given Allocator. 81 static PassRefPtr<PODArena> create(PassRefPtr<Allocator> allocator) [all...] |
/external/clang/include/clang/AST/ |
CommentParser.h | 21 #include "llvm/Support/Allocator.h" 40 /// Allocator for anything that goes into AST nodes. 41 llvm::BumpPtrAllocator &Allocator; 95 Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator,
|
CommentSema.h | 23 #include "llvm/Support/Allocator.h" 37 /// Allocator for AST nodes. 38 llvm::BumpPtrAllocator &Allocator; 73 Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr, 79 /// Returns a copy of array, owned by Sema's allocator. 84 T *Mem = Allocator.Allocate<T>(Size);
|
CommentCommandTraits.h | 23 #include "llvm/Support/Allocator.h" 130 CommandTraits(llvm::BumpPtrAllocator &Allocator, 172 /// Allocator for CommandInfo objects. 173 llvm::BumpPtrAllocator &Allocator;
|
/external/llvm/unittests/Support/ |
ArrayRecyclerTest.cpp | 11 #include "llvm/Support/Allocator.h" 52 BumpPtrAllocator Allocator; 56 Object *A1 = DUT.allocate(Cap, Allocator); 60 Object *A2 = DUT.allocate(Cap, Allocator); 64 Object *A3 = DUT.allocate(Cap, Allocator); 84 Object *A2x = DUT.allocate(Cap, Allocator); 93 Object *A3x = DUT.allocate(Cap, Allocator); 95 Object *A1x = DUT.allocate(Cap, Allocator); 97 Object *A2y = DUT.allocate(Cap, Allocator); 101 Object *A4 = DUT.allocate(Cap, Allocator); [all...] |
/external/chromium/base/ |
stack_container.h | 14 // This allocator can be used with STL containers to provide a stack buffer 19 // STL likes to make copies of allocators, so the allocator itself can't hold 21 // StackAllocator::Source which contains the data. Copying the allocator 23 // based on our allocator will share the same stack buffer. 33 class StackAllocator : public std::allocator<T> { 35 typedef typename std::allocator<T>::pointer pointer; 36 typedef typename std::allocator<T>::size_type size_type; 38 // Backing store for the allocator. The container owner is responsible for 39 // maintaining this for as long as any containers using this allocator are 68 // Used by containers when they want to refer to an allocator of type U [all...] |
/external/clang/unittests/AST/ |
CommentLexer.cpp | 35 Traits(Allocator, CommentOptions()) { 43 llvm::BumpPtrAllocator Allocator; 67 Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); [all...] |
CommentParser.cpp | 21 #include "llvm/Support/Allocator.h" 42 Traits(Allocator, CommentOptions()) { 50 llvm::BumpPtrAllocator Allocator; 61 Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); 63 Sema S(Allocator, SourceMgr, Diags, Traits, /*PP=*/ NULL); 64 Parser P(L, S, Allocator, SourceMgr, Diags, Traits); [all...] |
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_allocator_testlib.cc | 44 SecondaryAllocator> Allocator; 46 static Allocator allocator; member in namespace:__anon19134 57 allocator.SwallowCache(&cache); 63 allocator.Init(); 76 void *p = allocator.Allocate(&cache, size, 8); 85 allocator.Deallocate(&cache, p); 92 void *p = allocator.Allocate(&cache, size, 8, false); 104 p = allocator.Reallocate(&cache, p, size, 8); 114 void *p = allocator.Allocate(&cache, size, alignment) [all...] |
/external/chromium/base/allocator/ |
allocator_shim.cc | 5 #include "base/allocator/allocator_shim.h" 33 TCMALLOC, // TCMalloc is the default allocator. 35 WINHEAP, // Windows Heap (standard Windows allocator). 37 } Allocator; 39 // This is the default allocator. This value can be changed at startup by 42 // allocator. 44 static Allocator allocator = WINHEAP; variable 47 // selection of the allocator. The primary may be used to control overall 48 // allocator selection, and the secondary can be used to specify an allocato 282 namespace allocator { namespace in namespace:base [all...] |
/external/chromium_org/base/containers/ |
stack_container.h | 18 // This allocator can be used with STL containers to provide a stack buffer 23 // STL likes to make copies of allocators, so the allocator itself can't hold 25 // StackAllocator::Source which contains the data. Copying the allocator 27 // based on our allocator will share the same stack buffer. 37 class StackAllocator : public std::allocator<T> { 39 typedef typename std::allocator<T>::pointer pointer; 40 typedef typename std::allocator<T>::size_type size_type; 42 // Backing store for the allocator. The container owner is responsible for 43 // maintaining this for as long as any containers using this allocator are 68 // Used by containers when they want to refer to an allocator of type U [all...] |
/external/clang/lib/AST/ |
RawCommentList.cpp | 146 // a separate allocator for all temporary stuff. 147 llvm::BumpPtrAllocator Allocator; 149 comments::Lexer L(Allocator, Context.getDiagnostics(), 212 llvm::BumpPtrAllocator &Allocator) { 242 Comments.push_back(new (Allocator) RawComment(RC)); 267 Comments.push_back(new (Allocator) RawComment(RC));
|
/external/compiler-rt/lib/lsan/ |
lsan_allocator.cc | 41 SecondaryAllocator> Allocator; 43 static Allocator allocator; member in namespace:__lsan 47 allocator.Init(); 51 allocator.SwallowCache(&cache); 55 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p)); 83 void *p = allocator.Allocate(&cache, size, alignment, cleared); 90 allocator.Deallocate(&cache, p); 98 allocator.Deallocate(&cache, p); 101 p = allocator.Reallocate(&cache, p, new_size, alignment) [all...] |
/external/compiler-rt/lib/msan/ |
msan_allocator.cc | 12 // MemorySanitizer allocator. 34 SecondaryAllocator> Allocator; 37 static Allocator allocator; member in namespace:__msan 45 allocator.Init(); 51 void *res = allocator.Allocate(&cache, size, alignment, false); 52 Metadata *meta = reinterpret_cast<Metadata*>(allocator.GetMetaData(res)); 72 Metadata *meta = reinterpret_cast<Metadata*>(allocator.GetMetaData(p)); 80 allocator.Deallocate(&cache, p); 91 Metadata *meta = reinterpret_cast<Metadata*>(allocator.GetMetaData(old_p)) [all...] |
/frameworks/compile/mclinker/include/mcld/Support/ |
TargetRegistry.h | 274 TargetRegistry::RegisterTargetMachine(T, &Allocator); 278 static mcld::MCLDTargetMachine *Allocator(const mcld::Target &T,
|
/external/chromium_org/base/allocator/ |
allocator_shim.cc | 5 #include "base/allocator/allocator_shim.h" 8 #include "base/allocator/allocator_extension_thunks.h" 37 TCMALLOC, // TCMalloc is the default allocator. 39 WINHEAP, // Windows Heap (standard Windows allocator). 41 } Allocator; 43 // This is the default allocator. This value can be changed at startup by 46 // allocator. 50 static Allocator allocator = WINHEAP; variable 52 static Allocator allocator = TCMALLOC variable 405 namespace allocator { namespace in namespace:base [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
addressmap-inl.h | 37 // We use a user-defined allocator/de-allocator so that we can use 105 typedef void* (*Allocator)(size_t size); 109 // Create an AddressMap that uses the specified allocator/deallocator. 110 // The allocator/deallocator should behave like malloc/free. 111 // For instance, the allocator does not need to return initialized memory. 112 AddressMap(Allocator alloc, DeAllocator dealloc); 243 // pass in custom memory allocator/deallocator routines. 250 Allocator alloc_; // The allocator [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
addressmap-inl.h | 37 // We use a user-defined allocator/de-allocator so that we can use 105 typedef void* (*Allocator)(size_t size); 109 // Create an AddressMap that uses the specified allocator/deallocator. 110 // The allocator/deallocator should behave like malloc/free. 111 // For instance, the allocator does not need to return initialized memory. 112 AddressMap(Allocator alloc, DeAllocator dealloc); 243 // pass in custom memory allocator/deallocator routines. 250 Allocator alloc_; // The allocator [all...] |
heap-profile-table.h | 91 // Memory (de)allocator interface we'll use. 92 typedef void* (*Allocator)(size_t size); 97 HeapProfileTable(Allocator alloc, DeAllocator dealloc); 341 // Memory (de)allocator that we use. 342 Allocator alloc_; 401 Snapshot(Allocator alloc, DeAllocator dealloc) : map_(alloc, dealloc) {
|
/external/clang/include/clang/Basic/ |
PartialDiagnostic.h | 81 /// \brief An allocator for Storage objects, which uses a small cache to 127 /// \brief Allocator used to allocate storage for this diagnostic. 128 StorageAllocator *Allocator; 135 if (Allocator) 136 DiagStorage = Allocator->Allocate(); 138 assert(Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))); 158 if (Allocator) 159 Allocator->Deallocate(DiagStorage); 160 else if (Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))) 190 : DiagID(0), DiagStorage(0), Allocator(0) { [all...] |
/external/llvm/include/llvm/ADT/ |
ImmutableList.h | 18 #include "llvm/Support/Allocator.h" 145 uintptr_t Allocator; 148 return Allocator & 0x1 ? false : true; 152 return *reinterpret_cast<BumpPtrAllocator*>(Allocator & ~0x1); 157 : Allocator(reinterpret_cast<uintptr_t>(new BumpPtrAllocator())) {} 160 : Allocator(reinterpret_cast<uintptr_t>(&Alloc) | 0x1) {}
|
IntervalMap.h | 43 // typedef RecyclingAllocator<...> Allocator; 47 // explicit IntervalMap(Allocator&); 104 #include "llvm/Support/Allocator.h" 455 /// Allocator - The recycling allocator used for both branch and leaf nodes. 457 /// reasonably sized entries, so the same allocator can be shared among 460 AllocBytes, CacheLineBytes> Allocator; [all...] |