/art/runtime/ |
D | dex_file_types.h | 28 uint32_t index_; 30 constexpr StringIndex() : index_(std::numeric_limits<decltype(index_)>::max()) {} in StringIndex() 31 explicit constexpr StringIndex(uint32_t idx) : index_(idx) {} in StringIndex() 34 return index_ != std::numeric_limits<decltype(index_)>::max(); in IsValid() 37 return StringIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid() 41 return index_ == other.index_; 44 return index_ != other.index_; 47 return index_ < other.index_; 50 return index_ <= other.index_; 53 return index_ > other.index_; [all …]
|
D | bytecode_utils.h | 139 index_(0u) {} in DexSwitchTableIterator() 141 bool Done() const { return index_ >= num_entries_; } in Done() 142 bool IsLast() const { return index_ == num_entries_ - 1; } in IsLast() 146 index_++; in Advance() 150 return table_.IsSparse() ? table_.GetEntryAt(index_) : table_.GetEntryAt(0) + index_; in CurrentKey() 154 return table_.GetEntryAt(index_ + first_target_offset_); in CurrentTargetOffset() 157 uint32_t GetDexPcForCurrentIndex() const { return table_.GetDexPcForIndex(index_); } in GetDexPcForCurrentIndex() 164 size_t index_; variable
|
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() 635 my_class_index.index_, in CheckClassDataItemField() 636 class_type_index.index_); in CheckClassDataItemField() 676 my_class_index.index_, in CheckClassDataItemMethod() 677 class_type_index.index_); in CheckClassDataItemMethod() 949 if (class_type_index->index_ >= header_->type_ids_size_) { in FindClassIndexAndDef() 2043 prev_item->descriptor_idx_.index_, in CheckInterTypeIdItem() 2044 item->descriptor_idx_.index_); in CheckInterTypeIdItem() [all …]
|
D | dex_file.cc | 855 int compare = return_type_idx.index_ - proto.return_type_idx_.index_; in FindProtoId() 860 compare = signature_type_idxs[i].index_ - it.GetTypeIdx().index_; in FindProtoId() 1337 if (type_idx.index_ >= NumTypeIds()) { in PrettyType() 1338 return StringPrintf("<<invalid-type-idx-%d>>", type_idx.index_); in PrettyType() 1596 os << "StringIndex[" << index.index_ << "]"; in operator <<() 1601 os << "TypeIndex[" << index.index_ << "]"; in operator <<()
|
D | dex_file.h | 548 DCHECK_LT(idx.index_, NumStringIds()) << GetLocation(); in GetStringId() 549 return string_ids_[idx.index_]; in GetStringId() 587 return idx.IsValid() && idx.index_ < NumTypeIds(); in IsTypeIndexValid() 592 DCHECK_LT(idx.index_, NumTypeIds()) << GetLocation(); in GetTypeId() 593 return type_ids_[idx.index_]; in GetTypeId()
|
D | dex_instruction.cc | 301 << " // type@" << type_idx.index_; in DumpString() 310 << " // type@" << type_idx.index_; in DumpString()
|
D | transaction.cc | 193 DCHECK_LT(string_idx.index_, dex_cache->GetDexFile()->NumStringIds()); in RecordResolveString() 555 DCHECK_LT(string_idx_.index_, dex_cache->GetDexFile()->NumStringIds()); in ResolveStringLog()
|
D | oat_file_manager.cc | 176 uint16_t type_idx = class_def.class_idx_.index_; in GenerateTypeIndexes()
|
/art/runtime/base/ |
D | hash_set.h | 67 BaseIterator(HashSetType* hash_set, size_t index) : index_(index), hash_set_(hash_set) { in BaseIterator() 73 return hash_set_ == other.hash_set_ && this->index_ == other.index_; 81 this->index_ = this->NextNonEmptySlot(this->index_, hash_set_); 87 this->index_ = this->NextNonEmptySlot(this->index_, hash_set_); 92 DCHECK(!hash_set_->IsFreeSlot(this->index_)); 93 return hash_set_->ElementForIndex(this->index_); 103 size_t index_; 274 if (num_buckets_ != 0 && IsFreeSlot(ret.index_)) { in begin() 283 if (num_buckets_ != 0 && IsFreeSlot(ret.index_)) { in begin() 318 size_t empty_index = it.index_; in Erase()
|
/art/runtime/mirror/ |
D | dex_cache-inl.h | 57 DCHECK_LT(string_idx.index_, GetDexFile()->NumStringIds()); in StringSlotIndex() 58 const uint32_t slot_idx = string_idx.index_ % kDexCacheStringCacheSize; in StringSlotIndex() 65 std::memory_order_relaxed).GetObjectForIndex(string_idx.index_); in GetResolvedString() 71 StringDexCachePair(resolved, string_idx.index_), std::memory_order_relaxed); in SetResolvedString() 86 if (slot->load(std::memory_order_relaxed).index == string_idx.index_) { in ClearString() 93 DCHECK_LT(type_idx.index_, GetDexFile()->NumTypeIds()); in TypeSlotIndex() 94 const uint32_t slot_idx = type_idx.index_ % kDexCacheTypeCacheSize; in TypeSlotIndex() 103 std::memory_order_relaxed).GetObjectForIndex(type_idx.index_); in GetResolvedType() 113 TypeDexCachePair(resolved, type_idx.index_), std::memory_order_release); in SetResolvedType() 123 if (slot->load(std::memory_order_relaxed).index == type_idx.index_) { in ClearResolvedType()
|
/art/dexlayout/ |
D | dex_ir.cc | 334 TypeId* type_id = new TypeId(GetStringId(disk_type_id.descriptor_idx_.index_)); in CreateTypeId() 343 ProtoId* proto_id = new ProtoId(GetStringId(disk_proto_id.shorty_idx_.index_), in CreateProtoId() 344 GetTypeId(disk_proto_id.return_type_idx_.index_), in CreateProtoId() 351 FieldId* field_id = new FieldId(GetTypeId(disk_field_id.class_idx_.index_), in CreateFieldId() 352 GetTypeId(disk_field_id.type_idx_.index_), in CreateFieldId() 353 GetStringId(disk_field_id.name_idx_.index_)); in CreateFieldId() 359 MethodId* method_id = new MethodId(GetTypeId(disk_method_id.class_idx_.index_), in CreateMethodId() 361 GetStringId(disk_method_id.name_idx_.index_)); in CreateMethodId() 367 const TypeId* class_type = GetTypeId(disk_class_def.class_idx_.index_); in CreateClassDef() 369 const TypeId* superclass = GetTypeIdOrNullPtr(disk_class_def.superclass_idx_.index_); in CreateClassDef() [all …]
|
D | dex_ir.h | 379 uint32_t GetIndex() const { return index_; } in GetIndex() 380 void SetIndex(uint32_t index) { index_ = index; } in SetIndex() 384 : Item(offset, size), index_(index) { } in IndexedItem() 386 uint32_t index_ = 0; variable
|
/art/compiler/optimizing/ |
D | load_store_analysis.h | 115 index_(index), in HeapLocation() 130 HInstruction* GetIndex() const { return index_; } in GetIndex() 139 return index_ != nullptr; in IsArrayElement() 153 HInstruction* const index_; // index of an array element. variable
|
D | nodes.h | 1488 size_t GetIndex() const { return index_; } 1490 void SetIndex(size_t index) { index_ = index; } 1494 : user_(user), index_(index) {} 1497 size_t index_; local 3140 index_(index) { in HClassTableGet() 3147 return other->AsClassTableGet()->GetIndex() == index_ && in InstructionDataEquals() 3152 size_t GetIndex() const { return index_; } in GetIndex() 3166 const size_t index_; variable 5078 index_(index) { in HExpression() 5085 uint8_t GetIndex() const { return index_; } in GetIndex() [all …]
|
D | code_generator_arm64.cc | 343 __ Mov(calling_convention.GetRegisterAt(0).W(), type_index.index_); in EmitNativeCode() 424 __ Mov(calling_convention.GetRegisterAt(0).W(), string_index.index_); in EmitNativeCode() 815 index_(index), in LoadReferenceWithBakerReadBarrierSlowPathARM64() 904 index_, in EmitNativeCode() 928 Location index_; member in art::arm64::LoadReferenceWithBakerReadBarrierSlowPathARM64 975 index_(index), in LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARM64() 1007 Location field_offset = index_; in EmitNativeCode() 1056 index_, in EmitNativeCode() 1154 Location index_; member in art::arm64::LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARM64 1182 index_(index) { in ReadBarrierForHeapReferenceSlowPathARM64() [all …]
|
D | code_generator_arm_vixl.cc | 501 __ Mov(calling_convention.GetRegisterAt(0), type_index.index_); in EmitNativeCode() 584 __ Mov(calling_convention.GetRegisterAt(0), string_index.index_); in EmitNativeCode() 884 index_(index), in LoadReferenceWithBakerReadBarrierSlowPathARMVIXL() 966 instruction_, ref_, obj_, offset_, index_, scale_factor_, /* needs_null_check */ false); in EmitNativeCode() 990 Location index_; member in art::arm::LoadReferenceWithBakerReadBarrierSlowPathARMVIXL 1035 index_(index), in LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARMVIXL() 1063 Location field_offset = index_; in EmitNativeCode() 1108 instruction_, ref_, obj_, offset_, index_, scale_factor_, /* needs_null_check */ false); in EmitNativeCode() 1219 Location index_; member in art::arm::LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARMVIXL 1248 index_(index) { in ReadBarrierForHeapReferenceSlowPathARMVIXL() [all …]
|
D | code_generator_x86.cc | 233 __ movl(calling_convention.GetRegisterAt(0), Immediate(string_index.index_)); in EmitNativeCode() 273 __ movl(calling_convention.GetRegisterAt(0), Immediate(type_index.index_)); in EmitNativeCode() 705 index_(index) { in ReadBarrierForHeapReferenceSlowPathX86() 741 Location index = index_; in EmitNativeCode() 742 if (index_.IsValid()) { in EmitNativeCode() 746 Register index_reg = index_.AsRegister<Register>(); in EmitNativeCode() 801 DCHECK(index_.IsRegisterPair()); in EmitNativeCode() 804 index = index_.ToLow(); in EmitNativeCode() 866 const Location index_; member in art::x86::ReadBarrierForHeapReferenceSlowPathX86 4642 load_class->GetTypeIndex().index_); in RecordBootTypePatch() [all …]
|
D | code_generator_x86_64.cc | 253 __ movl(CpuRegister(RAX), Immediate(cls_->GetTypeIndex().index_)); in EmitNativeCode() 313 __ movl(CpuRegister(RAX), Immediate(string_index.index_)); in EmitNativeCode() 728 index_(index) { in ReadBarrierForHeapReferenceSlowPathX86_64() 764 Location index = index_; in EmitNativeCode() 765 if (index_.IsValid()) { in EmitNativeCode() 769 Register index_reg = index_.AsRegister<CpuRegister>().AsRegister(); in EmitNativeCode() 824 DCHECK(index_.IsRegister()); in EmitNativeCode() 891 const Location index_; member in art::x86_64::ReadBarrierForHeapReferenceSlowPathX86_64 1082 load_class->GetTypeIndex().index_); in RecordBootTypePatch() 1087 type_bss_entry_patches_.emplace_back(load_class->GetDexFile(), load_class->GetTypeIndex().index_); in NewTypeBssEntryPatch() [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 | 163 bss_begin_ + string_index_to_offset_map_.Get(patch.TargetStringIndex().index_); in Link() 170 string_index_to_offset_map_.Get(patch.TargetStringIndex().index_); in Link()
|
/art/runtime/utils/ |
D | dex_cache_arrays_layout-inl.h | 79 type_idx.index_ % mirror::DexCache::kDexCacheTypeCacheSize); in TypeOffset()
|
/art/runtime/jit/ |
D | profile_compilation_info.cc | 398 DCHECK_GE(class_id.index_, last_class_index); in Save() 399 uint16_t diff_with_last_class_index = class_id.index_ - last_class_index; in Save() 400 last_class_index = class_id.index_; in Save() 482 AddUintToBuffer(buffer, dex_classes[i].index_); in AddInlineCacheToBuffer() 1388 << "," << class_ref.type_index.index_ << ")"; in DumpInfo() 1414 os << class_it.index_ << ","; in DumpInfo() 1678 << type_idx.index_ << " in dex " << dex_file->GetLocation(); in GetClassDescriptors()
|
/art/compiler/ |
D | verifier_deps_test.cc | 465 ASSERT_LT(id_Main1.index_, primary_dex_file_->NumStringIds()); in TEST_F() 469 ASSERT_LT(id_Main2.index_, primary_dex_file_->NumStringIds()); in TEST_F() 473 ASSERT_GE(id_Lorem1.index_, primary_dex_file_->NumStringIds()); in TEST_F() 477 ASSERT_GE(id_Lorem2.index_, primary_dex_file_->NumStringIds()); in TEST_F()
|
/art/dexdump/ |
D | dexdump.cc | 597 fprintf(gOutFile, "class_idx : %d\n", pClassDef.class_idx_.index_); in dumpClassDef() 600 fprintf(gOutFile, "superclass_idx : %d\n", pClassDef.superclass_idx_.index_); in dumpClassDef() 603 fprintf(gOutFile, "source_file_idx : %d\n", pClassDef.source_file_idx_.index_); in dumpClassDef() 1575 pClassDef.source_file_idx_.index_, fileName); in dumpClass()
|
/art/compiler/driver/ |
D | compiler_driver_test.cc | 349 ClassReference(&klass->GetDexFile(), klass->GetDexTypeIndex().index_), &status); in CheckVerifiedClass()
|