Home
last modified time | relevance | path

Searched refs:begin (Results 1 – 25 of 238) sorted by relevance

12345678910

/art/compiler/utils/
Dintrusive_forward_list_test.cc64 ASSERT_EQ(std::distance((expected).begin(), (expected).end()), \
65 std::distance((value).begin(), (value).end())); \
66 ASSERT_TRUE(std::equal((expected).begin(), (expected).end(), (value).begin())); \
129 typename ListType::iterator begin = ifl.begin(); in IteratorToConstIterator() local
131 typename ListType::const_iterator converted_begin = begin; in IteratorToConstIterator()
145 ASSERT_TRUE(ifl.begin() == ifl.cbegin()); in IteratorOperators()
146 ASSERT_FALSE(ifl.begin() != ifl.cbegin()); in IteratorOperators()
150 ASSERT_TRUE(ifl.begin() == ifl.end()); // Empty. in IteratorOperators()
151 ASSERT_FALSE(ifl.begin() != ifl.end()); // Empty. in IteratorOperators()
156 ASSERT_FALSE(ifl.begin() == ifl.end()); // Not empty. in IteratorOperators()
[all …]
Ddedupe_set_test.cc46 return new std::vector<uint8_t>(src.begin(), src.end()); in Copy()
68 ASSERT_TRUE(std::equal(test1.begin(), test1.end(), array1->begin())); in TEST()
77 ASSERT_TRUE(std::equal(test2.begin(), test2.end(), array2->begin())); in TEST()
87 ASSERT_TRUE(std::equal(test3.begin(), test3.end(), array3->begin())); in TEST()
Dintrusive_forward_list.h166 iterator begin() { return iterator(first_.next_hook); } in begin() function
167 const_iterator begin() const { return const_iterator(first_.next_hook); } in begin() function
175 bool empty() const { return begin() == end(); } in empty()
179 reference front() { return *begin(); } in front()
180 const_reference front() const { return *begin(); } in front()
292 for (iterator current = begin(); current != end(); ++current) { in remove_if()
307 iterator prev = begin(); in unique()
329 iterator current = begin(); in merge()
331 iterator other_current = other.begin(); in merge()
355 size_t n = std::distance(begin(), end()); in sort()
[all …]
/art/cmdline/
Dtoken_range.h44 begin_(token_list_->begin()), in TokenRange()
52 begin_(token_list_->begin()), in TokenRange()
62 begin_(token_list_->begin()),
64 assert(it_begin >= token_list.begin());
72 begin_(token_list_->begin()), in TokenRange()
79 begin_(token_list_->begin()), in TokenRange()
90 assert(it_begin >= token_list->begin()); in TokenRange()
103 begin_(token_list_->begin()), in TokenRange()
146 iterator begin() const { in begin() function
183 return std::equal(begin(), end(), other.begin());
[all …]
/art/libartbase/base/
Dstl_util.h39 void STLDeleteContainerPointers(ForwardIterator begin, in STLDeleteContainerPointers() argument
41 while (begin != end) { in STLDeleteContainerPointers()
42 ForwardIterator temp = begin; in STLDeleteContainerPointers()
43 ++begin; in STLDeleteContainerPointers()
61 STLDeleteContainerPointers(container->begin(), container->end()); in STLDeleteElements()
72 for (typename T::iterator i = v->begin(); i != v->end(); ++i) { in STLDeleteValues()
94 auto it = std::find(container.begin(), container.end(), value); in IndexOfElement()
96 return std::distance(container.begin(), it); in IndexOfElement()
102 auto it = std::find(container.begin(), container.end(), value); in RemoveElement()
110 auto it = std::find(container.begin(), container.end(), old_value); in ReplaceElement()
[all …]
Dtransform_iterator_test.cc48 using vector_titer = decltype(MakeTransformIterator(input.begin(), add1)); in TEST()
76 std::copy(MakeTransformIterator(input.begin(), add1), in TEST()
101 ASSERT_EQ(input[i].value + 1, MakeTransformIterator(input.begin(), add1)[i]); in TEST()
113 ASSERT_EQ(MakeTransformIterator(input.begin(), add1) + i, in TEST()
114 MakeTransformIterator(input.begin() + i, add1)); in TEST()
131 (MakeTransformIterator(input.begin(), add1) + input.size()).base()); in TEST()
132 ASSERT_EQ(MakeTransformIterator(input.end(), add1) - MakeTransformIterator(input.begin(), add1), in TEST()
136 auto it = MakeTransformIterator(input.begin(), add1); in TEST()
151 using list_titer = decltype(MakeTransformIterator(input.begin(), sub1)); in TEST()
179 std::copy(MakeTransformIterator(input.begin(), sub1), in TEST()
[all …]
Dutils.h182 inline void FlushInstructionCache(char* begin, char* end) { in FlushInstructionCache() argument
183 __builtin___clear_cache(begin, end); in FlushInstructionCache()
186 inline void FlushDataCache(char* begin, char* end) { in FlushDataCache() argument
189 __builtin___clear_cache(begin, end); in FlushDataCache()
213 const uint8_t* begin = static_cast<const uint8_t*>(pointer); in BoundsCheckedCast() local
214 const uint8_t* end = begin + sizeof(*result); in BoundsCheckedCast()
215 if (begin < bound_begin || end > bound_end || begin > end) { in BoundsCheckedCast()
Diteration_range.h37 iterator begin() const { return first_; } in begin() function
59 typedef typename std::reverse_iterator<decltype(c.begin())> riter; in ReverseRange()
60 return MakeIterationRange(riter(c.end()), riter(c.begin())); in ReverseRange()
Darray_ref.h119 iterator begin() { return array_; } in begin() function
120 const_iterator begin() const { return array_; } in begin() function
128 reverse_iterator rend() { return reverse_iterator(begin()); } in rend()
129 const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } in rend()
198 return lhs.size() == rhs.size() && std::equal(lhs.begin(), lhs.end(), rhs.begin());
Dtransform_array_ref.h92 iterator begin() { return MakeIterator(base().begin()); } in begin() function
93 const_iterator begin() const { return MakeIterator(base().cbegin()); } in begin() function
101 reverse_iterator rend() { return reverse_iterator(begin()); } in rend()
102 const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } in rend()
165 return lhs.size() == rhs.size() && std::equal(lhs.begin(), lhs.end(), rhs.begin());
Darray_slice.h59 iterator begin() { return iterator(&AtUnchecked(0), element_size_); } in begin() function
60 const_iterator begin() const { return const_iterator(&AtUnchecked(0), element_size_); } in begin() function
68 reverse_iterator rend() { return reverse_iterator(begin()); } in rend()
69 const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } in rend()
/art/runtime/gc/collector/
Dimmune_spaces.cc65 std::sort(intervals.begin(), intervals.end()); in CreateLargestImmuneRegion()
72 const uintptr_t begin = std::get<0>(interval); in CreateLargestImmuneRegion() local
75 VLOG(collector) << "Interval " << reinterpret_cast<const void*>(begin) << "-" in CreateLargestImmuneRegion()
77 DCHECK_GE(end, begin); in CreateLargestImmuneRegion()
78 DCHECK_GE(begin, cur_end); in CreateLargestImmuneRegion()
81 if (begin != cur_end) { in CreateLargestImmuneRegion()
86 cur_begin = begin; in CreateLargestImmuneRegion()
93 cur_heap_size += end - begin; in CreateLargestImmuneRegion()
Dimmune_region.h51 void SetBegin(mirror::Object* begin) { in SetBegin() argument
52 begin_ = begin; in SetBegin()
/art/libdexfile/dex/
Ddex_file_layout.cc25 int DexLayoutSection::MadviseLargestPageAlignedRegion(const uint8_t* begin, in MadviseLargestPageAlignedRegion() argument
28 DCHECK_LE(begin, end); in MadviseLargestPageAlignedRegion()
29 begin = AlignUp(begin, kPageSize); in MadviseLargestPageAlignedRegion()
31 if (begin < end) { in MadviseLargestPageAlignedRegion()
33 int result = madvise(const_cast<uint8_t*>(begin), end - begin, advice); in MadviseLargestPageAlignedRegion()
/art/disassembler/
Ddisassembler_arm.cc152 const uintptr_t begin = reinterpret_cast<uintptr_t>(options_->base_address_); in PrintLiteral() local
159 literal_addr += begin; in PrintLiteral()
166 if (literal_addr < begin || literal_addr > end - literal_size[type]) { in PrintLiteral()
207 size_t DisassemblerArm::Dump(std::ostream& os, const uint8_t* begin) { in Dump() argument
210 const uintptr_t instr_ptr = reinterpret_cast<uintptr_t>(begin) & ~1; in Dump()
212 const bool is_t32 = (reinterpret_cast<uintptr_t>(begin) & 1) != 0; in Dump()
231 void DisassemblerArm::Dump(std::ostream& os, const uint8_t* begin, const uint8_t* end) { in Dump() argument
232 DCHECK_LE(begin, end); in Dump()
235 const uintptr_t base = reinterpret_cast<uintptr_t>(begin) & ~1; in Dump()
237 const bool is_t32 = (reinterpret_cast<uintptr_t>(begin) & 1) != 0; in Dump()
[all …]
Ddisassembler_arm64.cc111 size_t DisassemblerArm64::Dump(std::ostream& os, const uint8_t* begin) { in Dump() argument
112 const Instruction* instr = reinterpret_cast<const Instruction*>(begin); in Dump()
114 os << FormatInstructionPointer(begin) in Dump()
119 void DisassemblerArm64::Dump(std::ostream& os, const uint8_t* begin, const uint8_t* end) { in Dump() argument
120 for (const uint8_t* cur = begin; cur < end; cur += kInstructionSize) { in Dump()
Ddisassembler.cc57 std::string Disassembler::FormatInstructionPointer(const uint8_t* begin) { in FormatInstructionPointer() argument
59 return StringPrintf("%p", begin); in FormatInstructionPointer()
61 size_t offset = begin - disassembler_options_->base_address_; in FormatInstructionPointer()
Ddisassembler.h76 virtual size_t Dump(std::ostream& os, const uint8_t* begin) = 0;
78 virtual void Dump(std::ostream& os, const uint8_t* begin, const uint8_t* end) = 0;
87 std::string FormatInstructionPointer(const uint8_t* begin);
Ddisassembler_mips.h36 size_t Dump(std::ostream& os, const uint8_t* begin) OVERRIDE;
37 void Dump(std::ostream& os, const uint8_t* begin, const uint8_t* end) OVERRIDE;
Ddisassembler_arm.h35 size_t Dump(std::ostream& os, const uint8_t* begin) OVERRIDE;
36 void Dump(std::ostream& os, const uint8_t* begin, const uint8_t* end) OVERRIDE;
/art/runtime/gc/accounting/
Dheap_bitmap.cc28 auto it = std::find(continuous_space_bitmaps_.begin(), continuous_space_bitmaps_.end(), in ReplaceBitmap()
37 auto it = std::find(large_object_bitmaps_.begin(), large_object_bitmaps_.end(), old_bitmap); in ReplaceLargeObjectBitmap()
57 auto it = std::find(continuous_space_bitmaps_.begin(), continuous_space_bitmaps_.end(), bitmap); in RemoveContinuousSpaceBitmap()
69 auto it = std::find(large_object_bitmaps_.begin(), large_object_bitmaps_.end(), bitmap); in RemoveLargeObjectBitmap()
/art/runtime/gc/space/
Ddlmalloc_space.cc42 void* mspace, uint8_t* begin, uint8_t* end, uint8_t* limit, in DlMallocSpace() argument
44 : MallocSpace(name, mem_map, begin, end, limit, growth_limit, true, can_move_objects, in DlMallocSpace()
68 uint8_t* begin = mem_map->Begin(); in CreateFromMemMap() local
71 mem_map, initial_size, name, mspace, begin, end, begin + capacity, growth_limit, in CreateFromMemMap()
74 return new DlMallocSpace(mem_map, initial_size, name, mspace, begin, end, begin + capacity, in CreateFromMemMap()
114 void* DlMallocSpace::CreateMspace(void* begin, size_t morecore_start, size_t initial_size) { in CreateMspace() argument
120 void* msp = create_mspace_with_base(begin, morecore_start, false /*locked*/); in CreateMspace()
156 void* allocator, uint8_t* begin, uint8_t* end, in CreateInstance() argument
161 mem_map, initial_size_, name, allocator, begin, end, limit, growth_limit, in CreateInstance()
164 return new DlMallocSpace(mem_map, initial_size_, name, allocator, begin, end, limit, in CreateInstance()
Drosalloc_space.cc48 art::gc::allocator::RosAlloc* rosalloc, uint8_t* begin, uint8_t* end, in RosAllocSpace() argument
51 : MallocSpace(name, mem_map, begin, end, limit, growth_limit, true, can_move_objects, in RosAllocSpace()
79 uint8_t* begin = mem_map->Begin(); in CreateFromMemMap() local
84 mem_map, initial_size, name, rosalloc, begin, end, begin + capacity, growth_limit, in CreateFromMemMap()
87 return new RosAllocSpace(mem_map, initial_size, name, rosalloc, begin, end, begin + capacity, in CreateFromMemMap()
133 allocator::RosAlloc* RosAllocSpace::CreateRosAlloc(void* begin, size_t morecore_start, in CreateRosAlloc() argument
143 begin, morecore_start, maximum_size, in CreateRosAlloc()
179 void* allocator, uint8_t* begin, uint8_t* end, in CreateInstance() argument
184 mem_map, initial_size_, name, reinterpret_cast<allocator::RosAlloc*>(allocator), begin, end, in CreateInstance()
188 reinterpret_cast<allocator::RosAlloc*>(allocator), begin, end, limit, in CreateInstance()
/art/runtime/
Dmemory_region.h41 return lhs.size() == rhs.size() && memcmp(lhs.begin(), rhs.begin(), lhs.size()) == 0; in operator()
56 uint8_t* begin() const { return reinterpret_cast<uint8_t*>(pointer_); } in begin() function
57 uint8_t* end() const { return begin() + size_; } in end()
141 const uint8_t* address = begin() + bit_offset / kBitsPerByte; in LoadBits()
186 return MemoryRegion(reinterpret_cast<void*>(begin() + offset), size_in); in Subregion()
200 return reinterpret_cast<T*>(begin() + offset); in ComputeInternalPointer()
/art/openjdkjvmti/
Dtransform.cc107 auto it = std::find_if(uninitialized_class_definitions_.begin(), in Action()
124 return std::find_if(initialized_class_definitions_.begin(), in Action()
143 initializing_class_definitions_.erase(std::find(initializing_class_definitions_.begin(), in Action()
155 auto it = std::find(uninitialized_class_definitions_.begin(), in RemoveDefinition()
162 while (std::find(initializing_class_definitions_.begin(), in RemoveDefinition()
167 it = std::find(initialized_class_definitions_.begin(), in RemoveDefinition()
183 return std::find_if(initializing_class_definitions_.begin(), in DefinitionIsInitializing()

12345678910