HomeSort by relevance Sort by last modified time
    Searched defs:Allocator (Results 1 - 25 of 57) sorted by null

1 2 3

  /external/chromium_org/third_party/WebKit/Source/platform/heap/
HeapTerminatedArray.h 28 // Allocator describes how HeapTerminatedArrayBuilder should create new intances
30 struct Allocator {
45 // Prohibit construction. Allocator makes HeapTerminatedArray instances for
  /external/libcxx/test/containers/sequences/deque/deque.cons/
iter_iter.pass.cpp 26 typedef std::allocator<T> Allocator;
27 typedef std::deque<T, Allocator> C;
36 template <class Allocator, class InputIterator>
41 typedef std::deque<T, Allocator> C;
  /external/chromium_org/third_party/WebKit/Source/platform/
PODArena.h 47 // The arena is configured with an allocator, which is responsible
49 class Allocator : public RefCounted<Allocator> {
54 virtual ~Allocator() { }
55 friend class WTF::RefCounted<Allocator>;
58 // The Arena's default allocator, which uses fastMalloc and
60 class FastMallocAllocator : public Allocator {
80 // Creates a new PODArena configured with the given Allocator.
81 static PassRefPtr<PODArena> create(PassRefPtr<Allocator> allocator)
    [all...]
  /external/llvm/include/llvm/Support/
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;
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()
    [all...]
  /external/clang/include/clang/AST/
CommentParser.h 21 #include "llvm/Support/Allocator.h"
40 /// Allocator for anything that goes into AST nodes.
41 llvm::BumpPtrAllocator &Allocator;
93 Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator,
CommentSema.h 23 #include "llvm/Support/Allocator.h"
37 /// Allocator for AST nodes.
38 llvm::BumpPtrAllocator &Allocator;
73 Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr,
79 /// Returns a copy of array, owned by Sema's allocator.
84 T *Mem = Allocator.Allocate<T>(Size);
CommentCommandTraits.h 23 #include "llvm/Support/Allocator.h"
133 CommandTraits(llvm::BumpPtrAllocator &Allocator,
175 /// Allocator for CommandInfo objects.
176 llvm::BumpPtrAllocator &Allocator;
  /external/llvm/unittests/Support/
ArrayRecyclerTest.cpp 11 #include "llvm/Support/Allocator.h"
52 BumpPtrAllocator Allocator;
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/chromium_org/third_party/WebKit/Source/wtf/
TerminatedArray.h 66 // Match Allocator semantics to be able to use OwnPtr<TerminatedArray>.
70 // Allocator describes how TerminatedArrayBuilder should create new instances
72 struct Allocator {
87 // Prohibit construction. Allocator makes TerminatedArray instances for
  /external/clang/include/clang/Analysis/Analyses/
ThreadSafetyUtil.h 19 #include "llvm/Support/Allocator.h"
44 MemRegionRef() : Allocator(nullptr) {}
45 MemRegionRef(llvm::BumpPtrAllocator *A) : Allocator(A) {}
48 return Allocator->Allocate(Sz, llvm::AlignOf<AlignmentType>::Alignment);
51 template <typename T> T *allocateT() { return Allocator->Allocate<T>(); }
54 return Allocator->Allocate<T>(NumElems);
58 llvm::BumpPtrAllocator *Allocator;
  /external/clang/unittests/AST/
CommentLexer.cpp 35 Traits(Allocator, CommentOptions()) {
43 llvm::BumpPtrAllocator Allocator;
67 Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source));
    [all...]
CommentParser.cpp 21 #include "llvm/Support/Allocator.h"
42 Traits(Allocator, CommentOptions()) {
50 llvm::BumpPtrAllocator Allocator;
61 Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source));
63 Sema S(Allocator, SourceMgr, Diags, Traits, /*PP=*/ nullptr);
64 Parser P(L, S, Allocator, SourceMgr, Diags, Traits);
    [all...]
  /external/compiler-rt/lib/sanitizer_common/tests/
sanitizer_allocator_testlib.cc 44 SecondaryAllocator> Allocator;
46 static Allocator allocator; member in namespace:__anon24252
57 allocator.SwallowCache(&cache);
63 allocator.Init();
76 void *p = allocator.Allocate(&cache, size, 8);
85 allocator.Deallocate(&cache, p);
92 void *p = allocator.Allocate(&cache, size, 8, false);
104 p = allocator.Reallocate(&cache, p, size, 8);
114 void *p = allocator.Allocate(&cache, size, alignment)
    [all...]
  /art/runtime/base/
allocator.h 31 class Allocator {
33 static Allocator* GetMallocAllocator();
34 static Allocator* GetNoopAllocator();
36 Allocator() {}
37 virtual ~Allocator() {}
43 DISALLOW_COPY_AND_ASSIGN(Allocator);
92 // Tracking allocator, tracks how much memory is used.
94 class TrackingAllocatorImpl : public std::allocator<T> {
96 typedef typename std::allocator<T>::value_type value_type;
97 typedef typename std::allocator<T>::size_type size_type
    [all...]
  /art/runtime/
monitor_pool.h 22 #include "base/allocator.h"
175 typedef TrackingAllocator<byte, kAllocatorTagMonitorPool> Allocator;
176 Allocator allocator_;
  /external/chromium_org/base/containers/
stack_container.h 18 // This allocator can be used with STL containers to provide a stack buffer
23 // STL likes to make copies of allocators, so the allocator itself can't hold
25 // StackAllocator::Source which contains the data. Copying the allocator
27 // based on our allocator will share the same stack buffer.
37 class StackAllocator : public std::allocator<T> {
39 typedef typename std::allocator<T>::pointer pointer;
40 typedef typename std::allocator<T>::size_type size_type;
42 // Backing store for the allocator. The container owner is responsible for
43 // maintaining this for as long as any containers using this allocator are
68 // Used by containers when they want to refer to an allocator of type U
    [all...]
  /external/clang/lib/AST/
RawCommentList.cpp 124 // a separate allocator for all temporary stuff.
125 llvm::BumpPtrAllocator Allocator;
127 comments::Lexer L(Allocator, Context.getDiagnostics(),
214 llvm::BumpPtrAllocator &Allocator) {
234 Comments.push_back(new (Allocator) RawComment(RC));
251 Comments.push_back(new (Allocator) RawComment(RC));
  /external/compiler-rt/lib/asan/
asan_allocator.h 130 SecondaryAllocator> Allocator;
  /external/compiler-rt/lib/lsan/
lsan_allocator.cc 43 SecondaryAllocator> Allocator;
45 static Allocator allocator; member in namespace:__lsan
49 allocator.Init();
53 allocator.SwallowCache(&cache);
57 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p));
85 void *p = allocator.Allocate(&cache, size, alignment, false);
86 // Do not rely on the allocator to clear the memory (it's slow).
87 if (cleared && allocator.FromPrimary(p))
95 allocator.Deallocate(&cache, p)
    [all...]
  /art/compiler/dex/
global_value_numbering.h 31 GlobalValueNumbering(CompilationUnit* cu, ScopedArenaAllocator* allocator);
36 ScopedArenaAllocator* allocator = nullptr);
58 static void* operator new(size_t size, ScopedArenaAllocator* allocator) {
59 return allocator->Alloc(sizeof(GlobalValueNumbering), kArenaAllocMisc);
203 ScopedArenaAllocator* Allocator() const {
  /external/chromium_org/base/allocator/
allocator_shim.cc 5 #include "base/allocator/allocator_shim.h"
8 #include "base/allocator/allocator_extension_thunks.h"
27 TCMALLOC, // TCMalloc is the default allocator.
28 WINHEAP, // Windows Heap (standard Windows allocator).
30 } Allocator;
32 // This is the default allocator. This value can be changed at startup by
35 // allocator.
39 static Allocator allocator = WINHEAP; variable
41 static Allocator allocator = TCMALLOC variable
339 namespace allocator { namespace in namespace:base
    [all...]
  /external/chromium_org/third_party/tcmalloc/chromium/src/
addressmap-inl.h 37 // We use a user-defined allocator/de-allocator so that we can use
105 typedef void* (*Allocator)(size_t size);
109 // Create an AddressMap that uses the specified allocator/deallocator.
110 // The allocator/deallocator should behave like malloc/free.
111 // For instance, the allocator does not need to return initialized memory.
112 AddressMap(Allocator alloc, DeAllocator dealloc);
243 // pass in custom memory allocator/deallocator routines.
250 Allocator alloc_; // The allocator
    [all...]
  /external/chromium_org/third_party/tcmalloc/vendor/src/
addressmap-inl.h 37 // We use a user-defined allocator/de-allocator so that we can use
105 typedef void* (*Allocator)(size_t size);
109 // Create an AddressMap that uses the specified allocator/deallocator.
110 // The allocator/deallocator should behave like malloc/free.
111 // For instance, the allocator does not need to return initialized memory.
112 AddressMap(Allocator alloc, DeAllocator dealloc);
243 // pass in custom memory allocator/deallocator routines.
250 Allocator alloc_; // The allocator
    [all...]
heap-profile-table.h 91 // Memory (de)allocator interface we'll use.
92 typedef void* (*Allocator)(size_t size);
97 HeapProfileTable(Allocator alloc, DeAllocator dealloc);
341 // Memory (de)allocator that we use.
342 Allocator alloc_;
401 Snapshot(Allocator alloc, DeAllocator dealloc) : map_(alloc, dealloc) {
  /external/clang/include/clang/Basic/
PartialDiagnostic.h 76 /// \brief An allocator for Storage objects, which uses a small cache to
122 /// \brief Allocator used to allocate storage for this diagnostic.
123 StorageAllocator *Allocator;
130 if (Allocator)
131 DiagStorage = Allocator->Allocate();
133 assert(Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0)));
153 if (Allocator)
154 Allocator->Deallocate(DiagStorage);
155 else if (Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0)))
182 : DiagID(0), DiagStorage(nullptr), Allocator(nullptr) {
    [all...]

Completed in 3186 milliseconds

1 2 3