/art/runtime/ |
D | image-inl.h | 55 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/ |
D | bump_pointer_space-walk-inl.h | 34 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()
|
D | malloc_space.cc | 122 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/ |
D | line.py | 39 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/ |
D | array_slice.h | 122 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 …]
|
D | array_ref.h | 168 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 …]
|
D | safe_map.h | 77 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 …]
|
D | transform_array_ref.h | 117 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/ |
D | hidden_api.cc | 50 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()
|
D | hidden_api.h | 98 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/ |
D | Main.java | 73 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/ |
D | cfi_test.h | 87 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/ |
D | Offsettable.java | 87 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/ |
D | Android.bp | 3 // 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/ |
D | type_lookup_table.cc | 54 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()
|
D | dex_file_loader.h | 94 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()
|
D | descriptors_names.cc | 112 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/ |
D | cmdline_builder.h | 35 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()
|
D | art_exec.cc | 122 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/ |
D | string_array_utils.h | 48 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/ |
D | Test1901.java | 126 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/ |
D | Test1911.java | 195 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/ |
D | Main.java | 194 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/ |
D | assembler_test_base.h | 249 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/ |
D | ti_field.cc | 297 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()
|