Home
last modified time | relevance | path

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

123

/art/runtime/gc/space/
Dbump_pointer_space-walk-inl.h32 uint8_t* pos = Begin(); in Walk() local
34 uint8_t* main_end = pos; in Walk()
64 while (pos < main_end) { in Walk()
65 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in Walk()
74 pos = reinterpret_cast<uint8_t*>(GetNextObject(obj)); in Walk()
78 while (pos < end) { in Walk()
79 BlockHeader* header = reinterpret_cast<BlockHeader*>(pos); in Walk()
81 pos += sizeof(BlockHeader); // Skip the header so that we know where the objects in Walk()
82 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in Walk()
83 const mirror::Object* end_obj = reinterpret_cast<const mirror::Object*>(pos + block_size); in Walk()
[all …]
Dmalloc_space.cc122 size_t pos = recent_free_pos_; in FindRecentFreedObject() local
127 pos = pos != 0 ? pos - 1 : kRecentFreeMask; in FindRecentFreedObject()
128 if (recent_freed_objects_[pos].first == obj) { in FindRecentFreedObject()
129 return recent_freed_objects_[pos].second; in FindRecentFreedObject()
/art/runtime/
Dimage-inl.h55 for (size_t pos = 0u; pos < fields.Size(); ) { in VisitPackedArtFields() local
56 auto* array = reinterpret_cast<LengthPrefixedArray<ArtField>*>(base + fields.Offset() + pos); in VisitPackedArtFields()
60 pos += array->ComputeSize(array->size()); in VisitPackedArtFields()
71 for (size_t pos = 0u; pos < methods.Size(); ) { in VisitPackedArtMethods() local
72 auto* array = reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(base + methods.Offset() + pos); in VisitPackedArtMethods()
76 pos += array->ComputeSize(array->size(), method_size, method_alignment); in VisitPackedArtMethods()
79 for (size_t pos = 0u; pos < runtime_methods.Size(); ) { in VisitPackedArtMethods() local
80 auto* method = reinterpret_cast<ArtMethod*>(base + runtime_methods.Offset() + pos); in VisitPackedArtMethods()
82 pos += method_size; in VisitPackedArtMethods()
91 for (size_t pos = 0; pos < section.Size();) { in VisitPackedImTables() local
[all …]
Dimage.cc161 for (size_t pos = kStartPos; pos < objects.Size(); ) { in VisitObjects() local
162 mirror::Object* object = reinterpret_cast<mirror::Object*>(base + objects.Offset() + pos); in VisitObjects()
164 pos += RoundUp(object->SizeOf(), kObjectAlignment); in VisitObjects()
Doat_file_assistant.cc144 size_t pos = dex_location_.rfind('/'); in OatFileAssistant() local
145 if (pos == std::string::npos) { in OatFileAssistant()
150 std::string parent = dex_location_.substr(0, pos); in OatFileAssistant()
497 size_t pos = location.rfind('/'); in DexLocationToOdexNames() local
498 if (pos == std::string::npos) { in DexLocationToOdexNames()
502 std::string dir = location.substr(0, pos+1); in DexLocationToOdexNames()
515 std::string file = location.substr(pos+1); in DexLocationToOdexNames()
516 pos = file.rfind('.'); in DexLocationToOdexNames()
517 if (pos == std::string::npos) { in DexLocationToOdexNames()
521 std::string base = file.substr(0, pos); in DexLocationToOdexNames()
/art/libartbase/base/
Darray_slice.h117 ArraySlice<T> SubArray(size_type pos) { in SubArray() argument
118 return SubArray(pos, size() - pos); in SubArray()
121 ArraySlice<const T> SubArray(size_type pos) const { in SubArray() argument
122 return SubArray(pos, size() - pos); in SubArray()
125 ArraySlice<T> SubArray(size_type pos, size_type length) { in SubArray() argument
126 DCHECK_LE(pos, size()); in SubArray()
127 DCHECK_LE(length, size() - pos); in SubArray()
128 return ArraySlice<T>(&AtUnchecked(pos), length, element_size_); in SubArray()
131 ArraySlice<const T> SubArray(size_type pos, size_type length) const { in SubArray() argument
132 DCHECK_LE(pos, size()); in SubArray()
[all …]
Darray_ref.h171 ArrayRef SubArray(size_type pos) { in SubArray() argument
172 return SubArray(pos, size() - pos); in SubArray()
175 ArrayRef<const T> SubArray(size_type pos) const { in SubArray() argument
176 return SubArray(pos, size() - pos); in SubArray()
179 ArrayRef SubArray(size_type pos, size_type length) { in SubArray() argument
180 DCHECK_LE(pos, size()); in SubArray()
181 DCHECK_LE(length, size() - pos); in SubArray()
182 return ArrayRef(data() + pos, length); in SubArray()
185 ArrayRef<const T> SubArray(size_type pos, size_type length) const { in SubArray() argument
186 DCHECK_LE(pos, size()); in SubArray()
[all …]
Dsafe_map.h110 iterator PutBefore(const_iterator pos, const K& k, const V& v) { in PutBefore() argument
112 DCHECK(pos == map_.end() || map_.key_comp()(k, pos->first)); in PutBefore()
113 DCHECK(pos == map_.begin() || map_.key_comp()((--const_iterator(pos))->first, k)); in PutBefore()
114 return map_.emplace_hint(pos, k, v); in PutBefore()
116 iterator PutBefore(const_iterator pos, const K& k, V&& v) { in PutBefore() argument
118 DCHECK(pos == map_.end() || map_.key_comp()(k, pos->first)); in PutBefore()
119 DCHECK(pos == map_.begin() || map_.key_comp()((--const_iterator(pos))->first, k)); in PutBefore()
120 return map_.emplace_hint(pos, k, std::move(v)); in PutBefore()
Dtransform_array_ref.h120 TransformArrayRef SubArray(size_type pos) { in SubArray() argument
121 return TransformArrayRef(base().subarray(pos), GetFunction()); in SubArray()
123 TransformArrayRef SubArray(size_type pos) const { in SubArray() argument
124 return TransformArrayRef(base().subarray(pos), GetFunction()); in SubArray()
126 TransformArrayRef SubArray(size_type pos, size_type length) const { in SubArray() argument
127 return TransformArrayRef(base().subarray(pos, length), GetFunction()); in SubArray()
/art/tools/veridex/
Dhidden_api.cc42 size_t pos = signature.find("->"); in HiddenApi() local
43 if (pos != std::string::npos) { in HiddenApi()
45 AddSignatureToApiList(signature.substr(0, pos), membership); in HiddenApi()
46 pos = signature.find('('); in HiddenApi()
47 if (pos != std::string::npos) { in HiddenApi()
49 AddSignatureToApiList(signature.substr(0, pos), membership); in HiddenApi()
51 pos = signature.find(':'); in HiddenApi()
52 if (pos != std::string::npos) { in HiddenApi()
54 AddSignatureToApiList(signature.substr(0, pos), membership); in HiddenApi()
Dhidden_api.h98 size_t pos = signature.find("->"); in GetApiClassName() local
99 if (pos != std::string::npos) { in GetApiClassName()
100 return signature.substr(0, pos); in GetApiClassName()
/art/test/537-checker-arraycopy/src/
DMain.java73 public static void arraycopy(Object[] obj, int pos) { in arraycopy() argument
74 System.arraycopy(obj, pos, obj, 0, obj.length); in arraycopy()
83 public static int arraycopy2(Object[] obj, int pos) { in arraycopy2() argument
84 System.arraycopy(obj, pos, obj, pos - 1, obj.length); in arraycopy2()
85 return pos; in arraycopy2()
/art/tools/checker/match/
Dline.py35 def getVariable(name, variables, pos): argument
39 Logger.testFailed("Missing definition of variable \"{}\"".format(name), pos, variables)
41 def setVariable(name, value, variables, pos): argument
45 Logger.testFailed("Multiple definitions of variable \"{}\"".format(name), pos, variables)
47 def matchWords(checkerWord, stringWord, variables, pos): argument
54 pattern = re.escape(getVariable(expression.name, variables, pos))
66 variables = setVariable(expression.name, stringWord[:match.end()], variables, pos)
105 def getEvalText(expression, variables, pos): argument
110 return getVariable(expression.name, variables, pos)
/art/compiler/
Dcfi_test.h86 size_t pos = str.find(substr); in FindEndOf() local
87 CHECK_NE(std::string::npos, pos); in FindEndOf()
88 return pos + strlen(substr); in FindEndOf()
98 size_t pos; in ReformatAsm() local
99 while ((pos = line.find(" ")) != std::string::npos) { in ReformatAsm()
100 line = line.replace(pos, 2, " "); in ReformatAsm()
123 size_t pos; in ReformatCfi() local
124 if ((pos = new_line.find(bad_reg)) != std::string::npos) { in ReformatCfi()
125 new_line = new_line.replace(pos, strlen(bad_reg), ""); in ReformatCfi()
128 if ((pos = new_line.find(" (")) != std::string::npos) { in ReformatCfi()
[all …]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DOffsettable.java87 public void setOriginalPosition(int pos) { in setOriginalPosition() argument
88 originalPosition = pos; in setOriginalPosition()
105 public void setNewPosition(int pos) { in setNewPosition() argument
107 newPosition = pos; in setNewPosition()
/art/libdexfile/dex/
Dtype_lookup_table.cc54 const uint32_t pos = hash & mask; in Create() local
55 if (entries[pos].IsEmpty()) { in Create()
56 entries[pos] = Entry(str_id.string_data_off_, hash, class_def_idx, mask_bits); in Create()
57 DCHECK(entries[pos].IsLast(mask_bits)); in Create()
102 uint32_t pos = hash & mask; in Lookup() local
105 const Entry* entry = &entries_[pos]; in Lookup()
115 pos = (pos + entry->GetNextPosDelta(mask_bits_)) & mask; in Lookup()
116 entry = &entries_[pos]; in Lookup()
135 pos = (pos + entry->GetNextPosDelta(mask_bits_)) & mask; in Lookup()
136 entry = &entries_[pos]; in Lookup()
Ddex_file_loader.h90 const char* pos = strrchr(location, kMultiDexSeparator); in GetBaseLocation() local
91 return (pos == nullptr) ? location : std::string(location, pos - location); in GetBaseLocation()
102 size_t pos = location.rfind(kMultiDexSeparator); in GetMultiDexSuffix() local
103 return (pos == std::string::npos) ? std::string() : location.substr(pos); in GetMultiDexSuffix()
/art/test/1901-get-bytecodes/src/art/
DTest1901.java126 for (byte[] pos : possible_bytecodes) { in CheckMethodBytes()
127 if (Arrays.equals(pos, real_codes)) { in CheckMethodBytes()
134 for (byte[] pos : possible_bytecodes) { in CheckMethodBytes()
135 System.out.println("\t" + Arrays.toString(pos)); in CheckMethodBytes()
/art/test/1911-get-local-var-table/src/art/
DTest1911.java195 for (Set<Locals.VariableDescription> pos : possible_vars) { in CheckLocalVariableTable()
196 if (pos.equals(real_vars)) { in CheckLocalVariableTable()
203 for (Object pos : possible_vars) { in CheckLocalVariableTable()
204 System.out.println("\t" + pos); in CheckLocalVariableTable()
/art/compiler/utils/
Dassembler_test_base.h240 size_t pos = 0; in Replace() local
241 for (auto match = str.find(from); match != str.npos; match = str.find(from, pos)) { in Replace()
242 output += str.substr(pos, match - pos); in Replace()
244 pos = match + from.size(); in Replace()
246 output += str.substr(pos, str.size() - pos); in Replace()
/art/test/536-checker-intrinsic-optimization/src/
DMain.java194 static public char $opt$noinline$stringCharAt(String s, int pos) { in $opt$noinline$stringCharAt() argument
195 return s.charAt(pos); in $opt$noinline$stringCharAt()
210 static public char $opt$noinline$stringCharAtCatch(String s, int pos) { in $opt$noinline$stringCharAtCatch() argument
212 return s.charAt(pos); in $opt$noinline$stringCharAtCatch()
232 static public char $opt$noinline$stringCharAtCatchPhiReturn(String s, int pos) { in $opt$noinline$stringCharAtCatchPhiReturn() argument
235 result = s.charAt(pos); in $opt$noinline$stringCharAtCatchPhiReturn()
/art/test/646-checker-arraycopy-large-cst-pos/
DAndroid.bp3 name: "art-run-test-646-checker-arraycopy-large-cst-pos",
/art/openjdkjvmti/
Dti_field.cc297 auto pos = env->modify_watched_fields.find(art::jni::DecodeArtField(field)); in ClearFieldModificationWatch() local
298 if (pos == env->modify_watched_fields.end()) { in ClearFieldModificationWatch()
301 env->modify_watched_fields.erase(pos); in ClearFieldModificationWatch()
331 auto pos = env->access_watched_fields.find(art::jni::DecodeArtField(field)); in ClearFieldAccessWatch() local
332 if (pos == env->access_watched_fields.end()) { in ClearFieldAccessWatch()
335 env->access_watched_fields.erase(pos); in ClearFieldAccessWatch()
/art/compiler/optimizing/
Dload_store_analysis.h32 ReferenceInfo(HInstruction* reference, size_t pos) in ReferenceInfo() argument
34 position_(pos), in ReferenceInfo()
343 size_t pos = 0; in BuildAliasingMatrix() local
349 aliasing_matrix_.SetBit(CheckedAliasingMatrixPosition(i, j, pos)); in BuildAliasingMatrix()
351 pos++; in BuildAliasingMatrix()
439 size_t pos = ref_info_array_.size(); in GetOrCreateReferenceInfo() local
440 ref_info = new (allocator_) ReferenceInfo(instruction, pos); in GetOrCreateReferenceInfo()
Dregister_allocator_linear_scan.cc824 ScopedArenaVector<LiveInterval*>* intervals, ScopedArenaVector<LiveInterval*>::iterator pos) { in RemoveIntervalAndPotentialOtherHalf() argument
825 DCHECK(intervals->begin() <= pos && pos < intervals->end()); in RemoveIntervalAndPotentialOtherHalf()
826 LiveInterval* interval = *pos; in RemoveIntervalAndPotentialOtherHalf()
828 DCHECK(pos + 1 < intervals->end()); in RemoveIntervalAndPotentialOtherHalf()
829 DCHECK_EQ(*(pos + 1), interval->GetHighInterval()); in RemoveIntervalAndPotentialOtherHalf()
830 return intervals->erase(pos, pos + 2); in RemoveIntervalAndPotentialOtherHalf()
832 DCHECK(intervals->begin() < pos); in RemoveIntervalAndPotentialOtherHalf()
833 DCHECK_EQ(*(pos - 1), interval->GetLowInterval()); in RemoveIntervalAndPotentialOtherHalf()
834 return intervals->erase(pos - 1, pos + 1); in RemoveIntervalAndPotentialOtherHalf()
836 return intervals->erase(pos); in RemoveIntervalAndPotentialOtherHalf()

123