Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 15 of 15) sorted by relevance

/art/runtime/base/
Dstringpiece.cc28 int StringPiece::copy(char* buf, size_type n, size_type pos) const { in copy()
29 int ret = std::min(length_ - pos, n); in copy()
30 memcpy(buf, ptr_ + pos, ret); in copy()
34 StringPiece::size_type StringPiece::find(const StringPiece& s, size_type pos) const { in find()
35 if (length_ < 0 || pos > static_cast<size_type>(length_)) in find()
38 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find()
53 StringPiece::size_type StringPiece::find(char c, size_type pos) const { in find()
54 if (length_ <= 0 || pos >= static_cast<size_type>(length_)) { in find()
57 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find()
61 StringPiece::size_type StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind()
[all …]
Dstringpiece.h148 int copy(char* buf, size_type n, size_type pos = 0) const;
150 size_type find(const StringPiece& s, size_type pos = 0) const;
151 size_type find(char c, size_type pos = 0) const;
152 size_type rfind(const StringPiece& s, size_type pos = npos) const;
153 size_type rfind(char c, size_type pos = npos) const;
155 StringPiece substr(size_type pos, size_type n = npos) const;
/art/runtime/gc/space/
Dbump_pointer_space.cc154 byte* pos = Begin(); in Walk() local
156 byte* main_end = pos; in Walk()
173 while (pos < main_end) { in Walk()
174 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in Walk()
182 pos = reinterpret_cast<byte*>(GetNextObject(obj)); in Walk()
186 while (pos < end) { in Walk()
187 BlockHeader* header = reinterpret_cast<BlockHeader*>(pos); in Walk()
189 pos += sizeof(BlockHeader); // Skip the header so that we know where the objects in Walk()
190 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in Walk()
191 const mirror::Object* end = reinterpret_cast<const mirror::Object*>(pos + block_size); in Walk()
[all …]
Dmalloc_space.cc102 size_t pos = recent_free_pos_; in FindRecentFreedObject() local
107 pos = pos != 0 ? pos - 1 : kRecentFreeMask; in FindRecentFreedObject()
108 if (recent_freed_objects_[pos].first == obj) { in FindRecentFreedObject()
109 return recent_freed_objects_[pos].second; in FindRecentFreedObject()
/art/runtime/
Dsafe_map.h96 iterator PutBefore(iterator pos, const K& k, const V& v) { in PutBefore() argument
98 DCHECK(pos == map_.end() || map_.key_comp()(k, pos->first)); in PutBefore()
99 DCHECK(pos == map_.begin() || map_.key_comp()((--iterator(pos))->first, k)); in PutBefore()
100 return map_.emplace_hint(pos, k, v); in PutBefore()
Ddex_file.h414 const char* pos = strrchr(location, kMultiDexSeparator); in GetBaseLocation() local
415 if (pos == nullptr) { in GetBaseLocation()
418 return std::string(location, pos - location); in GetBaseLocation()
423 size_t pos = location_.rfind(kMultiDexSeparator); in GetBaseLocation() local
424 if (pos == std::string::npos) { in GetBaseLocation()
427 return location_.substr(0, pos); in GetBaseLocation()
Dutils.cc1282 size_t pos = filename->rfind('/'); in InsertIsaDirectory() local
1283 CHECK_NE(pos, std::string::npos) << *filename << " " << isa; in InsertIsaDirectory()
1284 filename->insert(pos, "/", 1); in InsertIsaDirectory()
1285 filename->insert(pos + 1, GetInstructionSetString(isa)); in InsertIsaDirectory()
/art/compiler/dex/
Dmir_analysis.cc1165 for (size_t pos = 0u; pos != ifield_pos; ++pos) { in DoCacheFieldLoweringInfo() local
1166 ifield_lowering_infos_.Insert(MirIFieldLoweringInfo(field_idxs[pos])); in DoCacheFieldLoweringInfo()
1176 for (size_t pos = max_refs; pos != sfield_pos;) { in DoCacheFieldLoweringInfo() local
1177 --pos; in DoCacheFieldLoweringInfo()
1178 sfield_lowering_infos_.Insert(MirSFieldLoweringInfo(field_idxs[pos])); in DoCacheFieldLoweringInfo()
1286 for (size_t pos = 0u; pos != count; ++pos) { in DoCacheMethodLoweringInfo() local
1287 const MapEntry* entry = sequential_entries[pos]; in DoCacheMethodLoweringInfo()
Dlocal_value_numbering.cc1043 int16_t pos = 0; in HandlePhi() local
1046 DCHECK_LT(pos, mir->ssa_rep->num_uses); in HandlePhi()
1047 while (incoming[pos] != lvn->Id()) { in HandlePhi()
1048 ++pos; in HandlePhi()
1049 DCHECK_LT(pos, mir->ssa_rep->num_uses); in HandlePhi()
1051 int s_reg = uses[pos]; in HandlePhi()
1052 ++pos; in HandlePhi()
/art/compiler/
Dimage_test.cc53 size_t pos = image_filename.rfind('/'); in TEST_F() local
54 CHECK_NE(pos, std::string::npos) << image_filename; in TEST_F()
55 std::string image_dir(image_filename, 0, pos); in TEST_F()
/art/runtime/mirror/
Dclass-inl.h626 uint32_t pos = sizeof(mirror::Class); in VisitEmbeddedImtAndVTable() local
630 MemberOffset offset = MemberOffset(pos); in VisitEmbeddedImtAndVTable()
632 pos += sizeof(ImTableEntry); in VisitEmbeddedImtAndVTable()
636 pos += sizeof(int32_t); in VisitEmbeddedImtAndVTable()
640 MemberOffset offset = MemberOffset(pos); in VisitEmbeddedImtAndVTable()
642 pos += sizeof(VTableEntry); in VisitEmbeddedImtAndVTable()
/art/tools/
Dcpplint.py1061 def CloseExpression(clean_lines, linenum, pos): argument
1080 startchar = line[pos]
1088 end_pos = FindEndOfExpressionInLine(line, pos, 0, startchar, endchar)
1091 tail = line[pos:]
2615 pos = line.find('else if')
2616 pos = line.find('(', pos)
2617 if pos > 0:
2618 (endline, _, endpos) = CloseExpression(clean_lines, linenum, pos)
/art/compiler/optimizing/
Dbuilder.cc103 uint32_t pos = 1; in InitializeParameters() local
105 switch (shorty[pos++]) { in InitializeParameters()
114 new (arena_) HParameterValue(parameter_index++, Primitive::GetType(shorty[pos - 1])); in InitializeParameters()
/art/runtime/gc/allocator/
Drosalloc.cc773 std::set<Run*>::iterator pos = non_full_runs->find(run); in FreeFromRun() local
774 if (pos != non_full_runs->end()) { in FreeFromRun()
775 non_full_runs->erase(pos); in FreeFromRun()
798 std::set<Run*>::iterator pos = non_full_runs->find(run); in FreeFromRun() local
799 if (pos == non_full_runs->end()) { in FreeFromRun()
1284 std::unordered_set<Run*, hash_run, eq_run>::iterator pos = full_runs->find(run); in BulkFree() local
1285 DCHECK(pos != full_runs->end()); in BulkFree()
1286 full_runs->erase(pos); in BulkFree()
/art/runtime/gc/
Dheap.cc1922 uintptr_t pos = it->second; in MarkNonForwardedObject() local
1924 forward_address = reinterpret_cast<mirror::Object*>(pos); in MarkNonForwardedObject()
1929 AddBin(size - object_size, pos + object_size); // Add a new bin with the remaining space. in MarkNonForwardedObject()