Searched defs:Allocator (Results 1 - 25 of 60) sorted by relevance

123

/external/llvm/include/llvm/Support/
H A DRecyclingAllocator.h1 //==- llvm/Support/RecyclingAllocator.h - Recycling Allocator ----*- C++ -*-==//
22 /// RecyclingAllocator - This class wraps an Allocator, adding the
33 /// Allocator - The wrapped allocator.
35 AllocatorType Allocator; member in class:llvm::RecyclingAllocator
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();
65 T, Size, Align> &Allocator) {
63 operator new(size_t, llvm::RecyclingAllocator<AllocatorType, T, Size, Align> &Allocator) argument
[all...]
H A DArrayRecycler.h11 // arrays allocated from one of the allocators in Allocator.h
103 void clear(AllocatorType &Allocator) { argument
106 Allocator.Deallocate(Ptr);
120 /// Return an existing recycled array, or allocate one from Allocator if
124 T *allocate(Capacity Cap, AllocatorType &Allocator) { argument
129 return static_cast<T*>(Allocator.Allocate(sizeof(T)*Cap.getSize(), Align));
H A DRecycler.h1 //==- llvm/Support/Recycler.h - Recycling Allocator --------------*- C++ -*-==//
85 void clear(AllocatorType &Allocator) { argument
88 Allocator.Deallocate(t);
102 SubClass *Allocate(AllocatorType &Allocator) { argument
109 static_cast<SubClass *>(Allocator.Allocate(Size, Align));
113 T *Allocate(AllocatorType &Allocator) { argument
114 return Allocate<T>(Allocator);
118 void Deallocate(AllocatorType & /*Allocator*/, SubClass* Element) {
/external/chromium_org/third_party/WebKit/Source/platform/
H A DPODArena.h49 class Allocator : public RefCounted<Allocator> { class in class:WebCore::FINAL
54 virtual ~Allocator() { }
55 friend class WTF::RefCounted<Allocator>;
60 class FastMallocAllocator : public Allocator {
80 // Creates a new PODArena configured with the given Allocator.
81 static PassRefPtr<PODArena> create(PassRefPtr<Allocator> allocator)
112 explicit PODArena(PassRefPtr<Allocator> allocator)
153 // Allocator.
154 Chunk(Allocator* allocato
[all...]
/external/llvm/unittests/Support/
H A DArrayRecyclerTest.cpp11 #include "llvm/Support/Allocator.h"
52 BumpPtrAllocator Allocator; local
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/clang/include/clang/AST/
H A DCommentParser.h21 #include "llvm/Support/Allocator.h"
40 /// Allocator for anything that goes into AST nodes.
41 llvm::BumpPtrAllocator &Allocator; member in class:clang::comments::Parser
95 Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator,
H A DCommentSema.h23 #include "llvm/Support/Allocator.h"
37 /// Allocator for AST nodes.
38 llvm::BumpPtrAllocator &Allocator; member in class:clang::comments::Sema
73 Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr,
84 T *Mem = Allocator.Allocate<T>(Size);
H A DCommentCommandTraits.h23 #include "llvm/Support/Allocator.h"
130 CommandTraits(llvm::BumpPtrAllocator &Allocator,
172 /// Allocator for CommandInfo objects.
173 llvm::BumpPtrAllocator &Allocator; member in class:clang::comments::CommandTraits
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DEnvironment.h108 EnvironmentManager(llvm::BumpPtrAllocator& Allocator) : F(Allocator) {} argument
/external/clang/lib/AST/
H A DCommentCommandTraits.cpp18 CommandTraits::CommandTraits(llvm::BumpPtrAllocator &Allocator, argument
20 NextID(llvm::array_lengthof(Commands)), Allocator(Allocator) {
90 char *Name = Allocator.Allocate<char>(CommandName.size() + 1);
95 CommandInfo *Info = new (Allocator) CommandInfo();
H A DCommentLexer.cpp32 llvm::BumpPtrAllocator &Allocator,
34 char *Resolved = Allocator.Allocate<char>(UNI_MAX_UTF8_BYTES_PER_CODE_POINT);
68 return convertCodePointToUTF8(Allocator, CodePoint);
79 return convertCodePointToUTF8(Allocator, CodePoint);
700 Lexer::Lexer(llvm::BumpPtrAllocator &Allocator, DiagnosticsEngine &Diags,
704 Allocator(Allocator), Diags(Diags), Traits(Traits),
31 convertCodePointToUTF8( llvm::BumpPtrAllocator &Allocator, unsigned CodePoint) argument
H A DRawCommentList.cpp147 llvm::BumpPtrAllocator Allocator; local
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));
211 addComment(const RawComment &RC, llvm::BumpPtrAllocator &Allocator) argument
/external/clang/unittests/AST/
H A DCommentLexer.cpp35 Traits(Allocator, CommentOptions()) {
43 llvm::BumpPtrAllocator Allocator; member in class:clang::comments::__anon17579::CommentLexerTest
67 Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source));
/external/llvm/include/llvm/CodeGen/
H A DLiveInterval.h27 #include "llvm/Support/Allocator.h"
45 typedef BumpPtrAllocator Allocator; typedef in class:llvm::VNInfo
230 VNInfo *getNextValue(SlotIndex def, VNInfo::Allocator &VNInfoAllocator) {
240 VNInfo *createDeadDef(SlotIndex Def, VNInfo::Allocator &VNInfoAllocator);
245 VNInfo::Allocator &VNInfoAllocator) {
H A DLiveIntervalUnion.h57 typedef LiveSegments::Allocator Allocator; typedef in class:llvm::LiveIntervalUnion
66 explicit LiveIntervalUnion(Allocator &a) : Tag(0), Segments(a) {}
190 void init(LiveIntervalUnion::Allocator&, unsigned Size);
/external/chromium/base/allocator/
H A Dallocator_shim.cc37 } Allocator; typedef in typeref:enum:__anon1638
44 static Allocator allocator = WINHEAP;
/external/chromium/base/
H A Dstack_container.h135 typedef StackAllocator<ContainedType, stack_capacity> Allocator; typedef in class:StackContainer
137 // Allocator must be constructed before the container!
162 const typename Allocator::Source& stack_data() const {
168 typename Allocator::Source stack_data_;
169 Allocator allocator_;
/external/chromium_org/base/containers/
H A Dstack_container.h135 typedef StackAllocator<ContainedType, stack_capacity> Allocator; typedef in class:base::StackContainer
137 // Allocator must be constructed before the container!
162 const typename Allocator::Source& stack_data() const {
168 typename Allocator::Source stack_data_;
169 Allocator allocator_;
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_allocator_testlib.cc44 SecondaryAllocator> Allocator; typedef in namespace:__anon17652
46 static Allocator allocator;
/external/chromium_org/base/allocator/
H A Dallocator_shim.cc39 } Allocator; typedef in typeref:enum:__anon3692
48 static Allocator allocator = WINHEAP;
50 static Allocator allocator = TCMALLOC;
/external/clang/include/clang/Basic/
H A DPartialDiagnostic.h127 /// \brief Allocator used to allocate storage for this diagnostic.
128 StorageAllocator *Allocator; member in class:clang::PartialDiagnostic
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) { }
192 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator) argument
220 PartialDiagnostic(const Diagnostic &Other, StorageAllocator &Allocator) argument
[all...]
/external/compiler-rt/lib/lsan/
H A Dlsan_allocator.cc41 SecondaryAllocator> Allocator; typedef in namespace:__lsan
43 static Allocator allocator;
/external/compiler-rt/lib/msan/
H A Dmsan_allocator.cc34 SecondaryAllocator> Allocator; typedef in namespace:__msan
37 static Allocator allocator;
/external/llvm/include/llvm/ADT/
H A DImmutableList.h18 #include "llvm/Support/Allocator.h"
145 uintptr_t Allocator; member in class:llvm::ImmutableListFactory
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) {}
H A DScopedHashTable.h35 #include "llvm/Support/Allocator.h"
64 AllocatorTy &Allocator) {
65 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>();
74 void Destroy(AllocatorTy &Allocator) { argument
77 Allocator.Deallocate(this);
156 AllocatorTy Allocator; member in class:llvm::ScopedHashTable
163 ScopedHashTable(AllocatorTy A) : CurScope(0), Allocator(A) {}
172 AllocatorRefTy getAllocator() { return Allocator; }
173 AllocatorCRefTy getAllocator() const { return Allocator; }
213 Allocator);
61 Create(ScopedHashTableVal *nextInScope, ScopedHashTableVal *nextForKey, const K &key, const V &val, AllocatorTy &Allocator) argument
[all...]

Completed in 3128 milliseconds

123