/external/v8/src/ |
D | identity-map.cc | 31 capacity_ = 0; in Clear() 46 if (size_ * kResizeFactor < capacity_ / kResizeFactor) { in DisableIteration() 47 Resize(capacity_ / kResizeFactor); in DisableIteration() 54 for (int index = start; index < capacity_; index++) { in ScanKeysFor() 69 int limit = capacity_ / 2; in InsertKey() 79 Resize(capacity_ * kResizeFactor); in InsertKey() 94 if (!is_iterable() && (size_ * kResizeFactor < capacity_ / kResizeFactor)) { in DeleteIndex() 95 Resize(capacity_ / kResizeFactor); in DeleteIndex() 141 DCHECK_LE(size_, capacity_); in LookupOrInsert() 159 if (capacity_ == 0) { in GetEntry() [all …]
|
D | list-inl.h | 20 if (length_ < capacity_) { in Add() 37 if (capacity_ < result_length) Resize(result_length, alloc); in AddAll() 57 DCHECK(length_ >= capacity_); in ResizeAddInternal() 60 int new_capacity = 1 + 2 * capacity_; in ResizeAddInternal() 76 capacity_ = new_capacity; in Resize() 133 std::swap(capacity_, list->capacity_); in Swap() 150 capacity_ = 0; in Clear() 164 if (length_ < capacity_ / 4) { in Trim() 165 Resize(capacity_ / 2, alloc); in Trim()
|
D | string-stream.h | 110 capacity_(kInitialCapacity), in allocator_() 172 unsigned capacity_; variable 176 bool full() const { return (capacity_ - length_) == 1; } in full() 177 int space() const { return capacity_ - length_; } in space()
|
D | string-stream.cc | 39 DCHECK(length_ < capacity_); in Put() 43 if (length_ == capacity_ - 2) { in Put() 44 unsigned new_capacity = capacity_; in Put() 46 if (new_capacity > capacity_) { in Put() 47 capacity_ = new_capacity; in Put() 51 DCHECK(capacity_ >= 5); in Put() 52 length_ = capacity_ - 1; // Indicate fullness of the stream. in Put()
|
D | identity-map.h | 23 int capacity() const { return capacity_; } in capacity() 37 capacity_(0), in IdentityMapBase() 73 int capacity_; variable
|
/external/v8/src/compiler/ |
D | value-numbering-reducer.cc | 54 capacity_(0), in ValueNumberingReducer() 68 DCHECK(capacity_ == 0); in Reduce() 70 capacity_ = kInitialCapacity; in Reduce() 78 DCHECK(size_ < capacity_); in Reduce() 79 DCHECK(size_ + size_ / 4 < capacity_); in Reduce() 81 const size_t mask = capacity_ - 1; in Reduce() 82 size_t dead = capacity_; in Reduce() 87 if (dead != capacity_) { in Reduce() 96 if (size_ + size_ / 4 >= capacity_) Grow(); in Reduce() 98 DCHECK(size_ + size_ / 4 < capacity_); in Reduce() [all …]
|
/external/protobuf/src/google/protobuf/stubs/ |
D | bytestream.cc | 67 : outbuf_(outbuf), capacity_(capacity), size_(0), overflowed_(false) { in CheckedArrayByteSink() 71 size_t available = capacity_ - size_; in Append() 78 GOOGLE_DCHECK(!(outbuf_ <= bytes && bytes < (outbuf_ + capacity_))) in Append() 86 : capacity_(estimated_size), in GrowingArrayByteSink() 96 size_t available = capacity_ - size_; in Append() 100 GOOGLE_DCHECK(!(buf_ <= bytes && bytes < (buf_ + capacity_))) in Append() 117 size_ = capacity_ = 0; in GetBuffer() 122 size_t new_capacity = std::max(capacity_ + amount, (3 * capacity_) / 2); in Expand() 127 capacity_ = new_capacity; in Expand() 133 if (capacity_ > 256 && size_ < (3 * capacity_) / 4) { in ShrinkToFit() [all …]
|
/external/vixl/src/ |
D | code-buffer-vixl.cc | 48 capacity_(capacity) { in CodeBuffer() 49 if (capacity_ == 0) { in CodeBuffer() 53 buffer_ = reinterpret_cast<byte*>(malloc(capacity_)); in CodeBuffer() 78 capacity_(capacity) { in CodeBuffer() 89 munmap(buffer_, capacity_); in ~CodeBuffer() 99 int ret = mprotect(buffer_, capacity_, PROT_READ | PROT_EXEC); in SetExecutable() 107 int ret = mprotect(buffer_, capacity_, PROT_READ | PROT_WRITE); in SetWritable() 153 memset(buffer_, 0, capacity_); in Reset() 163 VIXL_ASSERT(new_capacity > capacity_); in Grow() 176 mremap(buffer_, capacity_, new_capacity, MREMAP_MAYMOVE)); in Grow() [all …]
|
D | code-buffer-vixl.h | 98 VIXL_ASSERT((cursor_ >= buffer_) && (cursor_ <= (buffer_ + capacity_))); in GetRemainingBytes() 99 return (buffer_ + capacity_) - cursor_; in GetRemainingBytes() 106 VIXL_ASSERT((cursor_ >= buffer_) && (cursor_ <= (buffer_ + capacity_))); in GetSizeInBytes() 141 size_t GetCapacity() const { return capacity_; } in GetCapacity() 160 if (is_full) Grow(capacity_ * 2 + amount); in EnsureSpaceFor() 181 size_t capacity_; variable
|
/external/webrtc/webrtc/base/ |
D | buffer.h | 96 return capacity_; in capacity() 108 capacity_ = buf.capacity_; 165 if (capacity <= capacity_) in EnsureCapacity() 170 capacity_ = capacity; in EnsureCapacity() 187 capacity_ = 0; in Clear() 195 swap(a.capacity_, b.capacity_); in swap() 205 return (data_ || capacity_ == 0) && capacity_ >= size_; in IsConsistent() 215 capacity_ = 0; in OnMovedFrom() 219 capacity_ = 0; in OnMovedFrom() 224 size_t capacity_; variable
|
D | cryptstring.h | 75 capacity_ = 32; in FormatCryptString() 109 if (capacity_ >= n) { in EnsureStorage() 113 size_t old_capacity = capacity_; in EnsureStorage() 117 capacity_ *= 2; in EnsureStorage() 118 if (capacity_ >= n) in EnsureStorage() 122 storage_ = new char[capacity_]; in EnsureStorage() 137 if (capacity_) { in ~FormatCryptString() 139 for (size_t i = 1; i < capacity_; i++) { in ~FormatCryptString() 147 size_t capacity_; variable
|
D | buffer.cc | 18 Buffer::Buffer() : size_(0), capacity_(0), data_(nullptr) { in Buffer() 27 capacity_(buf.capacity()), in Buffer() 38 capacity_(std::max(size, capacity)), in Buffer() 39 data_(new uint8_t[capacity_]) { in Buffer()
|
D | bufferqueue.cc | 16 : capacity_(capacity), default_size_(default_size) { in BufferQueue() 41 bool was_writable = queue_.size() < capacity_; in ReadFront() 60 if (queue_.size() == capacity_) { in WriteBack()
|
/external/v8/src/base/ |
D | hashmap.h | 83 capacity_ = 0; in Invalidate() 92 uint32_t capacity() const { return capacity_; } in capacity() 106 Initialize(capacity_, allocator); in Reset() 115 uint32_t capacity_; variable 121 Entry* map_end() const { return map_ + capacity_; } in map_end() 145 : capacity_(original->capacity_), in TemplateHashMapImpl() 148 map_ = reinterpret_cast<Entry*>(allocator.New(capacity_ * sizeof(Entry))); in TemplateHashMapImpl() 149 memcpy(map_, original->map_, capacity_ * sizeof(Entry)); in TemplateHashMapImpl() 227 DCHECK(occupancy_ < capacity_); in Remove() 246 Entry* r = map_ + (q->hash & (capacity_ - 1)); in Remove() [all …]
|
/external/webrtc/webrtc/modules/video_coding/ |
D | timestamp_map.cc | 21 capacity_(capacity), in VCMTimestampMap() 30 next_add_idx_ = (next_add_idx_ + 1) % capacity_; in Add() 34 next_pop_idx_ = (next_pop_idx_ + 1) % capacity_; in Add() 44 next_pop_idx_ = (next_pop_idx_ + 1) % capacity_; in Pop() 53 next_pop_idx_ = (next_pop_idx_ + 1) % capacity_; in Pop()
|
/external/libtextclassifier/util/utf8/ |
D | unicodetext.cc | 31 capacity_ = size; in PointTo() 44 if (!ours_ || new_size > capacity_) reserve(new_size); in resize() 54 if (capacity_ >= new_capacity && ours_) return; in reserve() 57 capacity_ = std::max(new_capacity, (3 * capacity_) / 2 + 20); in reserve() 58 char* new_data = new char[capacity_]; in reserve() 79 size_ = capacity_ = 0; in clear()
|
/external/icu/icu4c/source/i18n/ |
D | collationkeys.h | 35 : buffer_(dest), capacity_(destCapacity), in SortKeyByteSink() 46 if (appended_ < capacity_ || Resize(1, appended_)) { in Append() 64 return ignore_ + capacity_ - appended_; in GetRemainingCapacity() 67 UBool Overflowed() const { return appended_ > capacity_; } in Overflowed() 77 capacity_ = 0; in SetNotOk() 81 int32_t capacity_; variable
|
/external/v8/src/zone/ |
D | zone-chunk-list.h | 106 uint32_t capacity_ = 0; member 116 chunk->capacity_ = capacity; in NewChunk() 156 if (position_ >= current_->capacity_) { in MoveNext() 165 position_ = current_ ? current_->capacity_ - 1 : 0; in MoveRNext() 217 DCHECK_LE(list->back_->position_, list->back_->capacity_); in End() 218 if (list->back_->position_ == list->back_->capacity_) { in End() 267 list->back_->previous_, list->back_->previous_->capacity_ - 1); in Begin() 309 DCHECK_LE(back_->position_, back_->capacity_); in push_back() 310 if (back_->position_ == back_->capacity_) { in push_back() 312 Chunk* chunk = NewChunk(Min(back_->capacity_ << 1, kMaxChunkCapacity)); in push_back() [all …]
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | audio_vector.cc | 24 capacity_(kDefaultInitialSize) { in AudioVector() 30 capacity_(initial_size) { in AudioVector() 43 assert(copy_to->capacity_ >= Size()); in CopyTo() 115 position = std::min(capacity_, position); in InsertZerosAt() 182 if (capacity_ < n) { in Reserve() 186 capacity_ = n; in Reserve()
|
/external/icu/icu4c/source/common/ |
D | bytestream.cpp | 32 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity), in CheckedArrayByteSink() 49 int32_t available = capacity_ - size_; in Append() 69 int32_t available = capacity_ - size_; in GetAppendBuffer()
|
/external/v8/src/crankshaft/ |
D | unique.h | 150 UniqueSet() : size_(0), capacity_(0), array_(NULL) { } in UniqueSet() 154 : size_(0), capacity_(capacity), in UniqueSet() 161 : size_(1), capacity_(1), array_(zone->NewArray<Unique<T> >(1)) { in UniqueSet() 340 uint16_t capacity_; variable 346 if (capacity_ < size) { in Grow() 347 int new_capacity = 2 * capacity_ + size; in Grow() 353 capacity_ = new_capacity; in Grow()
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
D | bwe.h | 73 explicit LinkedSet(int capacity) : capacity_(capacity) {} in LinkedSet() 92 size_t capacity() const { return capacity_; } in capacity() 106 size_t capacity_; variable
|
/external/v8/src/heap/ |
D | spaces.h | 1264 return capacity_ < size ? 0 : capacity_ - size; in Available() 1371 size_t capacity_; variable 1572 capacity_ = 0; in Clear() 1577 void ClearSize() { size_ = capacity_; } in ClearSize() 1580 size_t Capacity() { return capacity_; } in Capacity() 1589 DCHECK_GE(capacity_ + bytes, capacity_); in ExpandSpace() 1590 capacity_ += bytes; in ExpandSpace() 1592 if (capacity_ > max_capacity_) { in ExpandSpace() 1593 max_capacity_ = capacity_; in ExpandSpace() 1601 DCHECK_GE(capacity_, bytes); in ShrinkSpace() [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common.h | 501 capacity_ = Max(initial_capacity, (uptr)1); in Initialize() 503 data_ = (T *)MmapOrDie(capacity_ * sizeof(T), "InternalMmapVectorNoCtor"); in Initialize() 506 UnmapOrDie(data_, capacity_ * sizeof(T)); in Destroy() 517 CHECK_LE(size_, capacity_); in push_back() 518 if (size_ == capacity_) { in push_back() 542 return capacity_; in capacity() 570 UnmapOrDie(old_data, capacity_ * sizeof(T)); in Resize() 571 capacity_ = new_capacity; in Resize() 575 uptr capacity_; variable
|
/external/fmtlib/fmt/ |
D | string.h | 32 this->capacity_ = size; in grow() 43 this->capacity_ = this->size_ = 0; in move_to()
|