Searched defs:new_capacity (Results 1 - 25 of 25) sorted by relevance

/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dcrazy_linker_line_reader.cpp105 size_t new_capacity = buff_capacity_ * 2; local
107 buff_ = static_cast<char*>(::realloc(old_buff, new_capacity));
111 buff_capacity_ = new_capacity;
H A Dcrazy_linker_util.cpp73 size_t new_capacity = capacity_; local
74 while (new_capacity < new_size) {
75 new_capacity += (new_capacity >> 1) + 16;
77 Reserve(new_capacity);
88 void String::Reserve(size_t new_capacity) { argument
91 ptr_ = reinterpret_cast<char*>(realloc(old_ptr, new_capacity + 1));
92 ptr_[new_capacity] = '\0';
93 capacity_ = new_capacity;
95 if (size_ > new_capacity)
[all...]
H A Dcrazy_linker_util.h112 void Reserve(size_t new_capacity);
186 void Reserve(size_t new_capacity);
236 void Vector<T>::Reserve(size_t new_capacity) { argument
237 items_ = reinterpret_cast<T*>(realloc(items_, new_capacity * sizeof(T)));
238 capacity_ = new_capacity;
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/memfs/
H A Dmem_fs_node.cc99 size_t new_capacity = data_capacity_; local
104 new_capacity = new_size + extra;
107 new_capacity = new_size;
110 if (new_capacity != data_capacity_) {
111 data_ = (char*)realloc(data_, new_capacity);
112 if (new_capacity != 0) {
117 data_capacity_ = new_capacity;
/external/chromium_org/third_party/webrtc/base/
H A Datomicops.h121 void ClearAndResizeUnsafe(int new_capacity) { argument
122 capacity_ = new_capacity;
123 data_.reset(new T[new_capacity]);
/external/chromium_org/native_client_sdk/src/libraries/xray/
H A Dhashtable.c138 int new_capacity = old_capacity * 2; local
141 XRayHashTableInit(table, new_capacity);
/external/chromium_org/net/server/
H A Dhttp_connection.cc41 int new_capacity = GetCapacity() * kCapacityIncreaseFactor; local
42 if (new_capacity > max_buffer_size_)
43 new_capacity = max_buffer_size_;
44 SetCapacity(new_capacity);
80 int new_capacity = GetCapacity() / kCapacityIncreaseFactor; local
81 if (new_capacity < kMinimumBufSize)
82 new_capacity = kMinimumBufSize;
88 SetCapacity(new_capacity);
/external/valgrind/main/drd/
H A Ddrd_vc.c36 void DRD_(vc_reserve)(VectorClock* const vc, const unsigned new_capacity);
311 void DRD_(vc_reserve)(VectorClock* const vc, const unsigned new_capacity) argument
318 if (new_capacity > vc->capacity)
326 vc->vc, new_capacity * sizeof(vc->vc[0]));
328 else if (vc->vc && new_capacity > VC_PREALLOCATED)
331 && new_capacity > VC_PREALLOCATED
334 new_capacity * sizeof(vc->vc[0]));
341 && new_capacity <= VC_PREALLOCATED
344 else if (new_capacity > VC_PREALLOCATED)
347 && new_capacity > VC_PREALLOCATE
[all...]
/external/chromium_org/base/
H A Dpickle.cc308 void Pickle::Resize(size_t new_capacity) { argument
309 new_capacity = AlignInt(new_capacity, kPayloadUnit);
312 void* p = realloc(header_, header_size_ + new_capacity);
315 capacity_after_header_ = new_capacity;
/external/chromium_org/components/cronet/android/
H A Durl_request_adapter.cc208 int new_capacity = read_buffer_->capacity() + kBufferSizeIncrement; local
209 read_buffer_->SetCapacity(new_capacity);
/external/chromium_org/v8/src/
H A Dlist-inl.h56 int new_capacity = 1 + 2 * capacity_; local
60 Resize(new_capacity, alloc);
66 void List<T, P>::Resize(int new_capacity, P alloc) { argument
67 DCHECK_LE(length_, new_capacity);
68 T* new_data = NewData(new_capacity, alloc);
72 capacity_ = new_capacity;
H A Delements.cc911 uint32_t new_capacity = length > min ? length : min; local
913 array, new_capacity, length);
H A Dscanner.h259 int new_capacity = Min(capacity * kGrowthFactory, capacity + kMaxGrowth); local
260 return new_capacity;
H A Dutils.h573 int new_capacity; local
577 new_capacity = min_capacity * growth_factor;
578 if (new_capacity < kMinCapacity) new_capacity = kMinCapacity;
584 new_capacity = current_length + growth;
585 if (new_capacity < min_capacity) {
586 new_capacity = min_capacity + growth;
589 NewChunk(new_capacity);
597 virtual void NewChunk(int new_capacity) { argument
598 Vector<T> new_chunk = Vector<T>::New(new_capacity);
660 NewChunk(int new_capacity) argument
[all...]
H A Disolate.cc386 int new_capacity = JSObject::NewElementsCapacity(elements->length()); local
388 factory()->NewFixedArrayWithHoles(new_capacity);
1662 int new_capacity = static_cast<int>((capacity + 10) * 1.2); local
1663 Object** new_array = new Object*[new_capacity];
1669 set_serialize_partial_snapshot_cache_capacity(new_capacity);
H A Dhydrogen.cc1330 HValue* new_capacity = BuildNewElementsCapacity(key); local
1333 new_capacity);
2735 HValue* new_capacity = AddUncasted<HAdd>(half_old_capacity, old_capacity); local
2736 new_capacity->ClearFlag(HValue::kCanOverflow);
2740 new_capacity = AddUncasted<HAdd>(new_capacity, min_growth);
2741 new_capacity->ClearFlag(HValue::kCanOverflow);
2743 return new_capacity;
2752 HValue* new_capacity) {
2753 Add<HBoundsCheck>(new_capacity, Ad
2747 BuildGrowElementsCapacity(HValue* object, HValue* elements, ElementsKind kind, ElementsKind new_kind, HValue* length, HValue* new_capacity) argument
[all...]
H A Dobjects.cc11959 uint32_t new_capacity = capacity; local
11990 new_capacity = NewElementsCapacity(index + 1);
11991 DCHECK(new_capacity > index);
11992 if (!object->ShouldConvertToSlowElements(new_capacity)) {
12011 SetFastDoubleElementsCapacityAndLength(object, new_capacity, array_length);
12028 if (new_capacity != capacity) {
12034 SetFastElementsCapacityAndLength(object, new_capacity, array_length,
12265 int new_capacity = NewElementsCapacity(index+1); local
12266 if (!object->ShouldConvertToSlowElements(new_capacity)) {
12267 DCHECK(static_cast<uint32_t>(new_capacity) > inde
12953 ShouldConvertToSlowElements(int new_capacity) argument
15472 Rehash( Handle<Derived> table, int new_capacity) argument
[all...]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/utf/
H A Dunicodetext.cc108 void UnicodeText::Repr::reserve(int new_capacity) { argument
110 if (capacity_ >= new_capacity && ours_) return;
113 capacity_ = max(new_capacity, (3 * capacity_) / 2 + 20);
/external/flac/libFLAC/
H A Dbitwriter.c122 unsigned new_capacity; local
129 new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WORD);
134 if(bw->capacity >= new_capacity)
138 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT)
139 new_capacity += FLAC__BITWRITER_DEFAULT_INCREMENT - ((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT);
141 FLAC__ASSERT(0 == (new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT);
142 FLAC__ASSERT(new_capacity > bw->capacity);
143 FLAC__ASSERT(new_capacity >= bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WORD));
145 new_buffer = (bwword*)safe_realloc_mul_2op_(bw->buffer, sizeof(bwword), /*times*/new_capacity);
[all...]
/external/qemu/distrib/mini-glib/src/
H A Dglib-mini.c566 guint new_capacity = HASH_MIN_CAPACITY; local
567 while (new_capacity < new_size)
568 new_capacity <<= 1;
570 GHashEntry* new_entries = g_new0(GHashEntry, new_capacity);
579 guint probe_mask = (new_capacity - 1);
593 hash_table->capacity = new_capacity;
/external/protobuf/gtest/src/
H A Dgtest-internal-inl.h451 void Reserve(int new_capacity) { argument
452 if (new_capacity <= capacity_)
455 capacity_ = new_capacity;
468 const int new_capacity = 3*(capacity_/2 + 1); local
469 GTEST_CHECK_(new_capacity > capacity_) // Does the new capacity overflow?
471 Reserve(new_capacity);
/external/chromium_org/third_party/libvpx/source/libvpx/third_party/libwebm/
H A Dmkvmuxer.cpp267 const int32 new_capacity = local
270 if (new_capacity < 1)
274 new (std::nothrow) CuePoint* [new_capacity]; // NOLINT
285 cue_entries_capacity_ = new_capacity;
2740 const int32 new_capacity = local
2743 new (std::nothrow) Cluster* [new_capacity]; // NOLINT
2754 cluster_list_capacity_ = new_capacity;
2930 const int32 new_capacity = (!frames_capacity_) ? 2 : frames_capacity_ * 2; local
2932 if (new_capacity < 1)
2935 Frame** const frames = new (std::nothrow) Frame* [new_capacity]; // NOLIN
[all...]
/external/chromium_org/v8/src/heap/
H A Dspaces.cc1263 int new_capacity = local
1265 if (to_space_.GrowTo(new_capacity)) {
1267 if (!from_space_.GrowTo(new_capacity)) {
1282 int new_capacity = Max(InitialTotalCapacity(), 2 * SizeAsInt()); local
1283 int rounded_new_capacity = RoundUp(new_capacity, Page::kPageSize);
1537 bool SemiSpace::GrowTo(int new_capacity) { argument
1541 DCHECK((new_capacity & Page::kPageAlignmentMask) == 0);
1542 DCHECK(new_capacity <= maximum_total_capacity_);
1543 DCHECK(new_capacity > total_capacity_);
1545 int pages_after = new_capacity / Pag
1572 ShrinkTo(int new_capacity) argument
1656 SetCapacity(int new_capacity) argument
[all...]
/external/chromium_org/v8/test/cctest/
H A Dtest-heap.cc1714 intptr_t old_capacity, new_capacity; local
1717 new_capacity = new_space->TotalCapacity();
1718 CHECK(2 * old_capacity == new_capacity);
1722 new_capacity = new_space->TotalCapacity();
1723 CHECK(old_capacity == new_capacity);
1728 new_capacity = new_space->TotalCapacity();
1729 CHECK(old_capacity == new_capacity);
1738 new_capacity = new_space->TotalCapacity();
1739 CHECK(old_capacity == 2 * new_capacity);
1746 new_capacity
1764 intptr_t old_capacity, new_capacity; local
[all...]
/external/libvpx/libvpx/third_party/libwebm/
H A Dmkvmuxer.cpp274 const int32 new_capacity = local
277 if (new_capacity < 1)
281 new (std::nothrow) CuePoint*[new_capacity]; // NOLINT
292 cue_entries_capacity_ = new_capacity;
2900 const int32 new_capacity = local
2903 new (std::nothrow) Cluster*[new_capacity]; // NOLINT
2914 cluster_list_capacity_ = new_capacity;
3091 const int32 new_capacity = (!frames_capacity_) ? 2 : frames_capacity_ * 2; local
3093 if (new_capacity < 1)
3096 Frame** const frames = new (std::nothrow) Frame*[new_capacity]; // NOLIN
[all...]

Completed in 690 milliseconds