Home
last modified time | relevance | path

Searched refs:index_ (Results 1 – 25 of 40) sorted by relevance

12

/art/libdexfile/dex/
Ddex_file_types.h30 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 …]
Dbytecode_utils.h110 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
Dtype_reference.h35 : DexFileReference(file, index.index_) {} in TypeReference()
Dstring_reference.h35 : DexFileReference(file, index.index_) {} in StringReference()
Ddex_file_verifier.cc103 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 …]
Ddex_file.cc396 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 <<()
Ddex_file.h478 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()
Ddex_instruction.cc321 << " // type@" << type_idx.index_; in DumpString()
330 << " // type@" << type_idx.index_; in DumpString()
/art/tools/veridex/
Dresolver.cc34 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/
Dhash_set.h71 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/
Ddex_cache-inl.h58 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/
Ddex_ir.cc330 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 …]
Ddex_ir.h516 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/
Dload_store_analysis.h103 index_(index), in HeapLocation()
120 HInstruction* GetIndex() const { return index_; } in GetIndex()
130 return index_ != nullptr; in IsArray()
157 HInstruction* const index_; variable
Dnodes.h1550 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 …]
Dcode_generator_arm64.cc332 __ 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 …]
Dcode_generator_arm_vixl.cc542 __ 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/
Dquick_dexcache_entrypoints.cc86 type_idx.index_, in StoreTypeInBss()
104 string_idx.index_, in StoreStringInBss()
/art/runtime/jit/
Dprofile_compilation_info.cc435 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/
Dverifier_deps.cc234 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/
Drelative_patcher_test.h160 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/
Ddex_cache_arrays_layout-inl.h80 type_idx.index_ % mirror::DexCache::kDexCacheTypeCacheSize); in TypeOffset()
/art/compiler/
Dverifier_deps_test.cc464 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/
Dtransaction.cc232 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/
Ddexdump.cc601 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()

12