/art/libdexfile/dex/ |
D | dex_file_types.h | 30 uint32_t index_; 32 constexpr StringIndex() : index_(std::numeric_limits<decltype(index_)>::max()) {} in StringIndex() 33 explicit constexpr StringIndex(uint32_t idx) : index_(idx) {} in StringIndex() 36 return index_ != std::numeric_limits<decltype(index_)>::max(); in IsValid() 39 return StringIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid() 43 return index_ == other.index_; 46 return index_ != other.index_; 49 return index_ < other.index_; 52 return index_ <= other.index_; 55 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 | type_reference.h | 35 : DexFileReference(file, index.index_) {} in TypeReference()
|
D | string_reference.h | 35 : DexFileReference(file, index.index_) {} in StringReference()
|
D | dex_file_verifier.cc | 103 if (UNLIKELY(!CheckIndex(idx.index_, dex_file_->NumStringIds(), error_string))) { in CheckLoadStringByIdx() 124 method_index)->name_idx_.index_; in FindMethodName() 171 if (UNLIKELY(!CheckIndex(type_idx.index_, dex_file_->NumTypeIds(), error_string))) { in CheckLoadStringByTypeIdx() 650 my_class_index.index_, in CheckClassDataItemField() 651 class_type_index.index_); in CheckClassDataItemField() 691 my_class_index.index_, in CheckClassDataItemMethod() 692 class_type_index.index_); in CheckClassDataItemMethod() 969 if (class_type_index->index_ >= header_->type_ids_size_) { in FindClassIndexAndDef() 2066 prev_item->descriptor_idx_.index_, in CheckInterTypeIdItem() 2067 item->descriptor_idx_.index_); in CheckInterTypeIdItem() [all …]
|
D | dex_file.cc | 396 int compare = return_type_idx.index_ - proto.return_type_idx_.index_; in FindProtoId() 401 compare = signature_type_idxs[i].index_ - it.GetTypeIdx().index_; in FindProtoId() 620 if (type_idx.index_ >= NumTypeIds()) { in PrettyType() 621 return StringPrintf("<<invalid-type-idx-%d>>", type_idx.index_); in PrettyType() 800 os << "StringIndex[" << index.index_ << "]"; in operator <<() 805 os << "TypeIndex[" << index.index_ << "]"; in operator <<()
|
D | dex_file.h | 478 DCHECK_LT(idx.index_, NumStringIds()) << GetLocation(); in GetStringId() 479 return string_ids_[idx.index_]; in GetStringId() 517 return idx.IsValid() && idx.index_ < NumTypeIds(); in IsTypeIndexValid() 522 DCHECK_LT(idx.index_, NumTypeIds()) << GetLocation(); in GetTypeId() 523 return type_ids_[idx.index_]; in GetTypeId()
|
D | dex_instruction.cc | 321 << " // type@" << type_idx.index_; in DumpString() 330 << " // type@" << type_idx.index_; in DumpString()
|
/art/tools/veridex/ |
D | resolver.cc | 34 type_infos_[class_def.class_idx_.index_] = *existing->second; in Run() 37 type_infos_[class_def.class_idx_.index_] = VeriClass(Primitive::Type::kPrimNot, 0, &class_def); in Run() 38 type_map_[name] = &(type_infos_[class_def.class_idx_.index_]); in Run() 84 CHECK_LT(index.index_, dex_file_.NumTypeIds()); in GetVeriClass() 86 VeriClass* cls = &type_infos_[index.index_]; in GetVeriClass() 107 type_infos_[index.index_] = VeriClass( in GetVeriClass() 109 cls = &(type_infos_[index.index_]); in GetVeriClass() 116 type_infos_[index.index_] = *cls; in GetVeriClass()
|
/art/libartbase/base/ |
D | hash_set.h | 71 BaseIterator(HashSetType* hash_set, size_t index) : index_(index), hash_set_(hash_set) { in BaseIterator() 77 return hash_set_ == other.hash_set_ && this->index_ == other.index_; 85 this->index_ = this->NextNonEmptySlot(this->index_, hash_set_); 91 this->index_ = this->NextNonEmptySlot(this->index_, hash_set_); 96 DCHECK(!hash_set_->IsFreeSlot(this->index_)); 97 return hash_set_->ElementForIndex(this->index_); 107 size_t index_; 278 if (num_buckets_ != 0 && IsFreeSlot(ret.index_)) { in begin() 287 if (num_buckets_ != 0 && IsFreeSlot(ret.index_)) { in begin() 322 size_t empty_index = it.index_; in Erase()
|
/art/runtime/mirror/ |
D | dex_cache-inl.h | 58 DCHECK_LT(string_idx.index_, GetDexFile()->NumStringIds()); in StringSlotIndex() 59 const uint32_t slot_idx = string_idx.index_ % kDexCacheStringCacheSize; in StringSlotIndex() 66 std::memory_order_relaxed).GetObjectForIndex(string_idx.index_); in GetResolvedString() 72 StringDexCachePair(resolved, string_idx.index_), std::memory_order_relaxed); in SetResolvedString() 87 if (slot->load(std::memory_order_relaxed).index == string_idx.index_) { in ClearString() 94 DCHECK_LT(type_idx.index_, GetDexFile()->NumTypeIds()); in TypeSlotIndex() 95 const uint32_t slot_idx = type_idx.index_ % kDexCacheTypeCacheSize; in TypeSlotIndex() 104 std::memory_order_relaxed).GetObjectForIndex(type_idx.index_); in GetResolvedType() 114 TypeDexCachePair(resolved, type_idx.index_), std::memory_order_release); in SetResolvedType() 124 if (slot->load(std::memory_order_relaxed).index == type_idx.index_) { in ClearResolvedType()
|
/art/dexlayout/ |
D | dex_ir.cc | 330 TypeId* type_id = new TypeId(GetStringId(disk_type_id.descriptor_idx_.index_)); in CreateTypeId() 339 ProtoId* proto_id = new ProtoId(GetStringId(disk_proto_id.shorty_idx_.index_), in CreateProtoId() 340 GetTypeId(disk_proto_id.return_type_idx_.index_), in CreateProtoId() 347 FieldId* field_id = new FieldId(GetTypeId(disk_field_id.class_idx_.index_), in CreateFieldId() 348 GetTypeId(disk_field_id.type_idx_.index_), in CreateFieldId() 349 GetStringId(disk_field_id.name_idx_.index_)); in CreateFieldId() 355 MethodId* method_id = new MethodId(GetTypeId(disk_method_id.class_idx_.index_), in CreateMethodId() 357 GetStringId(disk_method_id.name_idx_.index_)); in CreateMethodId() 363 const TypeId* class_type = GetTypeId(disk_class_def.class_idx_.index_); in CreateClassDef() 365 const TypeId* superclass = GetTypeIdOrNullPtr(disk_class_def.superclass_idx_.index_); in CreateClassDef() [all …]
|
D | dex_ir.h | 516 uint32_t GetIndex() const { return index_; } in GetIndex() 517 void SetIndex(uint32_t index) { index_ = index; } in SetIndex() 521 : Item(offset, size), index_(index) { } in IndexedItem() 523 uint32_t index_ = 0; variable
|
/art/compiler/optimizing/ |
D | load_store_analysis.h | 103 index_(index), in HeapLocation() 120 HInstruction* GetIndex() const { return index_; } in GetIndex() 130 return index_ != nullptr; in IsArray() 157 HInstruction* const index_; variable
|
D | nodes.h | 1550 size_t GetIndex() const { return index_; } 1552 void SetIndex(size_t index) { index_ = index; } 1556 : user_(user), index_(index) {} 1559 size_t index_; local 3337 index_(index) { in HClassTableGet() 3345 return other->AsClassTableGet()->GetIndex() == index_ && in InstructionDataEquals() 3350 size_t GetIndex() const { return index_; } in GetIndex() 3367 const size_t index_; variable 5362 index_(index) { in HExpression() 5369 uint8_t GetIndex() const { return index_; } in GetIndex() [all …]
|
D | code_generator_arm64.cc | 332 __ Mov(calling_convention.GetRegisterAt(0).W(), type_index.index_); in EmitNativeCode() 382 __ Mov(calling_convention.GetRegisterAt(0).W(), string_index.index_); in EmitNativeCode() 752 index_(index), in LoadReferenceWithBakerReadBarrierSlowPathARM64() 841 index_, in EmitNativeCode() 865 Location index_; member in art::arm64::LoadReferenceWithBakerReadBarrierSlowPathARM64 912 index_(index), in LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARM64() 944 Location field_offset = index_; in EmitNativeCode() 993 index_, in EmitNativeCode() 1091 Location index_; member in art::arm64::LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARM64 1119 index_(index) { in ReadBarrierForHeapReferenceSlowPathARM64() [all …]
|
D | code_generator_arm_vixl.cc | 542 __ Mov(calling_convention.GetRegisterAt(0), type_index.index_); in EmitNativeCode() 593 __ Mov(calling_convention.GetRegisterAt(0), string_index.index_); in EmitNativeCode() 878 index_(index), in LoadReferenceWithBakerReadBarrierSlowPathARMVIXL() 960 instruction_, ref_, obj_, offset_, index_, scale_factor_, /* needs_null_check */ false); in EmitNativeCode() 984 Location index_; member in art::arm::LoadReferenceWithBakerReadBarrierSlowPathARMVIXL 1029 index_(index), in LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARMVIXL() 1057 Location field_offset = index_; in EmitNativeCode() 1102 instruction_, ref_, obj_, offset_, index_, scale_factor_, /* needs_null_check */ false); in EmitNativeCode() 1201 Location index_; member in art::arm::LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARMVIXL 1230 index_(index) { in ReadBarrierForHeapReferenceSlowPathARMVIXL() [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_dexcache_entrypoints.cc | 86 type_idx.index_, in StoreTypeInBss() 104 string_idx.index_, in StoreStringInBss()
|
/art/runtime/jit/ |
D | profile_compilation_info.cc | 435 DCHECK_GE(class_id.index_, last_class_index); in Save() 436 uint16_t diff_with_last_class_index = class_id.index_ - last_class_index; in Save() 437 last_class_index = class_id.index_; in Save() 524 AddUintToBuffer(buffer, dex_classes[i].index_); in AddInlineCacheToBuffer() 1141 if (dex_classes[i].index_ >= dex_file_for_inline_cache_check->NumTypeIds()) { in VerifyProfileData() 1146 << dex_classes[i].index_ in VerifyProfileData() 1157 if (class_id.index_ >= dex_file->NumTypeIds()) { in VerifyProfileData() 1159 << dex_location << " class_id=" << class_id.index_ << " NumClassIds=" in VerifyProfileData() 1703 << "," << class_ref.type_index.index_ << ")"; in DumpInfo() 1733 os << class_it.index_ << ","; in DumpInfo() [all …]
|
/art/runtime/verifier/ |
D | verifier_deps.cc | 234 CHECK_GE(new_id.index_, num_ids_in_dex); // check for overflows in GetIdFromString() 243 if (string_id.index_ < num_ids_in_dex) { in GetStringFromId() 248 string_id.index_ -= num_ids_in_dex; in GetStringFromId() 249 CHECK_LT(string_id.index_, deps->strings_.size()); in GetStringFromId() 250 return deps->strings_[string_id.index_]; in GetStringFromId() 566 return in.index_; in Encode() 569 return in.index_; in Encode()
|
/art/compiler/linker/ |
D | relative_patcher_test.h | 160 bss_begin_ + string_index_to_offset_map_.Get(patch.TargetStringIndex().index_); in Link() 167 string_index_to_offset_map_.Get(patch.TargetStringIndex().index_); in Link()
|
/art/runtime/utils/ |
D | dex_cache_arrays_layout-inl.h | 80 type_idx.index_ % mirror::DexCache::kDexCacheTypeCacheSize); in TypeOffset()
|
/art/compiler/ |
D | verifier_deps_test.cc | 464 ASSERT_LT(id_Main1.index_, primary_dex_file_->NumStringIds()); in TEST_F() 468 ASSERT_LT(id_Main2.index_, primary_dex_file_->NumStringIds()); in TEST_F() 472 ASSERT_GE(id_Lorem1.index_, primary_dex_file_->NumStringIds()); in TEST_F() 476 ASSERT_GE(id_Lorem2.index_, primary_dex_file_->NumStringIds()); in TEST_F()
|
/art/runtime/ |
D | transaction.cc | 232 DCHECK_LT(string_idx.index_, dex_cache->GetDexFile()->NumStringIds()); in RecordResolveString() 597 DCHECK_LT(string_idx_.index_, dex_cache->GetDexFile()->NumStringIds()); in ResolveStringLog()
|
/art/dexdump/ |
D | dexdump.cc | 601 fprintf(gOutFile, "class_idx : %d\n", pClassDef.class_idx_.index_); in dumpClassDef() 604 fprintf(gOutFile, "superclass_idx : %d\n", pClassDef.superclass_idx_.index_); in dumpClassDef() 607 fprintf(gOutFile, "source_file_idx : %d\n", pClassDef.source_file_idx_.index_); in dumpClassDef() 1593 pClassDef.source_file_idx_.index_, fileName); in dumpClass()
|