Home
last modified time | relevance | path

Searched refs:array_ (Results 1 – 25 of 57) sorted by relevance

123

/external/v8/src/crankshaft/
Dunique.h150 UniqueSet() : size_(0), capacity_(0), array_(NULL) { } in UniqueSet()
155 array_(zone->NewArray<Unique<T> >(capacity)) { in UniqueSet()
161 : size_(1), capacity_(1), array_(zone->NewArray<Unique<T> >(1)) { in UniqueSet()
162 array_[0] = uniq; in UniqueSet()
170 if (array_[i] == uniq) return; in Add()
171 if (array_[i].raw_address_ > uniq.raw_address_) { in Add()
174 for (int j = size_ - 1; j >= i; j--) array_[j + 1] = array_[j]; in Add()
175 array_[i] = uniq; in Add()
182 array_[size_++] = uniq; in Add()
188 if (array_[i] == uniq) { in Remove()
[all …]
Dhydrogen-gvn.cc19 array_(NULL), in HInstructionMap()
64 HInstructionMapListElement* array_; member in v8::internal::HInstructionMap
140 array_(zone->NewArray<HInstructionMapListElement>(other->array_size_)), in HInstructionMap()
144 MemCopy(array_, other->array_, in HInstructionMap()
155 HInstruction* instr = array_[i].instr; in Kill()
160 for (int current = array_[i].next; current != kNil; current = next) { in Kill()
176 array_[i].next = kept; in Kill()
179 instr = array_[i].instr; in Kill()
183 int head = array_[i].next; in Kill()
185 array_[i].instr = NULL; in Kill()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Daudio_vector.cc22 : array_(new int16_t[kDefaultInitialSize]), in AudioVector()
28 : array_(new int16_t[initial_size]), in AudioVector()
31 memset(array_.get(), 0, initial_size * sizeof(int16_t)); in AudioVector()
44 memcpy(copy_to->array_.get(), array_.get(), Size() * sizeof(int16_t)); in CopyTo()
52 memmove(&array_[insert_length], &array_[0], Size() * sizeof(int16_t)); in PushFront()
53 memcpy(&array_[0], &prepend_this.array_[0], insert_length * sizeof(int16_t)); in PushFront()
63 PushBack(append_this.array_.get(), append_this.Size()); in PushBack()
68 memcpy(&array_[first_free_ix_], append_this, length * sizeof(int16_t)); in PushBack()
78 memmove(&array_[0], &array_[length], remaining_samples * sizeof(int16_t)); in PopFront()
91 memset(&array_[first_free_ix_], 0, extra_length * sizeof(int16_t)); in Extend()
[all …]
Daudio_vector_unittest.cc28 array_[i] = i; in SetUp()
33 return sizeof(array_) / sizeof(array_[0]); in array_length()
36 int16_t array_[10]; member in webrtc::AudioVectorTest
67 vec.PushBack(array_, array_length()); in TEST_F()
72 EXPECT_EQ(array_[i], vec[i]); in TEST_F()
73 EXPECT_EQ(array_[i], vec_copy[i]); in TEST_F()
89 vec.PushBack(array_, array_length()); in TEST_F()
115 vec.PushFront(array_, array_length()); in TEST_F()
118 EXPECT_EQ(array_[i], vec[i]); in TEST_F()
144 vec.PushBack(array_, array_length()); in TEST_F()
[all …]
/external/ceres-solver/include/ceres/internal/
Dfixed_array.h110 inline const T* get() const { return &array_[0].element; } in get()
111 inline T* get() { return &array_[0].element; } in get()
117 return array_[i].element;
124 return array_[i].element;
127 inline iterator begin() { return &array_[0].element; } in begin()
128 inline iterator end() { return &array_[size_].element; } in end()
130 inline const_iterator begin() const { return &array_[0].element; } in begin()
131 inline const_iterator end() const { return &array_[size_].element; } in end()
154 InnerContainer* const array_; variable
166 array_((n <= kInlineElements in FixedArray()
[all …]
Dscoped_ptr.h202 explicit scoped_array(C* p = NULL) : array_(p) { } in array_() function
208 delete[] array_; in ~scoped_array()
215 if (p != array_) {
217 delete[] array_;
218 array_ = p;
226 assert(array_ != NULL);
227 return array_[i];
233 return array_; in get()
239 bool operator==(const C* p) const { return array_ == p; }
240 bool operator!=(const C* p) const { return array_ != p; }
[all …]
/external/libchrome/base/containers/
Dsmall_map.h391 if (compare(array_[i]->first, key)) {
392 return iterator(array_ + i);
395 return iterator(array_ + size_);
405 if (compare(array_[i]->first, key)) {
406 return const_iterator(array_ + i);
409 return const_iterator(array_ + size_);
423 if (compare(array_[i]->first, key)) {
424 return array_[i]->second;
431 array_[size_].Init(key, data_type());
432 return array_[size_++]->second;
[all …]
/external/google-breakpad/src/common/
Dscoped_ptr.h197 explicit scoped_array(C* p = NULL) : array_(p) { } in array_() function
203 delete[] array_; in ~scoped_array()
210 if (p != array_) {
212 delete[] array_;
213 array_ = p;
221 assert(array_ != NULL);
222 return array_[i];
228 return array_; in get()
234 bool operator==(C* p) const { return array_ == p; }
235 bool operator!=(C* p) const { return array_ != p; }
[all …]
/external/piex/src/binary_parse/
Drange_checked_byte_ptr.cc76 : array_(), in RangeCheckedBytePtr()
87 : array_(new MemoryPagedByteArray(array, len)), in RangeCheckedBytePtr()
102 : array_(array, NullFunctor()), in RangeCheckedBytePtr()
169 if (x.array_ != y.array_) { in operator ==()
190 if (offset >= array_->length()) { in loadPageForOffset()
196 size_t page_index = offset / array_->pageSize(); in loadPageForOffset()
201 array_->getPage(page_index, &page_begin, &page_end, &page_); in loadPageForOffset()
205 size_t expected_page_size = array_->pageSize(); in loadPageForOffset()
206 if (page_index == (array_->length() - 1) / array_->pageSize()) { in loadPageForOffset()
207 expected_page_size = array_->length() - array_->pageSize() * page_index; in loadPageForOffset()
[all …]
/external/sfntly/cpp/src/sfntly/data/
Dfont_data.cc28 return std::min<int32_t>(array_->Size() - bound_offset_, bound_length_); in Size()
44 CHECK(new_offset <= array_->Size()); in Bound()
49 CHECK(new_offset <= array_->Size() - length); in Bound()
57 return std::min<int32_t>(array_->Length() - bound_offset_, bound_length_); in Length()
65 Init(data->array_); in FontData()
70 Init(data->array_); in FontData()
79 array_ = ba; in Init()
Dwritable_font_data.cc58 array_->Put(BoundOffset(index), b); in WriteByte()
66 return array_->Put(BoundOffset(index), in WriteBytes()
83 array_->Put(BoundOffset(index), in WriteBytesPad()
99 array_->Put(index + i, pad); in WritePadding()
162 array_->CopyFrom(is, length); in CopyFrom()
166 array_->CopyFrom(is); in CopyFrom()
Dreadable_font_data.cc63 int32_t b = array_->Get(BoundOffset(index)); in ReadUByte()
75 int32_t b = array_->Get(BoundOffset(index)); in ReadByte()
90 return array_->Get(BoundOffset(index), b, offset, BoundLength(index, length)); in ReadBytes()
213 return array_->CopyTo(os, BoundOffset(0), Length()); in CopyTo()
217 return array_->CopyTo(wfd->BoundOffset(0), in CopyTo()
218 wfd->array_, in CopyTo()
224 return array_->CopyTo(ba, BoundOffset(0), Length()); in CopyTo()
/external/jsoncpp/src/lib_json/
Djson_valueiterator.inl24 iterator_.array_ = ValueInternalArray::IteratorState();
36 iterator_.array_ = state;
51 return ValueInternalArray::dereference(iterator_.array_);
61 ValueInternalArray::increment(iterator_.array_);
71 ValueInternalArray::decrement(iterator_.array_);
105 return ValueInternalArray::distance(iterator_.array_,
106 other.iterator_.array_);
119 return ValueInternalArray::equals(iterator_.array_, other.iterator_.array_);
130 iterator_.array_ = other.iterator_.array_;
146 return Value(ValueInternalArray::indexOf(iterator_.array_));
[all …]
Djson_internalarray.inl141 return x.array_ == other.array_ &&
148 it.array_ && (it.currentPageIndex_ - it.array_->pages_) * itemsPerPage +
150 it.array_->size_,
161 it.array_ && it.currentPageIndex_ == it.array_->pages_ &&
178 it.array_ && (it.currentPageIndex_ - it.array_->pages_) * itemsPerPage +
180 it.array_->size_,
186 it.array_ = const_cast<ValueInternalArray*>(this);
193 it.array_ = const_cast<ValueInternalArray*>(this);
339 if (!iterator.array_)
341 return ArrayIndex((iterator.currentPageIndex_ - iterator.array_->pages_) *
Djson_value.cpp251 value_.array_ = arrayAllocator()->newArray(); in Value()
356 value_.array_ = arrayAllocator()->newArrayCopy(*other.value_.array_); in Value()
394 arrayAllocator()->destructArray(value_.array_); in ~Value()
464 return value_.array_->compare(*(other.value_.array_)) < 0; in operator <()
510 return value_.array_->compare(*(other.value_.array_)) == 0; in operator ==()
775 return Int(value_.array_->size()); in size()
807 value_.array_->clear(); in clear()
836 value_.array_->resize(newSize); in resize()
856 return value_.array_->resolveReference(index); in operator []()
880 Value* value = value_.array_->find(index); in operator []()
[all …]
/external/v8/src/
Dstring-builder.h120 : array_(isolate->factory()->NewFixedArrayWithHoles(initial_capacity)), in FixedArrayBuilder()
129 : array_(backing_store), length_(0), has_non_smi_elements_(false) { in FixedArrayBuilder()
136 int length = array_->length(); in HasCapacity()
142 int length = array_->length(); in EnsureCapacity()
150 array_->GetIsolate()->factory()->NewFixedArrayWithHoles(new_length); in EnsureCapacity()
151 array_->CopyTo(0, *extended_array, 0, length_); in EnsureCapacity()
152 array_ = extended_array; in EnsureCapacity()
159 array_->set(length_, value); in Add()
167 array_->set(length_, value); in Add()
171 Handle<FixedArray> array() { return array_; } in array()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dcommon.h542 explicit scoped_array(C* p = NULL) : array_(p) { } in array_() function
548 delete[] array_; in ~scoped_array()
555 if (p != array_) {
557 delete[] array_;
558 array_ = p;
566 assert(array_ != NULL);
567 return array_[i];
573 return array_; in get()
579 bool operator==(C* p) const { return array_ == p; }
580 bool operator!=(C* p) const { return array_ != p; }
[all …]
/external/gtest/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/protobuf/gtest/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/mesa3d/src/gtest/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/vulkan-validation-layers/tests/gtest-1.7.0/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/llvm/utils/unittest/googletest/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/google-breakpad/src/testing/gtest/src/
Dgtest-test-part.cc69 array_.push_back(result); in Append()
79 return array_[index]; in GetTestPartResult()
84 return static_cast<int>(array_.size()); in size()
/external/v8/src/debug/
Dliveedit.h246 explicit JSArrayBasedStruct(Handle<JSArray> array) : array_(array) { in JSArrayBasedStruct()
250 return array_; in GetJSArray()
254 return array_->GetIsolate(); in isolate()
259 Object::SetElement(isolate(), array_, field_position, value, SLOPPY) in SetField()
268 return JSReceiver::GetElement(isolate(), array_, field_position) in GetField()
278 Handle<JSArray> array_;
/external/gtest/include/gtest/internal/
Dgtest-internal.h978 Init(rhs.array_, rhs.size_, rhs.relation_to_source_);
987 delete[] array_;
992 const_iterator begin() const { return array_; }
993 const_iterator end() const { return array_ + size_; }
1004 array_ = array;
1008 array_ = copy;
1014 const Element* array_;

123