/external/llvm/include/llvm/Support/ |
H A D | 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; 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); } 62 T, Size, Align> &Allocator) { 63 return Allocator 60 operator new(size_t, llvm::RecyclingAllocator<AllocatorType, T, Size, Align> &Allocator) argument [all...] |
H A D | Allocator.h | 1 //===--- Allocator.h - Simple memory allocation abstraction -----*- C++ -*-===// 75 /// Allocator - The underlying allocator that we forward to. 77 MallocAllocator Allocator; member in class:llvm::MallocSlabAllocator 80 MallocSlabAllocator() : Allocator() { } 102 /// Allocator - The underlying allocator we use to get slabs of memory. This 105 SlabAllocator &Allocator; member in class:llvm::BumpPtrAllocator 190 BumpPtrAllocator Allocator; member in class:llvm::SpecificBumpPtrAllocator 194 : Allocator(size, threshold, allocator) {} 204 MemSlab *Slab = Allocator.CurSlab; 206 char *End = Slab == Allocator 226 operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) argument [all...] |
H A D | Recycler.h | 1 //==- llvm/Support/Recycler.h - Recycling Allocator --------------*- C++ -*-==// 83 void clear(AllocatorType &Allocator) { argument 86 Allocator.Deallocate(t); 91 SubClass *Allocate(AllocatorType &Allocator) { argument 98 static_cast<SubClass *>(Allocator.Allocate(Size, Align)); 102 T *Allocate(AllocatorType &Allocator) { argument 103 return Allocate<T>(Allocator); 107 void Deallocate(AllocatorType & /*Allocator*/, SubClass* Element) {
|
H A D | TargetRegistry.h | 837 TargetRegistry::RegisterMCAsmInfo(T, &Allocator); 840 static MCAsmInfo *Allocator(const Target &T, StringRef TT) { function in struct:llvm::RegisterMCAsmInfo 871 TargetRegistry::RegisterMCCodeGenInfo(T, &Allocator); 874 static MCCodeGenInfo *Allocator(StringRef TT, Reloc::Model RM, function in struct:llvm::RegisterMCCodeGenInfo 905 TargetRegistry::RegisterMCInstrInfo(T, &Allocator); 908 static MCInstrInfo *Allocator() { function in struct:llvm::RegisterMCInstrInfo 938 TargetRegistry::RegisterMCInstrAnalysis(T, &Allocator); 941 static MCInstrAnalysis *Allocator(const MCInstrInfo *Info) { function in struct:llvm::RegisterMCInstrAnalysis 971 TargetRegistry::RegisterMCRegInfo(T, &Allocator); 974 static MCRegisterInfo *Allocator(StringRe function in struct:llvm::RegisterMCRegInfo 1007 static MCSubtargetInfo *Allocator(StringRef TT, StringRef CPU, function in struct:llvm::RegisterMCSubtargetInfo 1042 static TargetMachine *Allocator(const Target &T, StringRef TT, function in struct:llvm::RegisterTargetMachine 1066 static MCAsmBackend *Allocator(const Target &T, StringRef Triple) { function in struct:llvm::RegisterMCAsmBackend 1086 static MCTargetAsmLexer *Allocator(const Target &T, function in struct:llvm::RegisterMCAsmLexer 1108 static MCTargetAsmParser *Allocator(MCSubtargetInfo &STI, MCAsmParser &P) { function in struct:llvm::RegisterMCAsmParser 1128 static AsmPrinter *Allocator(TargetMachine &TM, MCStreamer &Streamer) { function in struct:llvm::RegisterAsmPrinter 1148 static MCCodeEmitter *Allocator(const MCInstrInfo &II, function in struct:llvm::RegisterMCCodeEmitter [all...] |
/external/v8/src/ |
H A D | splay-tree-inl.h | 37 template<typename Config, class Allocator> 38 SplayTree<Config, Allocator>::~SplayTree() { 44 template<typename Config, class Allocator> 45 bool SplayTree<Config, Allocator>::Insert(const Key& key, Locator* locator) { 68 template<typename Config, class Allocator> 69 void SplayTree<Config, Allocator>::InsertInternal(int cmp, Node* node) { 83 template<typename Config, class Allocator> 84 bool SplayTree<Config, Allocator>::FindInternal(const Key& key) { 92 template<typename Config, class Allocator> 93 bool SplayTree<Config, Allocator> [all...] |
H A D | splay-tree.h | 47 // (Allocator). The policy is used for allocating lists in the C free 51 // template <typename Config, class Allocator = FreeStoreAllocationPolicy> 53 template <typename Config, class Allocator> 65 return Allocator::New(static_cast<int>(size)); 67 INLINE(void operator delete(void* p, size_t)) { return Allocator::Delete(p); } 116 return Allocator::New(static_cast<int>(size)); 119 return Allocator::Delete(p);
|
/external/clang/lib/AST/ |
H A D | CommentCommandTraits.cpp | 18 CommandTraits::CommandTraits(llvm::BumpPtrAllocator &Allocator) : argument 19 NextID(llvm::array_lengthof(Commands)), Allocator(Allocator) 35 char *Name = Allocator.Allocate<char>(CommandName.size()); 40 CommandInfo *Info = new (Allocator) CommandInfo();
|
/external/llvm/include/llvm/CodeGen/ |
H A D | MachineLoopRanges.h | 35 typedef Map::Allocator Allocator; typedef in class:llvm::MachineLoopRange 49 MachineLoopRange(const MachineLoop*, Allocator&, SlotIndexes&); 88 typedef MachineLoopRange::Allocator MapAllocator; 90 MapAllocator Allocator; member in class:llvm::MachineLoopRanges
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
H A D | BitmapAllocatorAndroid.h | 41 class BitmapAllocatorAndroid : public SkBitmap::Allocator {
|
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
H A D | PODArena.h | 49 class Allocator : public RefCounted<Allocator> { class in class:WebCore::PODArena 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) 124 explicit PODArena(PassRefPtr<Allocator> allocator) 165 // Allocator. 166 Chunk(Allocator* allocato [all...] |
/external/clang/include/clang/Basic/ |
H A D | PartialDiagnostic.h | 126 /// \brief Allocator used to allocate storage for this diagnostic. 127 StorageAllocator *Allocator; member in class:clang::PartialDiagnostic 134 if (Allocator) 135 DiagStorage = Allocator->Allocate(); 137 assert(Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))); 157 if (Allocator) 158 Allocator->Deallocate(DiagStorage); 159 else if (Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))) 189 : DiagID(0), DiagStorage(0), Allocator(0) { } 191 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator) argument 211 PartialDiagnostic(const Diagnostic &Other, StorageAllocator &Allocator) argument [all...] |
/external/llvm/include/llvm/ADT/ |
H A D | ScopedHashTable.h | 35 #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...] |
H A D | StringMap.h | 18 #include "llvm/Support/Allocator.h" 140 AllocatorTy &Allocator, 153 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); 170 AllocatorTy &Allocator) { 171 return Create(KeyStart, KeyEnd, Allocator, 0); 211 void Destroy(AllocatorTy &Allocator) { argument 214 Allocator.Deallocate(this); 231 AllocatorTy Allocator; member in class:llvm::StringMap 240 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {} 257 AllocatorRefTy getAllocator() { return Allocator; } 139 Create(const char *KeyStart, const char *KeyEnd, AllocatorTy &Allocator, InitType InitVal) argument 169 Create(const char *KeyStart, const char *KeyEnd, AllocatorTy &Allocator) argument [all...] |
/external/clang/include/clang/AST/ |
H A D | CommentCommandTraits.h | 22 #include "llvm/Support/Allocator.h" 102 CommandTraits(llvm::BumpPtrAllocator &Allocator); 135 /// Allocator for CommandInfo objects. 136 llvm::BumpPtrAllocator &Allocator; member in class:clang::comments::CommandTraits
|
H A D | CommentParser.h | 21 #include "llvm/Support/Allocator.h" 40 /// Allocator for anything that goes into AST nodes. 41 llvm::BumpPtrAllocator &Allocator; member in class:clang::comments::Parser 90 Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator,
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_allocator_test.cc | 19 TEST(Allocator, Basic) { 37 TEST(Allocator, Stress) { 56 TEST(Allocator, ScopedBuffer) {
|
H A D | sanitizer_allocator64_test.cc | 22 SizeClassAllocator64<kAllocatorSpace, kAllocatorSize, 16, SCMap> Allocator; typedef 23 typedef SizeClassAllocatorLocalCache<Allocator::kNumClasses, Allocator> 56 Allocator a; 103 Allocator a; 127 Allocator a; 185 typedef Allocator PrimaryAllocator; 188 SecondaryAllocator> Allocator; typedef 191 Allocator a; 237 Allocator [all...] |
H A D | sanitizer_allocator64_testlib.cc | 29 SecondaryAllocator> Allocator; typedef in namespace:__anon4915 32 static Allocator allocator;
|
/external/llvm/lib/Support/ |
H A D | Allocator.cpp | 1 //===--- Allocator.cpp - Simple memory allocation abstraction -------------===// 14 #include "llvm/Support/Allocator.h" 26 Allocator(allocator), CurSlab(0), BytesAllocated(0) { } 53 MemSlab *NewSlab = Allocator.Allocate(SlabSize); 71 Allocator.Deallocate(Slab); 111 MemSlab *NewSlab = Allocator.Allocate(PaddedSize); 170 MemSlab *Slab = (MemSlab*)Allocator.Allocate(Size, 0); 177 Allocator.Deallocate(Slab);
|
/external/llvm/include/llvm/MC/ |
H A D | MCModule.h | 49 MCModule(IntervalMap<uint64_t, MCAtom*>::Allocator &A) : OffsetMap(A) { }
|
/external/stlport/stlport/ |
H A 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);
|
/external/llvm/lib/CodeGen/ |
H A D | MachineFunction.cpp | 57 RegInfo = new (Allocator) MachineRegisterInfo(*TM.getRegisterInfo()); 61 FrameInfo = new (Allocator) MachineFrameInfo(*TM.getFrameLowering()); 65 ConstantPool = new (Allocator) MachineConstantPool(TM.getTargetData()); 77 InstructionRecycler.clear(Allocator); 78 BasicBlockRecycler.clear(Allocator); 81 Allocator.Deallocate(RegInfo); 85 Allocator.Deallocate(MFInfo); 89 Allocator.Deallocate(FrameInfo); 92 Allocator.Deallocate(ConstantPool); 96 Allocator [all...] |
H A D | LiveIntervalUnion.h | 58 typedef LiveSegments::Allocator Allocator; typedef in class:llvm::LiveIntervalUnion 67 explicit LiveIntervalUnion(Allocator &a) : Tag(0), Segments(a) {} 195 void init(LiveIntervalUnion::Allocator&, unsigned Size);
|
/external/clang/include/clang/Sema/ |
H A D | CodeCompleteConsumer.h | 21 #include "llvm/Support/Allocator.h" 532 /// \brief Allocator for a cached set of global code completions. 546 IntrusiveRefCntPtr<GlobalCodeCompletionAllocator> Allocator) 547 : AllocatorRef(Allocator) { } 576 CodeCompletionAllocator &Allocator; 590 CodeCompletionBuilder(CodeCompletionAllocator &Allocator, 592 : Allocator(Allocator), CCTUInfo(CCTUInfo), 596 CodeCompletionBuilder(CodeCompletionAllocator &Allocator, 599 : Allocator(Allocato [all...] |
/external/chromium/base/ |
H A D | stack_container.h | 135 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_;
|