Searched refs:Allocator (Results 1 - 25 of 72) 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); }
62 T, Size, Align> &Allocator) {
63 return Allocator
60 operator new(size_t, llvm::RecyclingAllocator<AllocatorType, T, Size, Align> &Allocator) argument
[all...]
H A DAllocator.h1 //===--- 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 DRecycler.h1 //==- llvm/Support/Recycler.h - Recycling Allocator --------------*- C++ -*-==//
82 void clear(AllocatorType &Allocator) { argument
85 Allocator.Deallocate(t);
90 SubClass *Allocate(AllocatorType &Allocator) { argument
97 static_cast<SubClass *>(Allocator.Allocate(Size, Align));
101 T *Allocate(AllocatorType &Allocator) { argument
102 return Allocate<T>(Allocator);
106 void Deallocate(AllocatorType & /*Allocator*/, SubClass* Element) {
H A DTargetRegistry.h809 TargetRegistry::RegisterMCAsmInfo(T, &Allocator);
812 static MCAsmInfo *Allocator(const Target &T, StringRef TT) { function in struct:llvm::RegisterMCAsmInfo
843 TargetRegistry::RegisterMCCodeGenInfo(T, &Allocator);
846 static MCCodeGenInfo *Allocator(StringRef TT, function in struct:llvm::RegisterMCCodeGenInfo
877 TargetRegistry::RegisterMCInstrInfo(T, &Allocator);
880 static MCInstrInfo *Allocator() { function in struct:llvm::RegisterMCInstrInfo
910 TargetRegistry::RegisterMCInstrAnalysis(T, &Allocator);
913 static MCInstrAnalysis *Allocator(const MCInstrInfo *Info) { function in struct:llvm::RegisterMCInstrAnalysis
943 TargetRegistry::RegisterMCRegInfo(T, &Allocator);
946 static MCRegisterInfo *Allocator(StringRe function in struct:llvm::RegisterMCRegInfo
979 static MCSubtargetInfo *Allocator(StringRef TT, StringRef CPU, function in struct:llvm::RegisterMCSubtargetInfo
1014 static TargetMachine *Allocator(const Target &T, StringRef TT, function in struct:llvm::RegisterTargetMachine
1036 static MCAsmBackend *Allocator(const Target &T, StringRef Triple) { function in struct:llvm::RegisterMCAsmBackend
1056 static MCTargetAsmLexer *Allocator(const Target &T, function in struct:llvm::RegisterMCAsmLexer
1078 static MCTargetAsmParser *Allocator(MCSubtargetInfo &STI, MCAsmParser &P) { function in struct:llvm::RegisterMCAsmParser
1098 static AsmPrinter *Allocator(TargetMachine &TM, MCStreamer &Streamer) { function in struct:llvm::RegisterAsmPrinter
1118 static MCCodeEmitter *Allocator(const MCInstrInfo &II, function in struct:llvm::RegisterMCCodeEmitter
[all...]
/external/v8/src/
H A Dsplay-tree-inl.h37 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 Dhashmap.h35 // Allocator defines the memory allocator interface
37 class Allocator BASE_EMBEDDED {
39 virtual ~Allocator() {}
47 static Allocator DefaultAllocator;
59 Allocator* allocator = &DefaultAllocator,
106 Allocator* allocator_;
H A Dscopeinfo.cc51 template<class Allocator>
52 ScopeInfo<Allocator>::ScopeInfo(Scope* scope)
77 List<Variable*, Allocator> locals(32); // 32 is a wild guess
82 List<Variable*, Allocator> heap_locals(locals.length());
206 template <class Allocator>
207 static Object** ReadList(Object** p, List<Handle<String>, Allocator >* list) {
220 template <class Allocator>
222 List<Handle<String>, Allocator>* list,
223 List<Variable::Mode, Allocator>* modes) {
239 template<class Allocator>
[all...]
H A Dscopeinfo.h50 // template <class Allocator = FreeStoreAllocationPolicy> class ScopeInfo;
51 template<class Allocator>
95 List<Handle<String>, Allocator > parameters_;
96 List<Handle<String>, Allocator > stack_slots_;
97 List<Handle<String>, Allocator > context_slots_;
98 List<Variable::Mode, Allocator > context_modes_;
H A Dsplay-tree.h45 // (Allocator). The policy is used for allocating lists in the C free
49 // template <typename Config, class Allocator = FreeStoreAllocationPolicy>
51 template <typename Config, class Allocator>
63 return Allocator::New(static_cast<int>(size));
65 INLINE(void operator delete(void* p, size_t)) { return Allocator::Delete(p); }
114 return Allocator::New(static_cast<int>(size));
117 return Allocator::Delete(p);
/external/llvm/include/llvm/CodeGen/
H A DMachineLoopRanges.h35 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
H A DLiveStackAnalysis.h22 #include "llvm/Support/Allocator.h"
32 VNInfo::Allocator VNInfoAllocator;
86 VNInfo::Allocator& getVNInfoAllocator() { return VNInfoAllocator; }
/external/clang/include/clang/Basic/
H A DPartialDiagnostic.h121 /// \brief Allocator used to allocate storage for this diagnostic.
122 StorageAllocator *Allocator; member in class:clang::PartialDiagnostic
129 if (Allocator)
130 DiagStorage = Allocator->Allocate();
132 assert(Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0)));
142 if (Allocator)
143 Allocator->Deallocate(DiagStorage);
144 else if (Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0)))
175 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator) argument
176 : DiagID(DiagID), DiagStorage(0), Allocator(
195 PartialDiagnostic(const Diagnostic &Other, StorageAllocator &Allocator) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/android/
H A DBitmapAllocatorAndroid.h41 class BitmapAllocatorAndroid : public SkBitmap::Allocator {
/external/webkit/Source/WebCore/platform/graphics/gpu/
H A DPODArena.h49 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/llvm/lib/CodeGen/
H A DLiveRangeCalc.h116 VNInfo::Allocator *Alloc);
142 VNInfo::Allocator *Alloc);
161 VNInfo::Allocator *Alloc);
171 VNInfo::Allocator *Alloc);
221 VNInfo::Allocator *Alloc);
H A DMachineFunction.cpp59 RegInfo = new (Allocator) MachineRegisterInfo(*TM.getRegisterInfo());
63 FrameInfo = new (Allocator) MachineFrameInfo(*TM.getFrameLowering());
67 ConstantPool = new (Allocator) MachineConstantPool(TM.getTargetData());
79 InstructionRecycler.clear(Allocator);
80 BasicBlockRecycler.clear(Allocator);
83 Allocator.Deallocate(RegInfo);
87 Allocator.Deallocate(MFInfo);
89 FrameInfo->~MachineFrameInfo(); Allocator.Deallocate(FrameInfo);
90 ConstantPool->~MachineConstantPool(); Allocator.Deallocate(ConstantPool);
94 Allocator
[all...]
H A DLiveIntervalUnion.h60 typedef LiveSegments::Allocator Allocator; typedef in class:llvm::LiveIntervalUnion
70 LiveIntervalUnion(unsigned r, Allocator &a) : RepReg(r), Tag(0), Segments(a)
/external/llvm/include/llvm/ADT/
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...]
H A DStringMap.h18 #include "llvm/Support/Allocator.h"
149 AllocatorTy &Allocator,
162 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
179 AllocatorTy &Allocator) {
180 return Create(KeyStart, KeyEnd, Allocator, 0);
220 void Destroy(AllocatorTy &Allocator) { argument
223 Allocator.Deallocate(this);
240 AllocatorTy Allocator; member in class:llvm::StringMap
248 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {}
265 AllocatorRefTy getAllocator() { return Allocator; }
148 Create(const char *KeyStart, const char *KeyEnd, AllocatorTy &Allocator, InitType InitVal) argument
178 Create(const char *KeyStart, const char *KeyEnd, AllocatorTy &Allocator) argument
[all...]
/external/llvm/lib/Support/
H A DAllocator.cpp1 //===--- Allocator.cpp - Simple memory allocation abstraction -------------===//
14 #include "llvm/Support/Allocator.h"
25 : SlabSize(size), SizeThreshold(threshold), Allocator(allocator),
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 DMCModule.h49 MCModule(IntervalMap<uint64_t, MCAtom*>::Allocator &A) : OffsetMap(A) { }
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DEnvironment.h81 EnvironmentManager(llvm::BumpPtrAllocator& Allocator) : F(Allocator) {} argument
/external/stlport/stlport/
H A Dfunctional123 template<typename Signature, typename Allocator >
125 template<typename Signature, typename Allocator>
126 void swap(function<Signature, Allocator>& f1, function<Signature, Allocator>& f2);
/external/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h20 #include "llvm/Support/Allocator.h"
521 CodeCompletionAllocator &Allocator;
531 CodeCompletionBuilder(CodeCompletionAllocator &Allocator)
532 : Allocator(Allocator), Priority(0), Availability(CXAvailability_Available){
535 CodeCompletionBuilder(CodeCompletionAllocator &Allocator,
537 : Allocator(Allocator), Priority(Priority), Availability(Availability) { }
541 CodeCompletionAllocator &getAllocator() const { return Allocator; }
720 /// \param Allocator Th
[all...]
/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_;

Completed in 399 milliseconds

123