/external/v8/src/ |
D | splay-tree-inl.h | 37 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 …]
|
D | splay-tree.h | 53 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/ |
D | PartialDiagnostic.h | 128 StorageAllocator *Allocator; variable 135 if (Allocator) in getStorage() 136 DiagStorage = Allocator->Allocate(); in getStorage() 138 assert(Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))); in getStorage() 158 if (Allocator) in freeStorageSlow() 159 Allocator->Deallocate(DiagStorage); in freeStorageSlow() 160 else if (Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))) in freeStorageSlow() 190 : DiagID(0), DiagStorage(0), Allocator(0) { } in PartialDiagnostic() 192 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator) in PartialDiagnostic() argument 193 : DiagID(DiagID), DiagStorage(0), Allocator(&Allocator) { } in PartialDiagnostic() [all …]
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_allocator_test.cc | 62 template <class Allocator> 64 Allocator *a = new Allocator; in TestSizeClassAllocator() 66 SizeClassAllocatorLocalCache<Allocator> cache; in TestSizeClassAllocator() 85 uptr class_id0 = Allocator::SizeClassMapT::ClassID(size); in TestSizeClassAllocator() 98 CHECK_EQ(class_id, Allocator::SizeClassMapT::ClassID(size)); in TestSizeClassAllocator() 143 template <class Allocator> 145 Allocator *a = new Allocator; in SizeClassAllocatorMetadataStress() 147 SizeClassAllocatorLocalCache<Allocator> cache; in SizeClassAllocatorMetadataStress() 252 template<class Allocator> 254 Allocator a; in FailInAssertionOnOOM() [all …]
|
/external/llvm/include/llvm/Support/ |
D | Allocator.h | 77 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 …]
|
D | RecyclingAllocator.h | 35 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()
|
D | TargetRegistry.h | 804 TargetRegistry::RegisterMCAsmInfo(T, &Allocator); in RegisterMCAsmInfo() 807 static MCAsmInfo *Allocator(const Target &T, StringRef TT) { in Allocator() function 838 TargetRegistry::RegisterMCCodeGenInfo(T, &Allocator); in RegisterMCCodeGenInfo() 841 static MCCodeGenInfo *Allocator(StringRef TT, Reloc::Model RM, in Allocator() function 872 TargetRegistry::RegisterMCInstrInfo(T, &Allocator); in RegisterMCInstrInfo() 875 static MCInstrInfo *Allocator() { in Allocator() function 905 TargetRegistry::RegisterMCInstrAnalysis(T, &Allocator); in RegisterMCInstrAnalysis() 908 static MCInstrAnalysis *Allocator(const MCInstrInfo *Info) { in Allocator() function 938 TargetRegistry::RegisterMCRegInfo(T, &Allocator); in RegisterMCRegInfo() 941 static MCRegisterInfo *Allocator(StringRef TT) { in Allocator() function [all …]
|
D | Recycler.h | 85 void clear(AllocatorType &Allocator) { 88 Allocator.Deallocate(t); 102 SubClass *Allocate(AllocatorType &Allocator) { 109 static_cast<SubClass *>(Allocator.Allocate(Size, Align)); 113 T *Allocate(AllocatorType &Allocator) { 114 return Allocate<T>(Allocator);
|
D | ArrayRecycler.h | 103 void clear(AllocatorType &Allocator) { in clear() argument 106 Allocator.Deallocate(Ptr); in clear() 124 T *allocate(Capacity Cap, AllocatorType &Allocator) { in allocate() argument 129 return static_cast<T*>(Allocator.Allocate(sizeof(T)*Cap.getSize(), Align)); in allocate()
|
/external/llvm/unittests/Support/ |
D | ArrayRecyclerTest.cpp | 52 BumpPtrAllocator Allocator; in TEST() local 56 Object *A1 = DUT.allocate(Cap, Allocator); in TEST() 60 Object *A2 = DUT.allocate(Cap, Allocator); in TEST() 64 Object *A3 = DUT.allocate(Cap, Allocator); in TEST() 84 Object *A2x = DUT.allocate(Cap, Allocator); in TEST() 93 Object *A3x = DUT.allocate(Cap, Allocator); in TEST() 95 Object *A1x = DUT.allocate(Cap, Allocator); in TEST() 97 Object *A2y = DUT.allocate(Cap, Allocator); in TEST() 101 Object *A4 = DUT.allocate(Cap, Allocator); in TEST() 106 DUT.clear(Allocator); in TEST()
|
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
D | PODArena.h | 49 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/ |
D | ScopedHashTable.h | 64 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 …]
|
D | StringMap.h | 140 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() 209 void Destroy(AllocatorTy &Allocator) { in Destroy() argument 212 Allocator.Deallocate(this); in Destroy() 229 AllocatorTy Allocator; variable 238 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {} in StringMap() 242 Allocator(A) {} in StringMap() 259 AllocatorRefTy getAllocator() { return Allocator; } in getAllocator() [all …]
|
D | ImmutableList.h | 145 uintptr_t Allocator; variable 148 return Allocator & 0x1 ? false : true; in ownsAllocator() 152 return *reinterpret_cast<BumpPtrAllocator*>(Allocator & ~0x1); in getAllocator() 157 : Allocator(reinterpret_cast<uintptr_t>(new BumpPtrAllocator())) {} in ImmutableListFactory() 160 : Allocator(reinterpret_cast<uintptr_t>(&Alloc) | 0x1) {} in ImmutableListFactory()
|
/external/clang/lib/AST/ |
D | CommentCommandTraits.cpp | 18 CommandTraits::CommandTraits(llvm::BumpPtrAllocator &Allocator, in CommandTraits() argument 20 NextID(llvm::array_lengthof(Commands)), Allocator(Allocator) { in CommandTraits() 47 char *Name = Allocator.Allocate<char>(CommandName.size() + 1); in createCommandInfoWithName() 52 CommandInfo *Info = new (Allocator) CommandInfo(); in createCommandInfoWithName()
|
D | CommentSema.cpp | 28 Sema::Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr, in Sema() argument 31 Allocator(Allocator), SourceMgr(SourceMgr), Diags(Diags), Traits(Traits), in Sema() 40 ThisDeclInfo = new (Allocator) DeclInfo; in setDecl() 47 return new (Allocator) ParagraphComment(Content); in actOnParagraphComment() 55 BlockCommandComment *BC = new (Allocator) BlockCommandComment(LocBegin, LocEnd, in actOnBlockCommandStart() 82 new (Allocator) ParamCommandComment(LocBegin, LocEnd, CommandID, in actOnParamCommandStart() 270 Argument *A = new (Allocator) Argument(SourceRange(ArgLocBegin, in actOnParamCommandParamNameArg() 288 new (Allocator) TParamCommandComment(LocBegin, LocEnd, CommandID, in actOnTParamCommandStart() 308 Argument *A = new (Allocator) Argument(SourceRange(ArgLocBegin, in actOnTParamCommandParamNameArg() 374 return new (Allocator) InlineCommandComment( in actOnInlineCommand() [all …]
|
D | CommentParser.cpp | 23 llvm::BumpPtrAllocator &Allocator; member in clang::comments::TextTokenRetokenizer 138 TextTokenRetokenizer(llvm::BumpPtrAllocator &Allocator, Parser &P): in TextTokenRetokenizer() argument 139 Allocator(Allocator), P(P), NoMoreInterestingTokens(false) { in TextTokenRetokenizer() 169 char *TextPtr = Allocator.Allocate<char>(Length + 1); in lexWord() 214 char *TextPtr = Allocator.Allocate<char>(Length + 1); in lexDelimitedSeq() 248 Parser::Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator, in Parser() argument 251 L(L), S(S), Allocator(Allocator), SourceMgr(SourceMgr), Diags(Diags), in Parser() 289 new (Allocator.Allocate<Argument>(NumArgs)) Argument[NumArgs]; in parseBlockCommandArgs() 353 TextTokenRetokenizer Retokenizer(Allocator, *this); in parseBlockCommand() 405 TextTokenRetokenizer Retokenizer(Allocator, *this); in parseInlineCommand()
|
D | RawCommentList.cpp | 144 llvm::BumpPtrAllocator Allocator; in extractBriefText() local 146 comments::Lexer L(Allocator, Context.getCommentCommandTraits(), in extractBriefText() 207 llvm::BumpPtrAllocator &Allocator) { in addComment() argument 237 Comments.push_back(new (Allocator) RawComment(RC)); in addComment() 261 Comments.push_back(new (Allocator) RawComment(RC)); in addComment()
|
/external/llvm/lib/Support/ |
D | Allocator.cpp | 27 Allocator(allocator), CurSlab(0), BytesAllocated(0) { } in BumpPtrAllocator() 54 MemSlab *NewSlab = Allocator.Allocate(SlabSize); in StartNewSlab() 72 Allocator.Deallocate(Slab); in DeallocateSlabs() 117 MemSlab *NewSlab = Allocator.Allocate(PaddedSize); in Allocate() 178 MemSlab *Slab = (MemSlab*)Allocator.Allocate(Size, 0); in Allocate() 185 Allocator.Deallocate(Slab); in Deallocate()
|
/external/llvm/lib/CodeGen/ |
D | MachineFunction.cpp | 57 RegInfo = new (Allocator) MachineRegisterInfo(*TM.getRegisterInfo()); in MachineFunction() 61 FrameInfo = new (Allocator) MachineFrameInfo(*TM.getFrameLowering(), in MachineFunction() 67 ConstantPool = new (Allocator) MachineConstantPool(TM.getDataLayout()); in MachineFunction() 86 InstructionRecycler.clear(Allocator); in ~MachineFunction() 87 OperandRecycler.clear(Allocator); in ~MachineFunction() 88 BasicBlockRecycler.clear(Allocator); in ~MachineFunction() 91 Allocator.Deallocate(RegInfo); in ~MachineFunction() 95 Allocator.Deallocate(MFInfo); in ~MachineFunction() 99 Allocator.Deallocate(FrameInfo); in ~MachineFunction() 102 Allocator.Deallocate(ConstantPool); in ~MachineFunction() [all …]
|
/external/clang/include/clang/Sema/ |
D | CodeCompleteConsumer.h | 539 IntrusiveRefCntPtr<GlobalCodeCompletionAllocator> Allocator) in CodeCompletionTUInfo() argument 540 : AllocatorRef(Allocator) { } in CodeCompletionTUInfo() 569 CodeCompletionAllocator &Allocator; 582 CodeCompletionBuilder(CodeCompletionAllocator &Allocator, 584 : Allocator(Allocator), CCTUInfo(CCTUInfo), 588 CodeCompletionBuilder(CodeCompletionAllocator &Allocator, 591 : Allocator(Allocator), CCTUInfo(CCTUInfo), 597 CodeCompletionAllocator &getAllocator() const { return Allocator; } 788 CodeCompletionAllocator &Allocator, 793 CodeCompletionAllocator &Allocator, [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | LiveIntervalUnion.h | 57 typedef LiveSegments::Allocator Allocator; typedef 66 explicit LiveIntervalUnion(Allocator &a) : Tag(0), Segments(a) {} in LiveIntervalUnion() 190 void init(LiveIntervalUnion::Allocator&, unsigned Size);
|
/external/skia/include/core/ |
D | SkBitmap.h | 41 class Allocator; 325 bool allocPixels(Allocator* allocator, SkColorTable* ctable); 520 bool copyTo(SkBitmap* dst, Config c, Allocator* allocator = NULL) const; 578 bool extractAlpha(SkBitmap* dst, const SkPaint* paint, Allocator* allocator, 593 class Allocator : public SkRefCnt { 595 SK_DECLARE_INST_COUNT(Allocator) 613 class HeapAllocator : public Allocator {
|
/external/chromium/base/ |
D | stack_container.h | 135 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/ |
D | functional | 123 template<typename Signature, typename Allocator > 125 template<typename Signature, typename Allocator> 126 void swap(function<Signature, Allocator>& f1, function<Signature, Allocator>& f2);
|