Home
last modified time | relevance | path

Searched refs:new_capacity (Results 1 – 25 of 37) sorted by relevance

12

/external/v8/src/
Dcollector.h135 int new_capacity; in Grow() local
139 new_capacity = min_capacity * growth_factor; in Grow()
140 if (new_capacity < kMinCapacity) new_capacity = kMinCapacity; in Grow()
146 new_capacity = current_length + growth; in Grow()
147 if (new_capacity < min_capacity) { in Grow()
148 new_capacity = min_capacity + growth; in Grow()
151 NewChunk(new_capacity); in Grow()
159 virtual void NewChunk(int new_capacity) { in NewChunk() argument
160 Vector<T> new_chunk = Vector<T>::New(new_capacity); in NewChunk()
221 virtual void NewChunk(int new_capacity) { in NewChunk() argument
[all …]
Dlayout-descriptor.cc83 int new_capacity = field_index + details.field_width_in_words(); in AppendIfFastOrUseFull() local
84 if (new_capacity > layout_descriptor->capacity()) { in AppendIfFastOrUseFull()
100 int new_capacity) { in EnsureCapacity() argument
102 if (new_capacity <= old_capacity) { in EnsureCapacity()
106 LayoutDescriptor::New(isolate, new_capacity); in EnsureCapacity()
Dlist-inl.h60 int new_capacity = 1 + 2 * capacity_; in ResizeAddInternal() local
64 Resize(new_capacity, alloc); in ResizeAddInternal()
70 void List<T, P>::Resize(int new_capacity, P alloc) { in Resize() argument
71 DCHECK_LE(length_, new_capacity); in Resize()
72 T* new_data = NewData(new_capacity, alloc); in Resize()
76 capacity_ = new_capacity; in Resize()
Didentity-map.cc255 void IdentityMapBase::Resize(int new_capacity) { in Resize() argument
258 DCHECK_GT(new_capacity, size_); in Resize()
263 capacity_ = new_capacity; in Resize()
Dtransitions.cc270 Handle<FixedArray> array, int new_capacity, Isolate* isolate) { in GrowPrototypeTransitionArray() argument
273 new_capacity = Min(kMaxCachedPrototypeTransitions, new_capacity); in GrowPrototypeTransitionArray()
274 DCHECK_GT(new_capacity, capacity); in GrowPrototypeTransitionArray()
275 int grow_by = new_capacity - capacity; in GrowPrototypeTransitionArray()
Dstring-stream.cc44 unsigned new_capacity = capacity_; in Put() local
45 char* new_buffer = allocator_->grow(&new_capacity); in Put()
46 if (new_capacity > capacity_) { in Put()
47 capacity_ = new_capacity; in Put()
Dlayout-descriptor.h122 int new_capacity);
Delements.cc670 PropertyAttributes attributes, uint32_t new_capacity) final { in Add() argument
671 Subclass::AddImpl(object, index, value, attributes, new_capacity); in Add()
676 uint32_t new_capacity) { in AddImpl() argument
950 uint32_t new_capacity = JSObject::NewElementsCapacity(index + 1); in GrowCapacity() local
951 DCHECK(static_cast<uint32_t>(old_elements->length()) < new_capacity); in GrowCapacity()
953 ConvertElementsWithCapacity(object, old_elements, kind(), new_capacity); in GrowCapacity()
1474 uint32_t new_capacity) { in AddImpl() argument
1932 uint32_t new_capacity) { in AddImpl() argument
1940 new_capacity) { in AddImpl()
1941 Subclass::GrowCapacityAndConvertImpl(object, new_capacity); in AddImpl()
[all …]
Didentity-map.h66 void Resize(int new_capacity);
Dlist.h198 void Resize(int new_capacity, AllocationPolicy allocator);
Delements.h125 uint32_t new_capacity) = 0;
/external/valgrind/drd/
Ddrd_vc.c36 void DRD_(vc_reserve)(VectorClock* const vc, const unsigned new_capacity);
314 void DRD_(vc_reserve)(VectorClock* const vc, const unsigned new_capacity) in DRD_()
321 if (new_capacity > vc->capacity) in DRD_()
329 vc->vc, new_capacity * sizeof(vc->vc[0])); in DRD_()
331 else if (vc->vc && new_capacity > VC_PREALLOCATED) in DRD_()
334 && new_capacity > VC_PREALLOCATED in DRD_()
337 new_capacity * sizeof(vc->vc[0])); in DRD_()
344 && new_capacity <= VC_PREALLOCATED in DRD_()
347 else if (new_capacity > VC_PREALLOCATED) in DRD_()
350 && new_capacity > VC_PREALLOCATED in DRD_()
[all …]
/external/vixl/src/
Dcode-buffer-vixl.cc164 void CodeBuffer::Grow(size_t new_capacity) { in Grow() argument
166 VIXL_ASSERT(new_capacity > capacity_); in Grow()
169 buffer_ = static_cast<byte*>(realloc(buffer_, new_capacity)); in Grow()
179 mremap(buffer_, capacity_, new_capacity, MREMAP_MAYMOVE)); in Grow()
187 capacity_ = new_capacity; in Grow()
Dcode-buffer-vixl.h153 void Grow(size_t new_capacity);
/external/swiftshader/third_party/subzero/src/
DIceAssembler.cpp117 intptr_t new_capacity = std::min(old_capacity * 2, old_capacity + OneMB); in extendCapacity() local
118 if (new_capacity < old_capacity) { in extendCapacity()
124 uintptr_t new_contents = NewContents(Assemblr, new_capacity); in extendCapacity()
134 Limit = computeLimit(new_contents, new_capacity); in extendCapacity()
137 assert(capacity() == new_capacity); in extendCapacity()
/external/flac/libFLAC/
Dbitwriter.c104 unsigned new_capacity; in bitwriter_grow_() local
111new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WO… in bitwriter_grow_()
116 if(bw->capacity >= new_capacity) in bitwriter_grow_()
120 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT) in bitwriter_grow_()
121new_capacity += FLAC__BITWRITER_DEFAULT_INCREMENT - ((new_capacity - bw->capacity) % FLAC__BITWRIT… in bitwriter_grow_()
123 FLAC__ASSERT(0 == (new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT); in bitwriter_grow_()
124 FLAC__ASSERT(new_capacity > bw->capacity); in bitwriter_grow_()
125 …FLAC__ASSERT(new_capacity >= bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLA… in bitwriter_grow_()
127 new_buffer = safe_realloc_mul_2op_(bw->buffer, sizeof(bwword), /*times*/new_capacity); in bitwriter_grow_()
131 bw->capacity = new_capacity; in bitwriter_grow_()
/external/libchrome/base/
Dpickle.cc379 void Pickle::Resize(size_t new_capacity) { in Resize() argument
381 capacity_after_header_ = bits::Align(new_capacity, kPayloadUnit); in Resize()
460 size_t new_capacity = capacity_after_header_ * 2; in ClaimUninitializedBytesInternal() local
462 if (new_capacity > kPickleHeapAlign) in ClaimUninitializedBytesInternal()
463 new_capacity = bits::Align(new_capacity, kPickleHeapAlign) - kPayloadUnit; in ClaimUninitializedBytesInternal()
464 Resize(std::max(new_capacity, new_size)); in ClaimUninitializedBytesInternal()
Dpickle.h320 void Resize(size_t new_capacity);
/external/protobuf/src/google/protobuf/stubs/
Dbytestream.cc122 size_t new_capacity = std::max(capacity_ + amount, (3 * capacity_) / 2); in Expand() local
123 char* bigger = new char[new_capacity]; in Expand()
127 capacity_ = new_capacity; in Expand()
/external/v8/src/crankshaft/
Dunique.h347 int new_capacity = 2 * capacity_ + size; in Grow() local
348 if (new_capacity > kMaxCapacity) new_capacity = kMaxCapacity; in Grow()
349 Unique<T>* new_array = zone->NewArray<Unique<T> >(new_capacity); in Grow()
353 capacity_ = new_capacity; in Grow()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.h519 uptr new_capacity = RoundUpToPowerOfTwo(size_ + 1); in push_back() local
520 Resize(new_capacity); in push_back()
562 void Resize(uptr new_capacity) { in Resize() argument
563 CHECK_GT(new_capacity, 0); in Resize()
564 CHECK_LE(size_, new_capacity); in Resize()
565 T *new_data = (T *)MmapOrDie(new_capacity * sizeof(T), in Resize()
571 capacity_ = new_capacity; in Resize()
/external/libtextclassifier/util/utf8/
Dunicodetext.cc65 void UnicodeText::Repr::reserve(int new_capacity) { in reserve() argument
67 if (capacity_ >= new_capacity && ours_) return; in reserve()
70 capacity_ = std::max(new_capacity, (3 * capacity_) / 2 + 20); in reserve()
/external/v8/src/heap/
Dspaces.cc1549 size_t new_capacity = in AllocateChunk() local
1552 if (to_space_.GrowTo(new_capacity)) { in AllocateChunk()
1554 if (!from_space_.GrowTo(new_capacity)) { in AllocateChunk()
1569 size_t new_capacity = Max(InitialTotalCapacity(), 2 * Size()); in AllocateChunk() local
1570 size_t rounded_new_capacity = RoundUp(new_capacity, Page::kPageSize); in AllocateChunk()
1972 bool SemiSpace::GrowTo(size_t new_capacity) { in AllocateChunk() argument
1976 DCHECK_EQ(new_capacity & Page::kPageAlignmentMask, 0u); in AllocateChunk()
1977 DCHECK_LE(new_capacity, maximum_capacity_); in AllocateChunk()
1978 DCHECK_GT(new_capacity, current_capacity_); in AllocateChunk()
1979 const size_t delta = new_capacity - current_capacity_; in AllocateChunk()
[all …]
/external/v8/src/builtins/
Dbuiltins-regexp.cc1445 Node* const new_capacity = NewCapacity(a, capacity); in Push() local
1446 Node* const new_array = ResizeFixedArray(length, new_capacity); in Push()
1448 var_capacity_.Bind(new_capacity); in Push()
1523 Node* const new_capacity = a->IntPtrAdd( in NewCapacity() local
1527 return new_capacity; in NewCapacity()
1532 Node* ResizeFixedArray(Node* const element_count, Node* const new_capacity) { in ResizeFixedArray() argument
1536 CSA_ASSERT(a, a->IntPtrGreaterThan(new_capacity, a->IntPtrConstant(0))); in ResizeFixedArray()
1537 CSA_ASSERT(a, a->IntPtrGreaterThanOrEqual(new_capacity, element_count)); in ResizeFixedArray()
1547 a->AllocateFixedArray(kind, new_capacity, mode, flags); in ResizeFixedArray()
1549 new_capacity, barrier_mode, mode); in ResizeFixedArray()
/external/libvpx/libvpx/third_party/libwebm/mkvmuxer/
Dmkvmuxer.cc400 const int32_t new_capacity = in AddCue() local
403 if (new_capacity < 1) in AddCue()
407 new (std::nothrow) CuePoint*[new_capacity]; // NOLINT in AddCue()
418 cue_entries_capacity_ = new_capacity; in AddCue()
3839 const int32_t new_capacity = in MakeNewCluster() local
3842 new (std::nothrow) Cluster*[new_capacity]; // NOLINT in MakeNewCluster()
3853 cluster_list_capacity_ = new_capacity; in MakeNewCluster()
4042 const int32_t new_capacity = (!frames_capacity_) ? 2 : frames_capacity_ * 2; in QueueFrame() local
4044 if (new_capacity < 1) in QueueFrame()
4047 Frame** const frames = new (std::nothrow) Frame*[new_capacity]; // NOLINT in QueueFrame()
[all …]

12