/art/libdexfile/dex/ |
D | dex_file_types.h | 32 T index_; 34 constexpr DexIndex() : index_(std::numeric_limits<decltype(index_)>::max()) {} in DexIndex() 35 explicit constexpr DexIndex(T idx) : index_(idx) {} in DexIndex() 38 return index_ != std::numeric_limits<decltype(index_)>::max(); in IsValid() 41 return DexIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid() 44 return index_ == other.index_; 47 return index_ != other.index_; 50 return index_ < other.index_; 53 return index_ <= other.index_; 56 return index_ > other.index_; [all …]
|
D | bytecode_utils.h | 110 index_(0u) {} in DexSwitchTableIterator() 112 bool Done() const { return index_ >= num_entries_; } in Done() 113 bool IsLast() const { return index_ == num_entries_ - 1; } in IsLast() 117 index_++; in Advance() 121 return table_.IsSparse() ? table_.GetEntryAt(index_) : table_.GetEntryAt(0) + index_; in CurrentKey() 125 return table_.GetEntryAt(index_ + first_target_offset_); in CurrentTargetOffset() 128 uint32_t GetDexPcForCurrentIndex() const { return table_.GetDexPcForIndex(index_); } in GetDexPcForCurrentIndex() 135 size_t index_; variable
|
D | dex_file_verifier.cc | 132 DCHECK_LT(string_idx.index_, header->string_ids_size_); in GetString() 134 reinterpret_cast<const dex::StringId*>(begin + header->string_ids_off_) + string_idx.index_; in GetString() 147 CHECK_LT(class_idx.index_, header->type_ids_size_); in GetClass() 150 reinterpret_cast<const dex::TypeId*>(begin + header->type_ids_off_) + class_idx.index_; in GetClass() 449 DCHECK_LT(idx.index_, header_->type_ids_size_); in VerifyTypeDescriptor() 451 char cached_char = verified_type_descriptors_[idx.index_]; in VerifyTypeDescriptor() 466 verified_type_descriptors_[idx.index_] = descriptor[0]; in VerifyTypeDescriptor() 846 my_class_index.index_, in CheckClassDataItemField() 847 class_type_index.index_); in CheckClassDataItemField() 877 my_class_index.index_, in CheckClassDataItemMethod() [all …]
|
D | dex_file.cc | 375 int compare = return_type_idx.index_ - proto.return_type_idx_.index_; in FindProtoId() 380 compare = signature_type_idxs[i].index_ - it.GetTypeIdx().index_; in FindProtoId() 569 if (type_idx.index_ >= NumTypeIds()) { in PrettyType() 570 return StringPrintf("<<invalid-type-idx-%d>>", type_idx.index_); in PrettyType() 673 os << "ProtoIndex[" << index.index_ << "]"; in operator <<() 678 os << "StringIndex[" << index.index_ << "]"; in operator <<() 683 os << "TypeIndex[" << index.index_ << "]"; in operator <<()
|
D | type_reference.h | 35 : DexFileReference(dex_file, index.index_) {} in TypeReference()
|
D | class_accessor.h | 49 return index_; in GetIndex() 85 uint32_t index_ = 0u; variable 143 index_ = 0u; in NextSection() 170 index_ = 0u; in NextSection()
|
D | string_reference.h | 35 : DexFileReference(file, index.index_) {} in StringReference()
|
D | dex_file.h | 244 DCHECK_LT(idx.index_, NumStringIds()) << GetLocation(); in GetStringId() 245 return string_ids_[idx.index_]; in GetStringId() 282 return idx.IsValid() && idx.index_ < NumTypeIds(); in IsTypeIndexValid() 287 DCHECK_LT(idx.index_, NumTypeIds()) << GetLocation(); in GetTypeId() 288 return type_ids_[idx.index_]; in GetTypeId() 466 DCHECK_LT(idx.index_, NumProtoIds()) << GetLocation(); in GetProtoId() 467 return proto_ids_[idx.index_]; in GetProtoId()
|
D | class_accessor-inl.h | 67 index_ += DecodeUnsignedLeb128(&ptr_pos_); in Read() 82 index_ += DecodeUnsignedLeb128(&ptr_pos_); in Read()
|
D | dex_instruction.cc | 321 << " // type@" << type_idx.index_; in DumpString() 330 << " // type@" << type_idx.index_; in DumpString()
|
/art/runtime/mirror/ |
D | dex_cache-inl.h | 80 DCHECK_LT(string_idx.index_, GetDexFile()->NumStringIds()); in StringSlotIndex() 81 const uint32_t slot_idx = string_idx.index_ % kDexCacheStringCacheSize; in StringSlotIndex() 93 DCHECK_LT(string_idx.index_, num_preresolved_strings); in GetResolvedString() 95 mirror::String* string = preresolved_strings[string_idx.index_].Read(); in GetResolvedString() 102 std::memory_order_relaxed).GetObjectForIndex(string_idx.index_); in GetResolvedString() 108 StringDexCachePair(resolved, string_idx.index_), std::memory_order_relaxed); in SetResolvedString() 120 DCHECK_LT(string_idx.index_, GetDexFile()->NumStringIds()); in SetPreResolvedString() 121 GetPreResolvedStrings()[string_idx.index_] = GcRoot<mirror::String>(resolved); in SetPreResolvedString() 145 if (slot->load(std::memory_order_relaxed).index == string_idx.index_) { in ClearString() 152 DCHECK_LT(type_idx.index_, GetDexFile()->NumTypeIds()); in TypeSlotIndex() [all …]
|
/art/tools/dexanalyze/ |
D | dexanalyze_bytecode.cc | 222 TypeLinkage& current_type = types[current_class_type.index_]; in ProcessCodeItem() 273 uint32_t field_idx = types[holder_type.index_].fields_.Get(dex_field_idx); in ProcessCodeItem() 280 ++current_type.types_.FindOrAdd(holder_type.index_)->second; in ProcessCodeItem() 281 ++types[holder_type.index_].fields_.FindOrAdd(dex_field_idx)->second; in ProcessCodeItem() 283 uint32_t type_idx = current_type.types_.Get(holder_type.index_); in ProcessCodeItem() 284 uint32_t field_idx = types[holder_type.index_].fields_.Get(dex_field_idx); in ProcessCodeItem() 331 ++types[holder_type.index_].fields_.FindOrAdd(dex_field_idx)->second; in ProcessCodeItem() 333 uint32_t field_idx = types[holder_type.index_].fields_.Get(dex_field_idx); in ProcessCodeItem() 341 ++types[current_class_type.index_].types_.FindOrAdd(holder_type.index_)->second; in ProcessCodeItem() 342 ++types[holder_type.index_].fields_.FindOrAdd(dex_field_idx)->second; in ProcessCodeItem() [all …]
|
D | dexanalyze_experiments.cc | 288 ++types_accessed[dex_file.GetFieldId(dex_field_idx).class_idx_.index_]; in ProcessDexFile() 302 ++types_accessed[dex_file.GetFieldId(dex_field_idx).class_idx_.index_]; in ProcessDexFile() 325 unique_string_ids.insert(string_index.index_); in ProcessDexFile() 373 unique_string_ids.insert(string_index.index_); in ProcessDexFile() 381 ++types_accessed[dex_file.GetMethodId(method_idx).class_idx_.index_]; in ProcessDexFile() 392 ++types_accessed[dex_file.GetMethodId(method_idx).class_idx_.index_]; in ProcessDexFile() 403 ++types_accessed[dex_file.GetMethodId(method_idx).class_idx_.index_]; in ProcessDexFile() 414 ++types_accessed[dex_file.GetMethodId(method_idx).class_idx_.index_]; in ProcessDexFile() 425 ++types_accessed[dex_file.GetMethodId(method_idx).class_idx_.index_]; in ProcessDexFile()
|
/art/libartbase/base/ |
D | hash_set.h | 48 HashSetIterator(HashSetType* hash_set, size_t index) : index_(index), hash_set_(hash_set) {} in HashSetIterator() 57 : index_(other.index_), hash_set_(other.hash_set_) {} in HashSetIterator() 63 return hash_set_ == other.hash_set_ && this->index_ == other.index_; 71 this->index_ = hash_set_->NextNonEmptySlot(index_); 82 DCHECK(!hash_set_->IsFreeSlot(this->index_)); 83 return hash_set_->ElementForIndex(this->index_); 91 size_t index_; 110 return lhs.index_ == rhs.index_; 328 if (num_buckets_ != 0 && IsFreeSlot(ret.index_)) { in begin() 337 if (num_buckets_ != 0 && IsFreeSlot(ret.index_)) { in begin() [all …]
|
/art/tools/veridex/ |
D | resolver.cc | 32 const uint32_t type_idx = accessor.GetClassIdx().index_; in Run() 74 CHECK_LT(index.index_, dex_file_.NumTypeIds()); in GetVeriClass() 76 VeriClass* cls = &type_infos_[index.index_]; in GetVeriClass() 97 type_infos_[index.index_] = VeriClass( in GetVeriClass() 99 cls = &(type_infos_[index.index_]); in GetVeriClass() 106 type_infos_[index.index_] = *cls; in GetVeriClass()
|
/art/runtime/ |
D | reflective_value_visitor.h | 168 : ReflectionSourceInfo(type), index_(index), cache_(cache) {} in DexCacheSourceInfo() 172 os << " index=" << index_ << " cache_=" << cache_.PtrUnchecked() in Describe() 177 size_t index_;
|
/art/dexlayout/ |
D | dex_ir_builder.cc | 442 header_->StringIds()[disk_type_id.descriptor_idx_.index_]); in CreateTypeId() 453 header_->StringIds()[disk_proto_id.shorty_idx_.index_], in CreateProtoId() 454 header_->TypeIds()[disk_proto_id.return_type_idx_.index_], in CreateProtoId() 463 header_->TypeIds()[disk_field_id.class_idx_.index_], in CreateFieldId() 464 header_->TypeIds()[disk_field_id.type_idx_.index_], in CreateFieldId() 465 header_->StringIds()[disk_field_id.name_idx_.index_]); in CreateFieldId() 473 header_->TypeIds()[disk_method_id.class_idx_.index_], in CreateMethodId() 474 header_->ProtoIds()[disk_method_id.proto_idx_.index_], in CreateMethodId() 475 header_->StringIds()[disk_method_id.name_idx_.index_]); in CreateMethodId() 480 const TypeId* class_type = header_->TypeIds()[disk_class_def.class_idx_.index_]; in CreateClassDef() [all …]
|
/art/compiler/optimizing/ |
D | load_store_analysis.h | 107 index_(index), in HeapLocation() 125 HInstruction* GetIndex() const { return index_; } in GetIndex() 135 return index_ != nullptr; in IsArray() 166 HInstruction* const index_; variable
|
D | nodes.h | 1658 size_t GetIndex() const { return index_; } 1660 void SetIndex(size_t index) { index_ = index; } 1664 : user_(user), index_(index) {} 1667 size_t index_; local 3470 index_(index) { in HClassTableGet() 3478 return other->AsClassTableGet()->GetIndex() == index_ && in InstructionDataEquals() 3483 size_t GetIndex() const { return index_; } in GetIndex() 3500 const size_t index_; variable 5688 index_(index) { in HExpression() 5695 uint8_t GetIndex() const { return index_; } in GetIndex() [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_dexcache_entrypoints.cc | 89 type_idx.index_, in StoreTypeInBss() 107 string_idx.index_, in StoreStringInBss()
|
/art/runtime/verifier/ |
D | verifier_deps.cc | 248 CHECK_GE(new_id.index_, num_ids_in_dex); // check for overflows in GetIdFromString() 257 if (string_id.index_ < num_ids_in_dex) { in GetStringFromId() 262 string_id.index_ -= num_ids_in_dex; in GetStringFromId() 263 CHECK_LT(string_id.index_, deps->strings_.size()); in GetStringFromId() 264 return deps->strings_[string_id.index_]; in GetStringFromId() 590 return in.index_; in Encode() 593 return in.index_; in Encode()
|
/art/libprofile/profile/ |
D | profile_compilation_info.cc | 481 DCHECK_GE(class_id.index_, last_class_index); in Save() 482 uint16_t diff_with_last_class_index = class_id.index_ - last_class_index; in Save() 483 last_class_index = class_id.index_; in Save() 571 AddUintToBuffer(buffer, dex_classes[i].index_); in AddInlineCacheToBuffer() 1173 if (dex_classes[i].index_ >= dex_file_for_inline_cache_check->NumTypeIds()) { in VerifyProfileData() 1178 << dex_classes[i].index_ in VerifyProfileData() 1189 if (class_id.index_ >= dex_file->NumTypeIds()) { in VerifyProfileData() 1191 << dex_location << " class_id=" << class_id.index_ << " NumClassIds=" in VerifyProfileData() 1707 << "," << class_ref.type_index.index_ << ")"; in DumpInfo() 1737 os << class_it.index_ << ","; in DumpInfo() [all …]
|
/art/runtime/utils/ |
D | dex_cache_arrays_layout-inl.h | 80 type_idx.index_ % mirror::DexCache::kDexCacheTypeCacheSize); in TypeOffset()
|
/art/dex2oat/linker/ |
D | relative_patcher_test.h | 182 bss_begin_ + string_index_to_offset_map_.Get(patch.TargetStringIndex().index_); in Link() 189 string_index_to_offset_map_.Get(patch.TargetStringIndex().index_); in Link()
|
/art/dex2oat/ |
D | verifier_deps_test.cc | 512 ASSERT_LT(id_Main1.index_, primary_dex_file_->NumStringIds()); in TEST_F() 516 ASSERT_LT(id_Main2.index_, primary_dex_file_->NumStringIds()); in TEST_F() 520 ASSERT_GE(id_Lorem1.index_, primary_dex_file_->NumStringIds()); in TEST_F() 524 ASSERT_GE(id_Lorem2.index_, primary_dex_file_->NumStringIds()); in TEST_F()
|