Home
last modified time | relevance | path

Searched refs:Allocator (Results 1 – 25 of 88) sorted by relevance

1234

/external/v8/src/
Dsplay-tree-inl.h37 template<typename Config, class Allocator>
38 SplayTree<Config, Allocator>::~SplayTree() { in ~SplayTree()
44 template<typename Config, class Allocator>
45 bool SplayTree<Config, Allocator>::Insert(const Key& key, Locator* locator) { in Insert()
68 template<typename Config, class Allocator>
69 void SplayTree<Config, Allocator>::InsertInternal(int cmp, Node* node) { in InsertInternal()
83 template<typename Config, class Allocator>
84 bool SplayTree<Config, Allocator>::FindInternal(const Key& key) { in FindInternal()
92 template<typename Config, class Allocator>
93 bool SplayTree<Config, Allocator>::Find(const Key& key, Locator* locator) { in Find()
[all …]
Dsplay-tree.h53 template <typename Config, class Allocator>
65 return Allocator::New(static_cast<int>(size)); in INLINE()
67 INLINE(void operator delete(void* p, size_t)) { return Allocator::Delete(p); } in INLINE()
116 return Allocator::New(static_cast<int>(size)); in INLINE()
119 return Allocator::Delete(p); in INLINE()
/external/clang/include/clang/Basic/
DPartialDiagnostic.h127 StorageAllocator *Allocator; variable
134 if (Allocator) in getStorage()
135 DiagStorage = Allocator->Allocate(); in getStorage()
137 assert(Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))); in getStorage()
157 if (Allocator) in freeStorageSlow()
158 Allocator->Deallocate(DiagStorage); in freeStorageSlow()
159 else if (Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))) in freeStorageSlow()
189 : DiagID(0), DiagStorage(0), Allocator(0) { } in PartialDiagnostic()
191 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator) in PartialDiagnostic() argument
192 : DiagID(DiagID), DiagStorage(0), Allocator(&Allocator) { } in PartialDiagnostic()
[all …]
/external/llvm/include/llvm/Support/
DAllocator.h77 MallocAllocator Allocator;
80 MallocSlabAllocator() : Allocator() { }
105 SlabAllocator &Allocator;
190 BumpPtrAllocator Allocator;
194 : Allocator(size, threshold, allocator) {}
204 MemSlab *Slab = Allocator.CurSlab;
206 char *End = Slab == Allocator.CurSlab ? Allocator.CurPtr :
209 Ptr = Allocator.AlignPtr(Ptr, alignOf<T>());
215 Allocator.Reset();
220 return Allocator.Allocate<T>(num);
[all …]
DRecyclingAllocator.h35 AllocatorType Allocator; variable
38 ~RecyclingAllocator() { Base.clear(Allocator); } in ~RecyclingAllocator()
44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate()
46 T *Allocate() { return Base.Allocate(Allocator); } in Allocate()
52 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate()
62 T, Size, Align> &Allocator) { in new() argument
63 return Allocator.Allocate(); in new()
DTargetRegistry.h837 TargetRegistry::RegisterMCAsmInfo(T, &Allocator); in RegisterMCAsmInfo()
840 static MCAsmInfo *Allocator(const Target &T, StringRef TT) { in Allocator() function
871 TargetRegistry::RegisterMCCodeGenInfo(T, &Allocator); in RegisterMCCodeGenInfo()
874 static MCCodeGenInfo *Allocator(StringRef TT, Reloc::Model RM, in Allocator() function
905 TargetRegistry::RegisterMCInstrInfo(T, &Allocator); in RegisterMCInstrInfo()
908 static MCInstrInfo *Allocator() { in Allocator() function
938 TargetRegistry::RegisterMCInstrAnalysis(T, &Allocator); in RegisterMCInstrAnalysis()
941 static MCInstrAnalysis *Allocator(const MCInstrInfo *Info) { in Allocator() function
971 TargetRegistry::RegisterMCRegInfo(T, &Allocator); in RegisterMCRegInfo()
974 static MCRegisterInfo *Allocator(StringRef TT) { in Allocator() function
[all …]
DRecycler.h83 void clear(AllocatorType &Allocator) {
86 Allocator.Deallocate(t);
91 SubClass *Allocate(AllocatorType &Allocator) {
98 static_cast<SubClass *>(Allocator.Allocate(Size, Align));
102 T *Allocate(AllocatorType &Allocator) {
103 return Allocate<T>(Allocator);
/external/webkit/Source/WebCore/platform/graphics/gpu/
DPODArena.h49 class Allocator : public RefCounted<Allocator> {
54 virtual ~Allocator() { } in ~Allocator()
55 friend class WTF::RefCounted<Allocator>;
60 class FastMallocAllocator : public Allocator {
81 static PassRefPtr<PODArena> create(PassRefPtr<Allocator> allocator) in create()
124 explicit PODArena(PassRefPtr<Allocator> allocator) in PODArena()
166 Chunk(Allocator* allocator, size_t size) in Chunk()
198 Allocator* m_allocator;
204 RefPtr<Allocator> m_allocator;
/external/llvm/include/llvm/ADT/
DScopedHashTable.h64 AllocatorTy &Allocator) { in Create() argument
65 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>(); in Create()
74 void Destroy(AllocatorTy &Allocator) { in Destroy() argument
77 Allocator.Deallocate(this); in Destroy()
156 AllocatorTy Allocator; variable
163 ScopedHashTable(AllocatorTy A) : CurScope(0), Allocator(A) {} in ScopedHashTable()
172 AllocatorRefTy getAllocator() { return Allocator; } in getAllocator()
173 AllocatorCRefTy getAllocator() const { return Allocator; } in getAllocator()
213 Allocator); in insertIntoScope()
220 template <typename K, typename V, typename KInfo, typename Allocator>
[all …]
DStringMap.h140 AllocatorTy &Allocator, in Create() argument
153 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create()
170 AllocatorTy &Allocator) { in Create() argument
171 return Create(KeyStart, KeyEnd, Allocator, 0); in Create()
211 void Destroy(AllocatorTy &Allocator) { in Destroy() argument
214 Allocator.Deallocate(this); in Destroy()
231 AllocatorTy Allocator; variable
240 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {} in StringMap()
257 AllocatorRefTy getAllocator() { return Allocator; } in getAllocator()
258 AllocatorCRefTy getAllocator() const { return Allocator; } in getAllocator()
[all …]
DImmutableList.h146 uintptr_t Allocator; variable
149 return Allocator & 0x1 ? false : true; in ownsAllocator()
153 return *reinterpret_cast<BumpPtrAllocator*>(Allocator & ~0x1); in getAllocator()
158 : Allocator(reinterpret_cast<uintptr_t>(new BumpPtrAllocator())) {} in ImmutableListFactory()
161 : Allocator(reinterpret_cast<uintptr_t>(&Alloc) | 0x1) {} in ImmutableListFactory()
/external/llvm/include/llvm/CodeGen/
DMachineLoopRanges.h35 typedef Map::Allocator Allocator; typedef
49 MachineLoopRange(const MachineLoop*, Allocator&, SlotIndexes&);
88 typedef MachineLoopRange::Allocator MapAllocator;
90 MapAllocator Allocator; variable
/external/clang/lib/AST/
DCommentCommandTraits.cpp18 CommandTraits::CommandTraits(llvm::BumpPtrAllocator &Allocator) : in CommandTraits() argument
19 NextID(llvm::array_lengthof(Commands)), Allocator(Allocator) in CommandTraits()
35 char *Name = Allocator.Allocate<char>(CommandName.size()); in registerUnknownCommand()
40 CommandInfo *Info = new (Allocator) CommandInfo(); in registerUnknownCommand()
DCommentSema.cpp25 Sema::Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr, in Sema() argument
27 Allocator(Allocator), SourceMgr(SourceMgr), Diags(Diags), Traits(Traits), in Sema()
35 ThisDeclInfo = new (Allocator) DeclInfo; in setDecl()
42 return new (Allocator) ParagraphComment(Content); in actOnParagraphComment()
48 return new (Allocator) BlockCommandComment(LocBegin, LocEnd, CommandID); in actOnBlockCommandStart()
68 new (Allocator) ParamCommandComment(LocBegin, LocEnd, CommandID); in actOnParamCommandStart()
145 Argument *A = new (Allocator) Argument(SourceRange(ArgLocBegin, in actOnParamCommandParamNameArg()
161 new (Allocator) TParamCommandComment(LocBegin, LocEnd, CommandID); in actOnTParamCommandStart()
179 Argument *A = new (Allocator) Argument(SourceRange(ArgLocBegin, in actOnTParamCommandParamNameArg()
245 return new (Allocator) InlineCommandComment( in actOnInlineCommand()
[all …]
DCommentParser.cpp22 llvm::BumpPtrAllocator &Allocator; member in clang::comments::TextTokenRetokenizer
142 TextTokenRetokenizer(llvm::BumpPtrAllocator &Allocator, Parser &P): in TextTokenRetokenizer() argument
143 Allocator(Allocator), P(P), NoMoreInterestingTokens(false) { in TextTokenRetokenizer()
173 char *TextPtr = Allocator.Allocate<char>(Length + 1); in lexWord()
219 char *TextPtr = Allocator.Allocate<char>(Length + 1); in lexDelimitedSeq()
253 Parser::Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator, in Parser() argument
256 L(L), S(S), Allocator(Allocator), SourceMgr(SourceMgr), Diags(Diags), in Parser()
294 new (Allocator.Allocate<Argument>(NumArgs)) Argument[NumArgs]; in parseBlockCommandArgs()
354 TextTokenRetokenizer Retokenizer(Allocator, *this); in parseBlockCommand()
388 TextTokenRetokenizer Retokenizer(Allocator, *this); in parseInlineCommand()
DRawCommentList.cpp144 llvm::BumpPtrAllocator Allocator; in extractBriefText() local
146 comments::Lexer L(Allocator, Context.getCommentCommandTraits(), in extractBriefText()
205 llvm::BumpPtrAllocator &Allocator) { in addComment() argument
235 Comments.push_back(new (Allocator) RawComment(RC)); in addComment()
259 Comments.push_back(new (Allocator) RawComment(RC)); in addComment()
/external/llvm/lib/CodeGen/
DMachineFunction.cpp57 RegInfo = new (Allocator) MachineRegisterInfo(*TM.getRegisterInfo()); in MachineFunction()
61 FrameInfo = new (Allocator) MachineFrameInfo(*TM.getFrameLowering()); in MachineFunction()
65 ConstantPool = new (Allocator) MachineConstantPool(TM.getTargetData()); in MachineFunction()
77 InstructionRecycler.clear(Allocator); in ~MachineFunction()
78 BasicBlockRecycler.clear(Allocator); in ~MachineFunction()
81 Allocator.Deallocate(RegInfo); in ~MachineFunction()
85 Allocator.Deallocate(MFInfo); in ~MachineFunction()
89 Allocator.Deallocate(FrameInfo); in ~MachineFunction()
92 Allocator.Deallocate(ConstantPool); in ~MachineFunction()
96 Allocator.Deallocate(JumpTableInfo); in ~MachineFunction()
[all …]
DLiveIntervalUnion.h58 typedef LiveSegments::Allocator Allocator; typedef
67 explicit LiveIntervalUnion(Allocator &a) : Tag(0), Segments(a) {} in LiveIntervalUnion()
195 void init(LiveIntervalUnion::Allocator&, unsigned Size);
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator64_test.cc22 SizeClassAllocator64<kAllocatorSpace, kAllocatorSize, 16, SCMap> Allocator; typedef
23 typedef SizeClassAllocatorLocalCache<Allocator::kNumClasses, Allocator>
56 Allocator a; in TEST()
103 Allocator a; in TEST()
127 Allocator a; in FailInAssertionOnOOM()
185 typedef Allocator PrimaryAllocator; in TEST()
188 SecondaryAllocator> Allocator; in TEST() typedef
191 Allocator a; in TEST()
237 Allocator a; in TEST()
Dsanitizer_allocator_test.cc19 TEST(Allocator, Basic) { in TEST() argument
37 TEST(Allocator, Stress) { in TEST() argument
56 TEST(Allocator, ScopedBuffer) { in TEST() argument
/external/llvm/lib/Support/
DAllocator.cpp26 Allocator(allocator), CurSlab(0), BytesAllocated(0) { } in BumpPtrAllocator()
53 MemSlab *NewSlab = Allocator.Allocate(SlabSize); in StartNewSlab()
71 Allocator.Deallocate(Slab); in DeallocateSlabs()
111 MemSlab *NewSlab = Allocator.Allocate(PaddedSize); in Allocate()
170 MemSlab *Slab = (MemSlab*)Allocator.Allocate(Size, 0); in Allocate()
177 Allocator.Deallocate(Slab); in Deallocate()
/external/clang/include/clang/Sema/
DCodeCompleteConsumer.h546 IntrusiveRefCntPtr<GlobalCodeCompletionAllocator> Allocator) in CodeCompletionTUInfo() argument
547 : AllocatorRef(Allocator) { } in CodeCompletionTUInfo()
576 CodeCompletionAllocator &Allocator;
590 CodeCompletionBuilder(CodeCompletionAllocator &Allocator,
592 : Allocator(Allocator), CCTUInfo(CCTUInfo),
596 CodeCompletionBuilder(CodeCompletionAllocator &Allocator,
599 : Allocator(Allocator), CCTUInfo(CCTUInfo),
605 CodeCompletionAllocator &getAllocator() const { return Allocator; }
795 CodeCompletionAllocator &Allocator,
800 CodeCompletionAllocator &Allocator,
[all …]
/external/chromium/base/
Dstack_container.h135 typedef StackAllocator<ContainedType, stack_capacity> Allocator; typedef
162 const typename Allocator::Source& stack_data() const { in stack_data()
168 typename Allocator::Source stack_data_;
169 Allocator allocator_;
/external/stlport/stlport/
Dfunctional123 template<typename Signature, typename Allocator >
125 template<typename Signature, typename Allocator>
126 void swap(function<Signature, Allocator>& f1, function<Signature, Allocator>& f2);
/external/skia/include/images/
DSkImageDecoder.h146 SkBitmap::Allocator* getAllocator() const { return fAllocator; } in getAllocator()
147 SkBitmap::Allocator* setAllocator(SkBitmap::Allocator*);
393 SkBitmap::Allocator* fAllocator;

1234