Home
last modified time | relevance | path

Searched refs:NewCapacity (Results 1 – 18 of 18) sorted by relevance

/external/clang/lib/Sema/
DTypeLocBuilder.cpp45 void TypeLocBuilder::grow(size_t NewCapacity) { in grow() argument
46 assert(NewCapacity > Capacity); in grow()
49 char *NewBuffer = new char[NewCapacity]; in grow()
50 unsigned NewIndex = Index + NewCapacity - Capacity; in grow()
59 Capacity = NewCapacity; in grow()
76 size_t NewCapacity = Capacity * 2; in pushImpl() local
77 while (RequiredCapacity > NewCapacity) in pushImpl()
78 NewCapacity *= 2; in pushImpl()
79 grow(NewCapacity); in pushImpl()
DTypeLocBuilder.h133 void grow(size_t NewCapacity);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DSmallVector.cpp49 size_t NewCapacity = 2 * capacity() + 1; // Always grow. in grow_pod() local
50 NewCapacity = in grow_pod()
51 std::min(std::max(NewCapacity, MinCapacity), size_t(UINT32_MAX)); in grow_pod()
55 NewElts = safe_malloc(NewCapacity * TSize); in grow_pod()
61 NewElts = safe_realloc(this->BeginX, NewCapacity * TSize); in grow_pod()
65 this->Capacity = NewCapacity; in grow_pod()
/external/clang/include/clang/Analysis/Support/
DBumpVector.h223 size_t NewCapacity = 2*CurCapacity; in grow() local
224 if (NewCapacity < MinSize) in grow()
225 NewCapacity = MinSize; in grow()
228 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); in grow()
246 Capacity = Begin+NewCapacity; in grow()
/external/clang/include/clang/AST/
DASTVector.h379 size_t NewCapacity = 2*CurCapacity; in grow() local
380 if (NewCapacity < MinSize) in grow()
381 NewCapacity = MinSize; in grow()
384 T *NewElts = new (C, llvm::alignOf<T>()) T[NewCapacity]; in grow()
401 Capacity.setPointer(Begin+NewCapacity); in grow()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DBitVector.h715 unsigned NewCapacity = RHSWords; variable
716 assert(NewCapacity > 0 && "negative capacity?");
717 auto NewBits = allocate(NewCapacity);
718 std::memcpy(NewBits.data(), RHS.Bits.data(), NewCapacity * sizeof(BitWord));
869 size_t NewCapacity = std::max<size_t>(NumBitWords(NewSize), Bits.size() * 2); in grow() local
870 assert(NewCapacity > 0 && "realloc-ing zero space"); in grow()
872 safe_realloc(Bits.data(), NewCapacity * sizeof(BitWord))); in grow()
873 Bits = MutableArrayRef<BitWord>(NewBits, NewCapacity); in grow()
DSmallVector.h245 size_t NewCapacity = size_t(NextPowerOf2(this->capacity() + 2)); in grow() local
246 NewCapacity = std::min(std::max(NewCapacity, MinSize), size_t(UINT32_MAX)); in grow()
247 T *NewElts = static_cast<T*>(llvm::safe_malloc(NewCapacity*sizeof(T))); in grow()
260 this->Capacity = NewCapacity; in grow()
/external/v8/src/builtins/
Dgrowable-fixed-array-gen.cc21 var_capacity_ = NewCapacity(capacity); in Push()
68 TNode<IntPtrT> GrowableFixedArray::NewCapacity( in NewCapacity() function in v8::internal::GrowableFixedArray
Dgrowable-fixed-array-gen.h40 TNode<IntPtrT> NewCapacity(TNode<IntPtrT> current_capacity);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/
DLazyRandomTypeCollection.cpp159 uint32_t NewCapacity = MinSize * 3 / 2; in ensureCapacityFor() local
161 assert(NewCapacity > capacity()); in ensureCapacityFor()
162 Records.resize(NewCapacity); in ensureCapacityFor()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/PDB/Native/
DHashTable.h312 uint32_t NewCapacity = (capacity() <= INT32_MAX) ? MaxLoad * 2 : UINT32_MAX;
317 HashTable NewMap(NewCapacity, Traits);
326 assert(capacity() == NewCapacity);
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DSmallVector.h204 size_t NewCapacity = 2*CurCapacity + 1; // Always grow, even from zero. in grow() local
205 if (NewCapacity < MinSize) in grow()
206 NewCapacity = MinSize; in grow()
207 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()
221 this->CapacityX = this->begin()+NewCapacity; in grow()
/external/llvm/include/llvm/ADT/
DSmallVector.h234 size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2)); in grow() local
235 if (NewCapacity < MinSize) in grow()
236 NewCapacity = MinSize; in grow()
237 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()
251 this->CapacityX = this->begin()+NewCapacity; in grow()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallVector.h237 size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2)); in grow() local
238 if (NewCapacity < MinSize) in grow()
239 NewCapacity = MinSize; in grow()
240 T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T))); in grow()
254 this->CapacityX = this->begin()+NewCapacity; in grow()
/external/clang/lib/AST/
DNestedNameSpecifier.cpp457 unsigned NewCapacity = std::max( in Append() local
460 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); in Append()
466 BufferCapacity = NewCapacity; in Append()
/external/clang/lib/CodeGen/
DCGCleanup.cpp125 unsigned NewCapacity = CurrentCapacity; in allocate() local
127 NewCapacity *= 2; in allocate()
128 } while (NewCapacity < UsedCapacity + Size); in allocate()
130 char *NewStartOfBuffer = new char[NewCapacity]; in allocate()
131 char *NewEndOfBuffer = NewStartOfBuffer + NewCapacity; in allocate()
/external/v8/src/parsing/
Dscanner.cc70 int Scanner::LiteralBuffer::NewCapacity(int min_capacity) { in NewCapacity() function in v8::internal::Scanner::LiteralBuffer
77 Vector<byte> new_store = Vector<byte>::New(NewCapacity(kInitialCapacity)); in ExpandBuffer()
90 new_store = Vector<byte>::New(NewCapacity(new_content_size)); in ConvertToTwoByte()
Dscanner.h505 int NewCapacity(int min_capacity);