Home
last modified time | relevance | path

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

/third_party/node/deps/v8/src/sandbox/
Dexternal-pointer-table.cc66 uint32_t old_capacity = capacity_; in Grow() local
67 uint32_t new_capacity = old_capacity + kEntriesPerBlock; in Grow()
73 CHECK(root_space->SetPagePermissions(buffer_ + old_capacity * sizeof(Address), in Grow()
79 uint32_t start = std::max<uint32_t>(old_capacity, 1); // Skip entry zero in Grow()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceAssembler.cpp115 intptr_t old_capacity = capacity(); in extendCapacity() local
117 intptr_t new_capacity = std::min(old_capacity * 2, old_capacity + OneMB); in extendCapacity()
118 if (new_capacity < old_capacity) { in extendCapacity()
/third_party/node/test/cctest/
Dtest_util.cc140 size_t old_capacity; in MaybeStackBufferBasic() local
172 old_capacity = buf.capacity(); in MaybeStackBufferBasic()
192 old_capacity = buf.capacity(); in MaybeStackBufferBasic()
193 buf.AllocateSufficientStorage(old_capacity * 1.5); in MaybeStackBufferBasic()
195 EXPECT_EQ(static_cast<size_t>(old_capacity * 1.5), buf.length()); in MaybeStackBufferBasic()
/third_party/node/deps/v8/src/utils/
Didentity-map.cc300 int old_capacity = capacity_; in Resize() local
315 for (int i = 0; i < old_capacity; i++) { in Resize()
328 DeletePointerArray(reinterpret_cast<uintptr_t*>(old_keys), old_capacity); in Resize()
329 DeletePointerArray(old_values, old_capacity); in Resize()
/third_party/node/deps/v8/src/compiler/
Dvalue-numbering-reducer.cc154 size_t const old_capacity = capacity_; in Grow() local
162 for (size_t i = 0; i < old_capacity; ++i) { in Grow()
/third_party/node/deps/v8/src/wasm/
Dwasm-objects.cc276 int old_capacity = table->entries().length(); in Grow() local
277 if (new_size > static_cast<uint32_t>(old_capacity)) { in Grow()
278 int grow = static_cast<int>(new_size) - old_capacity; in Grow()
280 grow = std::max(grow, old_capacity); in Grow()
282 grow = std::min(grow, static_cast<int>(max_size - old_capacity)); in Grow()
761 uint32_t old_capacity = old_refs->length(); in Resize() local
763 if (new_size <= old_capacity) return; in Resize()
764 uint32_t new_capacity = std::max(2 * old_capacity, new_size); in Resize()
771 old_refs, static_cast<int>(new_capacity - old_capacity)); in Resize()
773 for (uint32_t i = old_capacity; i < new_capacity; ++i) { in Resize()
/third_party/json/include/nlohmann/
Djson.hpp743 reference set_parent(reference j, std::size_t old_capacity = static_cast<std::size_t>(-1)) in set_parent() argument
746 if (old_capacity != static_cast<std::size_t>(-1)) in set_parent()
750 if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity)) in set_parent()
776 static_cast<void>(old_capacity); in set_parent()
2067 const auto old_capacity = m_value.array->capacity(); in operator []() local
2072 if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity)) in operator []()
3097 const auto old_capacity = m_value.array->capacity(); in push_back() local
3099 set_parent(m_value.array->back(), old_capacity); in push_back()
3130 const auto old_capacity = m_value.array->capacity(); in push_back() local
3132 set_parent(m_value.array->back(), old_capacity); in push_back()
[all …]
/third_party/node/deps/v8/src/base/
Dhashmap.h414 uint32_t old_capacity = capacity(); in Resize() local
431 impl_.allocator().DeleteArray(old_map, old_capacity); in Resize()
/third_party/node/deps/v8/src/objects/
Djs-objects.h578 static uint32_t NewElementsCapacity(uint32_t old_capacity) { in NewElementsCapacity() argument
580 return old_capacity + (old_capacity >> 1) + kMinAddedElementsCapacity; in NewElementsCapacity()
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Draw_hash_set.h1657 const size_t old_capacity = capacity_;
1662 for (size_t i = 0; i != old_capacity; ++i) {
1673 if (old_capacity) {
1675 sizeof(slot_type) * old_capacity);
1678 AllocSize(old_capacity, sizeof(slot_type), alignof(slot_type)));
/third_party/protobuf/src/google/protobuf/
Dextension_set_unittest.cc821 const size_t old_capacity = \ in TEST()
824 EXPECT_GE(old_capacity, kRepeatedFieldLowerClampLimit); \ in TEST()
833 old_capacity) + \ in TEST()
/third_party/node/deps/v8/src/asmjs/
Dasm-parser.cc205 size_t old_capacity = var_info.size(); in GetVarInfo() local
209 if (index + 1 > old_capacity) { in GetVarInfo()
210 size_t new_size = std::max(2 * old_capacity, index + 1); in GetVarInfo()
/third_party/json/tests/abi/include/nlohmann/
Djson_v3_10_5.hpp17911 reference set_parent(reference j, std::size_t old_capacity = static_cast<std::size_t>(-1)) in set_parent() argument
17914 if (old_capacity != static_cast<std::size_t>(-1)) in set_parent()
17918 if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity)) in set_parent()
17944 static_cast<void>(old_capacity); in set_parent()
19201 const auto old_capacity = m_value.array->capacity(); in operator []() local
19206 if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity)) in operator []()
20003 const auto old_capacity = m_value.array->capacity(); in push_back() local
20005 set_parent(m_value.array->back(), old_capacity); in push_back()
20036 const auto old_capacity = m_value.array->capacity(); in push_back() local
20038 set_parent(m_value.array->back(), old_capacity); in push_back()
[all …]
/third_party/json/single_include/nlohmann/
Djson.hpp19921 reference set_parent(reference j, std::size_t old_capacity = static_cast<std::size_t>(-1)) in set_parent() argument
19924 if (old_capacity != static_cast<std::size_t>(-1)) in set_parent()
19928 if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity)) in set_parent()
19954 static_cast<void>(old_capacity); in set_parent()
21245 const auto old_capacity = m_value.array->capacity(); in operator []() local
21250 if (JSON_HEDLEY_UNLIKELY(m_value.array->capacity() != old_capacity)) in operator []()
22275 const auto old_capacity = m_value.array->capacity(); in push_back() local
22277 set_parent(m_value.array->back(), old_capacity); in push_back()
22308 const auto old_capacity = m_value.array->capacity(); in push_back() local
22310 set_parent(m_value.array->back(), old_capacity); in push_back()
[all …]
/third_party/node/deps/v8/src/heap/
Dfactory.cc2097 int old_capacity = src->capacity(); in CopyWeakArrayListAndGrow() local
2098 int new_capacity = old_capacity + grow_by; in CopyWeakArrayListAndGrow()
2099 DCHECK_GE(new_capacity, old_capacity); in CopyWeakArrayListAndGrow()
/third_party/node/deps/v8/src/codegen/
Dcode-stub-assembler.cc5288 TNode<TIndex> old_capacity) { in CalculateNewElementsCapacity() argument
5293 TNode<TIndex> half_old_capacity = WordOrSmiShr(old_capacity, 1); in CalculateNewElementsCapacity()
5294 TNode<TIndex> new_capacity = IntPtrOrSmiAdd(half_old_capacity, old_capacity); in CalculateNewElementsCapacity()
Dcode-stub-assembler.h2353 TNode<TIndex> CalculateNewElementsCapacity(TNode<TIndex> old_capacity);
/third_party/rust/crates/memchr/bench/data/code/
Drust-library.rs40765 unsafe fn handle_capacity_increase(&mut self, old_capacity: usize) {
40785 } else if self.head < old_capacity - self.tail {
40788 self.copy_nonoverlapping(old_capacity, 0, self.head);
40790 self.head += old_capacity;
40794 let new_tail = new_capacity - (old_capacity - self.tail);
40796 self.copy_nonoverlapping(new_tail, self.tail, old_capacity - self.tail);