Lines Matching defs:length
74 // Forward declare the non-atomic (set_)length defined in torque.
75 using TorqueGeneratedFixedArrayBase::length;
77 DECL_RELEASE_ACQUIRE_INT_ACCESSORS(length)
111 // Return a grown copy if the index is bigger than the array's length.
144 DCHECK_LT(static_cast<unsigned>(index), static_cast<unsigned>(length()));
192 static constexpr int SizeFor(int length) {
193 return kHeaderSize + length * kTaggedSize;
205 // Maximally allowed length of a FixedArray.
210 // Maximally allowed length for regular (non large object space) object.
260 inline static int SizeFor(int length) {
261 return kHeaderSize + length * kDoubleSize;
275 // Maximally allowed length of a FixedDoubleArray.
303 int length);
305 // Forward declare the non-atomic (set_)length defined in torque.
306 using TorqueGeneratedWeakFixedArray::length;
308 DECL_RELEASE_ACQUIRE_INT_ACCESSORS(length)
344 // adding more elements. length() returns the number of elements in the list and
389 static constexpr int CapacityForLength(int length) {
390 return length + std::max(length / 2, 2);
409 Isolate* isolate, Handle<WeakArrayList> array, int length,
471 // is length(). Lower and upper case length() return different results!
475 // storage capacity, i.e., length().
476 inline void SetLength(int length);
505 Handle<ArrayList> array, int length);
547 static int SizeFor(int length) {
548 return OBJECT_POINTER_ALIGN(kHeaderSize + length);
577 // Maximal length of a single ByteArray.
595 Isolate* isolate, int length,
597 void copy_out(int index, T* result, int length) {
599 length * sizeof(T));
602 void copy_in(int index, const T* buffer, int length) {
604 length * sizeof(T));
607 bool matches(const T* buffer, int length) {
608 DCHECK_LE(length, this->length());
609 return memcmp(GetDataStartAddress(), buffer, length * sizeof(T)) == 0;
612 bool matches(int offset, const T* buffer, int length) {
613 DCHECK_LE(offset, this->length());
614 DCHECK_LE(offset + length, this->length());
616 length * sizeof(T)) == 0;
627 inline int length() const;
637 inline int length() const;