Home
last modified time | relevance | path

Searched refs:limit_ (Results 1 – 25 of 47) sorted by relevance

12

/third_party/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl_lite.cc383 : input_(input), limit_(limit) { in LimitingInputStream()
389 if (limit_ < 0) input_->BackUp(-limit_); in ~LimitingInputStream()
393 if (limit_ <= 0) return false; in Next()
396 limit_ -= *size; in Next()
397 if (limit_ < 0) { in Next()
399 *size += limit_; in Next()
405 if (limit_ < 0) { in BackUp()
406 input_->BackUp(count - limit_); in BackUp()
407 limit_ = count; in BackUp()
410 limit_ += count; in BackUp()
[all …]
/third_party/node/deps/v8/src/heap/
Dlinear-allocation-area.h24 : start_(top), top_(top), limit_(limit) { in LinearAllocationArea()
31 limit_ = limit; in Reset()
39 return (top_ + bytes) <= limit_; in CanIncrementTop()
65 if (top_ == other.limit_) { in MergeIfAdjacent()
76 limit_ = limit; in SetLimit()
90 return limit_; in limit()
94 const Address* limit_address() const { return &limit_; } in limit_address()
95 Address* limit_address() { return &limit_; } in limit_address()
100 SLOW_DCHECK(top_ <= limit_); in Verify()
115 Address limit_ = kNullAddress; variable
Dread-only-spaces.cc292 limit_(kNullAddress), in ReadOnlySpace()
514 bool allocation_pointer_found_in_space = top_ == limit_; in Verify()
600 DCHECK_EQ(kNullAddress, limit_); in FreeLinearAllocationArea()
607 page->AddressToMarkbitIndex(top_), page->AddressToMarkbitIndex(limit_)); in FreeLinearAllocationArea()
609 heap()->CreateFillerObjectAt(top_, static_cast<int>(limit_ - top_), in FreeLinearAllocationArea()
615 limit_ = kNullAddress; in FreeLinearAllocationArea()
619 if (top_ + size_in_bytes <= limit_) { in EnsureSpaceForAllocation()
641 limit_ = chunk->area_end(); in EnsureSpaceForAllocation()
651 if (new_top > limit_) return HeapObject(); in TryAllocateLinearlyAligned()
694 DCHECK_LE(new_top, limit_); in AllocateRawUnaligned()
[all …]
Dnew-spaces-inl.h68 while (current_ != limit_) { in Next()
74 if (current_ == limit_) return HeapObject(); in Next()
Dread-only-spaces.h220 Address limit() const { return limit_; } in limit()
251 Address limit_; variable
/third_party/node/deps/v8/src/zone/
Dzone.cc55 DCHECK_LE(position_, limit_); in AsanNew()
56 if (size_with_redzone > limit_ - position_) { in AsanNew()
93 limit_ = keep->end(); in Reset()
117 position_ = limit_ = 0; in DeleteAll()
135 DCHECK_LT(limit_ - position_, size); in NewExpand()
187 limit_ = segment->end(); in NewExpand()
188 DCHECK(position_ <= limit_); in NewExpand()
201 limit_(zone->limit_), in ZoneScope()
227 zone_->limit_ = limit_; in ~ZoneScope()
Dzone.h68 if (V8_UNLIKELY(size > limit_ - position_)) { in Allocate()
218 Address limit_ = 0; variable
256 const Address limit_; variable
/third_party/protobuf/src/google/protobuf/stubs/
Dbytestream.cc163 limit_(limit) { in LimitByteSource()
168 if (available > limit_) { in Available()
169 available = limit_; in Available()
177 if (piece.size() > limit_) { in Peek()
178 piece.set(piece.data(), limit_); in Peek()
185 GOOGLE_DCHECK_LE(n, limit_); in Skip()
187 limit_ -= n; in Skip()
191 GOOGLE_DCHECK_LE(n, limit_); in CopyTo()
193 limit_ -= n; in CopyTo()
/third_party/node/deps/v8/src/wasm/
Dstacks.h50 if (owned_) allocator->DecommitPages(limit_, size_); in ~StackMemory()
59 void* jslimit() const { return limit_ + kJSLimitOffsetKB; } in jslimit()
60 Address base() const { return reinterpret_cast<Address>(limit_ + size_); } in base()
78 return limit_ < sp && sp <= limit_ + size_; in IsActive()
96 limit_ = static_cast<byte*>( in StackMemory()
107 limit_(limit), in StackMemory()
114 byte* limit_; variable
/third_party/nghttp2/src/
Dlibevent_util.cc40 limit_(0), in EvbufferBuffer()
50 limit_(limit), in EvbufferBuffer()
62 limit_ = limit; in reset()
76 auto nwrite = std::min(end - pos, limit_); in write_buffer()
93 if (limit_ == -1) { in flush()
111 if (limit_ == -1) { in add()
123 if (limit_ == -1) { in add()
Dlibevent_util.h61 ssize_t limit_; variable
/third_party/node/deps/v8/src/heap/cppgc/
Dgc-info-table.cc92 const GCInfoIndex new_limit = (limit_) ? 2 * limit_ : InitialTableLimit(); in Resize()
93 CHECK_GT(new_limit, limit_); in Resize()
94 const size_t old_committed_size = limit_ * kEntrySize; in Resize()
118 limit_ = new_limit; in Resize()
142 if (current_index_ == limit_) { in RegisterNewGCInfo()
Dgc-info-table.h68 GCInfoIndex LimitForTesting() const { return limit_; } in LimitForTesting()
89 GCInfoIndex limit_ = 0; variable
/third_party/protobuf/src/google/protobuf/
Dparse_context.cc163 if (PROTOBUF_PREDICT_FALSE(overrun > limit_)) return {nullptr, true}; in DoneFallback()
164 GOOGLE_DCHECK(overrun != limit_); // Guaranteed by caller. in DoneFallback()
165 GOOGLE_DCHECK(overrun < limit_); // Follows from above in DoneFallback()
170 GOOGLE_DCHECK(limit_end_ == buffer_end_ + (std::min)(0, limit_)); in DoneFallback()
172 GOOGLE_DCHECK(limit_ > 0); in DoneFallback()
181 GOOGLE_DCHECK(limit_ > 0); in DoneFallback()
187 limit_ -= buffer_end_ - p; // Adjust limit_ relative to new anchor in DoneFallback()
191 limit_end_ = buffer_end_ + std::min(0, limit_); in DoneFallback()
202 if (PROTOBUF_PREDICT_TRUE(size <= buffer_end_ - ptr + limit_)) { in ReadStringFallback()
214 if (PROTOBUF_PREDICT_TRUE(size <= buffer_end_ - ptr + limit_)) { in AppendStringFallback()
[all …]
Dparse_context.h133 auto old_limit = limit_; in PushLimit()
134 limit_ = limit; in PushLimit()
140 limit_ = limit_ + delta; in PopLimit()
143 limit_end_ = buffer_end_ + (std::min)(0, limit_); in PopLimit()
195 (next_chunk_ == nullptr || ptr - buffer_end_ > limit_); in IsExceedingLimit()
198 return limit_ + static_cast<int>(buffer_end_ - ptr); in BytesUntilLimit()
212 if ((*ptr - buffer_end_) == limit_) return true; in DoneWithCheck()
221 limit_ = kSlopBytes; in InitFrom()
228 limit_ = 0; in InitFrom()
245 limit_ = limit - static_cast<int>(buffer_end_ - res); in InitFrom()
[all …]
Darena_impl.h181 bool HasSpace(size_t n) { return n <= static_cast<size_t>(limit_ - ptr_); } in HasSpace()
185 GOOGLE_DCHECK_GE(limit_, ptr_); in AllocateAligned()
200 GOOGLE_DCHECK_GE(limit_, ptr_); in MaybeAllocateAligned()
246 char* limit_; variable
Darena.cc195 head_->set_pos(head_->size() - (limit_ - ptr_)); in AllocateAlignedFallback()
199 limit_ = head_->Pointer(head_->size()); in AllocateAlignedFallback()
202 ASAN_POISON_MEMORY_REGION(ptr_, limit_ - ptr_); in AllocateAlignedFallback()
327 serial->limit_ = b->Pointer(b->size()); in New()
/third_party/vixl/src/
Dcode-generation-scopes-vixl.h96 limit_ = assembler_->GetSizeOfCodeGenerated() + size;
118 VIXL_ASSERT(assembler_->GetSizeOfCodeGenerated() == limit_); in Close()
121 VIXL_ASSERT(assembler_->GetSizeOfCodeGenerated() <= limit_); in Close()
133 size_t limit_; variable
/third_party/node/deps/v8/src/regexp/
Dregexp-stack.cc56 limit_ = reinterpret_cast<Address>(regexp_stack->static_stack_) + in ResetToStaticStack()
70 limit_ = kMemoryTop; in FreeAndInvalidate()
89 thread_local_.limit_ = reinterpret_cast<Address>(new_memory) + in EnsureCapacity()
Dregexp-stack.h65 Address* limit_address_address() { return &thread_local_.limit_; } in limit_address_address()
117 Address limit_ = kNullAddress; member
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstr_split.h262 : delimiter_(delimiter), limit_(limit), count_(0) {}
264 if (count_++ == limit_) {
273 const int limit_;
/third_party/protobuf/benchmarks/cpp/
Dcpp_benchmark.cc79 WrappingCounter(size_t limit) : value_(0), limit_(limit) {} in WrappingCounter()
83 if (++value_ == limit_) { in Next()
91 size_t limit_; member in WrappingCounter
/third_party/node/deps/v8/tools/debug_helper/
Dget-object-properties.cc259 for (; index_ < length && index_ < limit_ && !done_; ++index_) { in ReadStringCharacters()
303 int32_t limit_adjust = offset + length - limit_; in VisitSlicedString()
392 limit_(INT32_MAX), in ReadStringVisitor()
435 that_->limit_ += limit_adjust_; in IndexModifier()
441 that_->limit_ -= limit_adjust_; in ~IndexModifier()
456 int32_t limit_; // Don't read past this index (set by SlicedString). member in v8::internal::debug_helper_internal::ReadStringVisitor
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DStringSearch.java985 int limit_ = -1; field in StringSearch.Match
1227 m.limit_ = mLimit; in search()
1486 m.limit_ = mLimit; in searchBackwards()
1511 search_.setMatchedLength(match.limit_ - match.start_); in handleNextCommonImpl()
1561 search_.setMatchedLength(match.limit_ - match.start_); in handlePreviousCommonImpl()
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DStringSearch.java1001 int limit_ = -1; field in StringSearch.Match
1243 m.limit_ = mLimit; in search()
1502 m.limit_ = mLimit; in searchBackwards()
1527 search_.setMatchedLength(match.limit_ - match.start_); in handleNextCommonImpl()
1577 search_.setMatchedLength(match.limit_ - match.start_); in handlePreviousCommonImpl()

12