Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 68) 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 …]
/art/runtime/gc/space/
Dbump_pointer_space-walk-inl.h34 uint8_t* pos = Begin(); in Walk() local
36 uint8_t* main_end = pos; in Walk()
69 while (pos < main_end) { in Walk()
70 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in Walk()
75 pos = main_end; in Walk()
79 pos = reinterpret_cast<uint8_t*>(GetNextObject(obj)); in Walk()
85 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in Walk()
86 const mirror::Object* end_obj = reinterpret_cast<const mirror::Object*>(pos + block_size); in Walk()
95 pos += block_size; in Walk()
100 CHECK_EQ(pos, end); in Walk()
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/tools/checker/match/
Dline.py39 def get_variable(name, variables, pos): argument
43 Logger.test_failed('Missing definition of variable "{}"'.format(name), pos, variables)
46 def set_variable(name, value, variables, pos): argument
50 Logger.test_failed('Multiple definitions of variable "{}"'.format(name), pos, variables)
53 def match_words(checker_word, string_word, variables, pos): argument
60 pattern = re.escape(get_variable(expression.name, variables, pos))
68 ' compiling fails with error: {}'.format(pattern, pos.filename, pos.line_no, e))
79 variables = set_variable(expression.name, string_word[:match.end()], variables, pos)
120 def get_eval_text(expression, variables, pos): argument
125 return get_variable(expression.name, variables, pos)
/art/libartbase/base/
Darray_slice.h122 ArraySlice<T> SubArray(size_type pos) { in SubArray() argument
123 return SubArray(pos, size() - pos); in SubArray()
126 ArraySlice<const T> SubArray(size_type pos) const { in SubArray() argument
127 return SubArray(pos, size() - pos); in SubArray()
130 ArraySlice<T> SubArray(size_type pos, size_type length) { in SubArray() argument
131 DCHECK_LE(pos, size()); in SubArray()
132 DCHECK_LE(length, size() - pos); in SubArray()
133 return ArraySlice<T>(&AtUnchecked(pos), length, element_size_); in SubArray()
136 ArraySlice<const T> SubArray(size_type pos, size_type length) const { in SubArray() argument
137 DCHECK_LE(pos, size()); in SubArray()
[all …]
Darray_ref.h168 ArrayRef SubArray(size_type pos) { in SubArray() argument
169 return SubArray(pos, size() - pos); in SubArray()
172 ArrayRef<const T> SubArray(size_type pos) const { in SubArray() argument
173 return SubArray(pos, size() - pos); in SubArray()
176 ArrayRef SubArray(size_type pos, size_type length) { in SubArray() argument
177 DCHECK_LE(pos, size()); in SubArray()
178 DCHECK_LE(length, size() - pos); in SubArray()
179 return ArrayRef(data() + pos, length); in SubArray()
182 ArrayRef<const T> SubArray(size_type pos, size_type length) const { in SubArray() argument
183 DCHECK_LE(pos, size()); in SubArray()
[all …]
Dsafe_map.h77 iterator erase(const_iterator pos) { return map_.erase(pos); } in erase() argument
78 iterator erase(iterator pos) { return map_.erase(pos); } in erase() argument
82 node_type extract(const_iterator pos) { return map_.extract(pos); } in extract() argument
126 iterator PutBefore(const_iterator pos, const K& k, const V& v) { in PutBefore() argument
128 DCHECK(pos == map_.end() || map_.key_comp()(k, pos->first)); in PutBefore()
129 DCHECK(pos == map_.begin() || map_.key_comp()((--const_iterator(pos))->first, k)); in PutBefore()
130 return map_.emplace_hint(pos, k, v); in PutBefore()
132 iterator PutBefore(const_iterator pos, const K& k, V&& v) { in PutBefore() argument
134 DCHECK(pos == map_.end() || map_.key_comp()(k, pos->first)); in PutBefore()
135 DCHECK(pos == map_.begin() || map_.key_comp()((--const_iterator(pos))->first, k)); in PutBefore()
[all …]
Dtransform_array_ref.h117 TransformArrayRef SubArray(size_type pos) { in SubArray() argument
118 return TransformArrayRef(base().subarray(pos), GetFunction()); in SubArray()
120 TransformArrayRef SubArray(size_type pos) const { in SubArray() argument
121 return TransformArrayRef(base().subarray(pos), GetFunction()); in SubArray()
123 TransformArrayRef SubArray(size_type pos, size_type length) const { in SubArray() argument
124 return TransformArrayRef(base().subarray(pos, length), GetFunction()); in SubArray()
/art/tools/veridex/
Dhidden_api.cc50 size_t pos = signature.find("->"); in HiddenApi() local
51 if (pos != std::string::npos) { in HiddenApi()
53 AddSignatureToApiList(signature.substr(0, pos), membership); in HiddenApi()
54 pos = signature.find('('); in HiddenApi()
55 if (pos != std::string::npos) { in HiddenApi()
57 AddSignatureToApiList(signature.substr(0, pos), membership); in HiddenApi()
59 pos = signature.find(':'); in HiddenApi()
60 if (pos != std::string::npos) { in HiddenApi()
62 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/compiler/
Dcfi_test.h87 size_t pos = str.find(substr); in FindEndOf() local
88 CHECK_NE(std::string::npos, pos); in FindEndOf()
89 return pos + strlen(substr); in FindEndOf()
99 size_t pos; in ReformatAsm() local
100 while ((pos = line.find(" ")) != std::string::npos) { in ReformatAsm()
101 line = line.replace(pos, 2, " "); in ReformatAsm()
124 size_t pos; in ReformatCfi() local
125 if ((pos = new_line.find(bad_reg)) != std::string::npos) { in ReformatCfi()
126 new_line = new_line.replace(pos, strlen(bad_reg), ""); in ReformatCfi()
129 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/test/646-checker-arraycopy-large-cst-pos/
DAndroid.bp3 // Build rules for ART run-test `646-checker-arraycopy-large-cst-pos`.
16 name: "art-run-test-646-checker-arraycopy-large-cst-pos",
21 ":art-run-test-646-checker-arraycopy-large-cst-pos-expected-stdout",
22 ":art-run-test-646-checker-arraycopy-large-cst-pos-expected-stderr",
31 name: "art-run-test-646-checker-arraycopy-large-cst-pos-expected-stdout",
32 out: ["art-run-test-646-checker-arraycopy-large-cst-pos-expected-stdout.txt"],
39 name: "art-run-test-646-checker-arraycopy-large-cst-pos-expected-stderr",
40 out: ["art-run-test-646-checker-arraycopy-large-cst-pos-expected-stderr.txt"],
/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.h94 const char* pos = strrchr(location, kMultiDexSeparator); in GetBaseLocation() local
95 return (pos == nullptr) ? location : std::string(location, pos - location); in GetBaseLocation()
106 size_t pos = location.rfind(kMultiDexSeparator); in GetMultiDexSuffix() local
107 return (pos == std::string::npos) ? std::string() : location.substr(pos); in GetMultiDexSuffix()
Ddescriptors_names.cc112 size_t pos = 0; in InversePrettyDescriptor() local
114 while ((pos = pretty_descriptor.find(array_indicator, pos)) != std::string::npos) { in InversePrettyDescriptor()
116 l = pos; in InversePrettyDescriptor()
119 pos += array_indicator.length(); in InversePrettyDescriptor()
/art/libarttools/tools/
Dcmdline_builder.h35 size_t pos = 0; in ContainsOneFormatSpecifier() local
36 while ((pos = format.find('%', pos)) != std::string_view::npos) { in ContainsOneFormatSpecifier()
37 if (pos == format.length() - 1) { in ContainsOneFormatSpecifier()
41 if (format[pos + 1] == specifier) { in ContainsOneFormatSpecifier()
43 } else if (format[pos + 1] != '%') { in ContainsOneFormatSpecifier()
47 pos += 2; in ContainsOneFormatSpecifier()
Dart_exec.cc122 size_t pos = arg.find('='); in ParseOptions() local
123 if (pos == std::string_view::npos) { in ParseOptions()
126 options.envs[std::string(arg.substr(/*pos=*/0, /*n=*/pos))] = in ParseOptions()
127 std::string(arg.substr(pos + 1)); in ParseOptions()
/art/runtime/native/
Dstring_array_utils.h48 size_t pos = 0u; in CreateStringArray() local
58 DCHECK_LT(pos, size); in CreateStringArray()
60 pos, oentry); in CreateStringArray()
61 ++pos; in CreateStringArray()
63 DCHECK_EQ(pos, size); in CreateStringArray()
/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/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/compiler/utils/
Dassembler_test_base.h249 size_t pos = 0; in Replace() local
250 for (auto match = str.find(from); match != str.npos; match = str.find(from, pos)) { in Replace()
251 output += str.substr(pos, match - pos); in Replace()
253 pos = match + from.size(); in Replace()
255 output += str.substr(pos, str.size() - pos); in Replace()
/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()

123