Home
last modified time | relevance | path

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

123

/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.cc142 for (size_t pos = kStartPos; pos < objects.Size(); ) { in VisitObjects() local
143 mirror::Object* object = reinterpret_cast<mirror::Object*>(base + objects.Offset() + pos); in VisitObjects()
145 pos += RoundUp(object->SizeOf(), kObjectAlignment); in VisitObjects()
Doat_file_assistant.cc143 size_t pos = dex_location_.rfind('/'); in OatFileAssistant() local
144 if (pos == std::string::npos) { in OatFileAssistant()
149 std::string parent = dex_location_.substr(0, pos); in OatFileAssistant()
500 size_t pos = location.rfind('/'); in DexLocationToOdexNames() local
501 if (pos == std::string::npos) { in DexLocationToOdexNames()
505 std::string dir = location.substr(0, pos+1); in DexLocationToOdexNames()
518 std::string file = location.substr(pos+1); in DexLocationToOdexNames()
519 pos = file.rfind('.'); in DexLocationToOdexNames()
520 if (pos == std::string::npos) { in DexLocationToOdexNames()
524 std::string base = file.substr(0, pos); in DexLocationToOdexNames()
/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.cc123 size_t pos = recent_free_pos_; in FindRecentFreedObject() local
128 pos = pos != 0 ? pos - 1 : kRecentFreeMask; in FindRecentFreedObject()
129 if (recent_freed_objects_[pos].first == obj) { in FindRecentFreedObject()
130 return recent_freed_objects_[pos].second; in FindRecentFreedObject()
Dregion_space-inl.h261 uint8_t* pos = r->Begin(); in WalkNonLargeRegion() local
279 r->LiveBytes() != static_cast<size_t>(top - pos); in WalkNonLargeRegion()
282 reinterpret_cast<uintptr_t>(pos), in WalkNonLargeRegion()
286 while (pos < top) { in WalkNonLargeRegion()
287 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in WalkNonLargeRegion()
290 pos = reinterpret_cast<uint8_t*>(GetNextObject(obj)); in WalkNonLargeRegion()
/art/libartbase/base/
Darray_slice.h108 ArraySlice<T> SubArray(size_type pos) { in SubArray() argument
109 return SubArray(pos, size() - pos); in SubArray()
112 ArraySlice<const T> SubArray(size_type pos) const { in SubArray() argument
113 return SubArray(pos, size() - pos); in SubArray()
116 ArraySlice<T> SubArray(size_type pos, size_type length) { in SubArray() argument
117 DCHECK_LE(pos, size()); in SubArray()
118 DCHECK_LE(length, size() - pos); in SubArray()
119 return ArraySlice<T>(&AtUnchecked(pos), length, element_size_); in SubArray()
122 ArraySlice<const T> SubArray(size_type pos, size_type length) const { in SubArray() argument
123 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.h106 iterator PutBefore(const_iterator pos, const K& k, const V& v) { in PutBefore() argument
108 DCHECK(pos == map_.end() || map_.key_comp()(k, pos->first)); in PutBefore()
109 DCHECK(pos == map_.begin() || map_.key_comp()((--const_iterator(pos))->first, k)); in PutBefore()
110 return map_.emplace_hint(pos, k, v); in PutBefore()
112 iterator PutBefore(const_iterator pos, const K& k, V&& v) { in PutBefore() argument
114 DCHECK(pos == map_.end() || map_.key_comp()(k, pos->first)); in PutBefore()
115 DCHECK(pos == map_.begin() || map_.key_comp()((--const_iterator(pos))->first, k)); in PutBefore()
116 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()
Dutils.cc303 size_t pos = line.find_first_not_of(" \t", pattern.size()); in GetProcessStatus() local
304 if (UNLIKELY(pos == std::string::npos)) { in GetProcessStatus()
307 return std::string(line, pos); in GetProcessStatus()
/art/tools/veridex/
Dhidden_api.cc47 size_t pos = signature.find("->"); in HiddenApi() local
48 if (pos != std::string::npos) { in HiddenApi()
50 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()
56 pos = signature.find(':'); in HiddenApi()
57 if (pos != std::string::npos) { in HiddenApi()
59 AddSignatureToApiList(signature.substr(0, pos), membership); in HiddenApi()
/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.py34 def getVariable(name, variables, pos): argument
38 Logger.testFailed("Missing definition of variable \"{}\"".format(name), pos, variables)
40 def setVariable(name, value, variables, pos): argument
44 Logger.testFailed("Multiple definitions of variable \"{}\"".format(name), pos, variables)
46 def matchWords(checkerWord, stringWord, variables, pos): argument
53 pattern = re.escape(getVariable(expression.name, variables, pos))
65 variables = setVariable(expression.name, stringWord[:match.end()], variables, pos)
104 def getEvalText(expression, variables, pos): argument
109 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/536-checker-intrinsic-optimization/src/
DMain.java166 static public char $opt$noinline$stringCharAt(String s, int pos) { in $opt$noinline$stringCharAt() argument
168 return s.charAt(pos); in $opt$noinline$stringCharAt()
193 static public char $opt$noinline$stringCharAtCatch(String s, int pos) { in $opt$noinline$stringCharAtCatch() argument
196 return s.charAt(pos); in $opt$noinline$stringCharAtCatch()
434 public static char $noinline$runSmaliTest(String name, String str, int pos) { in $noinline$runSmaliTest() argument
438 return (Character) m.invoke(null, str, pos); in $noinline$runSmaliTest()
/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/openjdkjvmti/
Dti_field.cc216 auto pos = env->modify_watched_fields.find(art::jni::DecodeArtField(field)); in ClearFieldModificationWatch() local
217 if (pos == env->modify_watched_fields.end()) { in ClearFieldModificationWatch()
220 env->modify_watched_fields.erase(pos); in ClearFieldModificationWatch()
250 auto pos = env->access_watched_fields.find(art::jni::DecodeArtField(field)); in ClearFieldAccessWatch() local
251 if (pos == env->access_watched_fields.end()) { in ClearFieldAccessWatch()
254 env->access_watched_fields.erase(pos); in ClearFieldAccessWatch()
Dti_breakpoint.cc121 auto pos = env->breakpoints.find(/* Breakpoint */ {art_method, location}); in ClearBreakpoint() local
122 if (pos == env->breakpoints.end()) { in ClearBreakpoint()
125 env->breakpoints.erase(pos); in ClearBreakpoint()
/art/compiler/optimizing/
Dload_store_analysis.h30 ReferenceInfo(HInstruction* reference, size_t pos) in ReferenceInfo() argument
32 position_(pos), in ReferenceInfo()
338 size_t pos = 0; in BuildAliasingMatrix() local
344 aliasing_matrix_.SetBit(CheckedAliasingMatrixPosition(i, j, pos)); in BuildAliasingMatrix()
346 pos++; in BuildAliasingMatrix()
434 size_t pos = ref_info_array_.size(); in GetOrCreateReferenceInfo() local
435 ref_info = new (GetGraph()->GetAllocator()) 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