Searched refs:index_ (Results 1 - 25 of 35) sorted by relevance

12

/art/runtime/
H A Ddex_file_types.h28 uint32_t index_; member in class:art::dex::StringIndex
30 constexpr StringIndex() : index_(std::numeric_limits<decltype(index_)>::max()) {}
31 explicit constexpr StringIndex(uint32_t idx) : index_(idx) {}
34 return index_ != std::numeric_limits<decltype(index_)>::max();
37 return StringIndex(std::numeric_limits<decltype(index_)>::max());
41 return index_ == other.index_;
44 return index_ !
63 uint16_t index_; member in class:art::dex::TypeIndex
[all...]
H A Dbytecode_utils.h139 index_(0u) {}
141 bool Done() const { return index_ >= num_entries_; }
142 bool IsLast() const { return index_ == num_entries_ - 1; }
146 index_++;
150 return table_.IsSparse() ? table_.GetEntryAt(index_) : table_.GetEntryAt(0) + index_;
154 return table_.GetEntryAt(index_ + first_target_offset_);
157 uint32_t GetDexPcForCurrentIndex() const { return table_.GetDexPcForIndex(index_); }
164 size_t index_; member in class:art::DexSwitchTableIterator
H A Ddex_file_verifier.cc103 if (UNLIKELY(!CheckIndex(idx.index_, dex_file_->NumStringIds(), error_string))) {
124 method_index)->name_idx_.index_;
171 if (UNLIKELY(!CheckIndex(type_idx.index_, dex_file_->NumTypeIds(), error_string))) {
635 my_class_index.index_,
636 class_type_index.index_);
676 my_class_index.index_,
677 class_type_index.index_);
949 if (class_type_index->index_ >= header_->type_ids_size_) {
2043 prev_item->descriptor_idx_.index_,
2044 item->descriptor_idx_.index_);
[all...]
H A Ddex_file.cc834 int compare = return_type_idx.index_ - proto.return_type_idx_.index_;
839 compare = signature_type_idxs[i].index_ - it.GetTypeIdx().index_;
1316 if (type_idx.index_ >= NumTypeIds()) {
1317 return StringPrintf("<<invalid-type-idx-%d>>", type_idx.index_);
1575 os << "StringIndex[" << index.index_ << "]";
1580 os << "TypeIndex[" << index.index_ << "]";
H A Ddex_file.h547 DCHECK_LT(idx.index_, NumStringIds()) << GetLocation();
548 return string_ids_[idx.index_];
586 return idx.IsValid() && idx.index_ < NumTypeIds();
591 DCHECK_LT(idx.index_, NumTypeIds()) << GetLocation();
592 return type_ids_[idx.index_];
H A Ddex_instruction.cc312 << " // type@" << type_idx.index_;
321 << " // type@" << type_idx.index_;
H A Dtransaction.cc191 DCHECK_LT(string_idx.index_, dex_cache->GetDexFile()->NumStringIds());
553 DCHECK_LT(string_idx_.index_, dex_cache->GetDexFile()->NumStringIds());
/art/runtime/base/
H A Dhash_set.h67 BaseIterator(HashSetType* hash_set, size_t index) : index_(index), hash_set_(hash_set) {
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_; member in class:art::HashSet::BaseIterator
[all...]
/art/runtime/mirror/
H A Ddex_cache-inl.h57 DCHECK_LT(string_idx.index_, GetDexFile()->NumStringIds());
58 const uint32_t slot_idx = string_idx.index_ % kDexCacheStringCacheSize;
65 std::memory_order_relaxed).GetObjectForIndex(string_idx.index_);
71 StringDexCachePair(resolved, string_idx.index_), std::memory_order_relaxed);
86 if (slot->load(std::memory_order_relaxed).index == string_idx.index_) {
93 DCHECK_LT(type_idx.index_, GetDexFile()->NumTypeIds());
94 const uint32_t slot_idx = type_idx.index_ % kDexCacheTypeCacheSize;
103 std::memory_order_relaxed).GetObjectForIndex(type_idx.index_);
113 TypeDexCachePair(resolved, type_idx.index_), std::memory_order_release);
123 if (slot->load(std::memory_order_relaxed).index == type_idx.index_) {
[all...]
/art/dexlayout/
H A Ddex_ir.cc359 TypeId* type_id = new TypeId(GetStringId(disk_type_id.descriptor_idx_.index_));
368 ProtoId* proto_id = new ProtoId(GetStringId(disk_proto_id.shorty_idx_.index_),
369 GetTypeId(disk_proto_id.return_type_idx_.index_),
376 FieldId* field_id = new FieldId(GetTypeId(disk_field_id.class_idx_.index_),
377 GetTypeId(disk_field_id.type_idx_.index_),
378 GetStringId(disk_field_id.name_idx_.index_));
384 MethodId* method_id = new MethodId(GetTypeId(disk_method_id.class_idx_.index_),
386 GetStringId(disk_method_id.name_idx_.index_));
392 const TypeId* class_type = GetTypeId(disk_class_def.class_idx_.index_);
394 const TypeId* superclass = GetTypeIdOrNullPtr(disk_class_def.superclass_idx_.index_);
[all...]
H A Ddex_ir.h378 uint32_t GetIndex() const { return index_; }
379 void SetIndex(uint32_t index) { index_ = index; }
383 : Item(offset, size), index_(index) { }
385 uint32_t index_ = 0; member in class:art::dex_ir::IndexedItem
/art/runtime/utils/
H A Ddex_cache_arrays_layout-inl.h79 type_idx.index_ % mirror::DexCache::kDexCacheTypeCacheSize);
/art/runtime/verifier/
H A Dverifier_deps.cc234 CHECK_GE(new_id.index_, num_ids_in_dex); // check for overflows
243 if (string_id.index_ < num_ids_in_dex) {
248 string_id.index_ -= num_ids_in_dex;
249 CHECK_LT(string_id.index_, deps->strings_.size());
250 return deps->strings_[string_id.index_];
575 return in.index_;
578 return in.index_;
/art/compiler/optimizing/
H A Dnodes.h1481 size_t GetIndex() const { return index_; }
1482 void SetIndex(size_t index) { index_ = index; }
1490 : user_(user), index_(index) {}
1493 size_t index_; member in class:art::HUseListNode
3115 index_(index) {
3122 return other->AsClassTableGet()->GetIndex() == index_ &&
3127 size_t GetIndex() const { return index_; }
3141 const size_t index_; member in class:art::FINAL::FINAL::TableKind
5058 index_(index) {
5065 uint8_t GetIndex() const { return index_; }
5085 const uint8_t index_; member in class:art::FINAL::FINAL::ComparisonBias::FINAL::FINAL
5250 const uint32_t index_; member in class:art::FINAL::FINAL::ComparisonBias::FINAL::FieldInfo
[all...]
H A Dload_store_elimination.cc121 index_(index),
136 HInstruction* GetIndex() const { return index_; }
145 return index_ != nullptr;
159 HInstruction* const index_; // index of an array element. member in class:art::HeapLocation
H A Dcode_generator_arm64.cc340 __ Mov(calling_convention.GetRegisterAt(0).W(), type_index.index_);
421 __ Mov(calling_convention.GetRegisterAt(0).W(), string_index.index_);
807 index_(index),
896 index_,
920 Location index_; member in class:art::arm64::LoadReferenceWithBakerReadBarrierSlowPathARM64
964 index_(index),
996 Location field_offset = index_;
1033 index_,
1131 Location index_; member in class:art::arm64::LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARM64
1159 index_(inde
1327 const Location index_; member in class:art::arm64::ReadBarrierForHeapReferenceSlowPathARM64
[all...]
H A Dcode_generator_arm.cc403 __ LoadImmediate(calling_convention.GetRegisterAt(0), type_index.index_);
488 __ LoadImmediate(calling_convention.GetRegisterAt(0), string_index.index_);
786 index_(index),
862 instruction_, ref_, obj_, offset_, index_, scale_factor_, /* needs_null_check */ false);
886 Location index_; member in class:art::arm::LoadReferenceWithBakerReadBarrierSlowPathARM
928 index_(index),
957 Location field_offset = index_;
983 instruction_, ref_, obj_, offset_, index_, scale_factor_, /* needs_null_check */ false);
1087 Location index_; member in class:art::arm::LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARM
1116 index_(inde
1282 const Location index_; member in class:art::arm::ReadBarrierForHeapReferenceSlowPathARM
[all...]
H A Dcode_generator_arm_vixl.cc430 __ Mov(calling_convention.GetRegisterAt(0), type_index.index_);
513 __ Mov(calling_convention.GetRegisterAt(0), string_index.index_);
808 index_(index),
890 instruction_, ref_, obj_, offset_, index_, scale_factor_, /* needs_null_check */ false);
914 Location index_; member in class:art::arm::LoadReferenceWithBakerReadBarrierSlowPathARMVIXL
957 index_(index),
985 Location field_offset = index_;
1018 instruction_, ref_, obj_, offset_, index_, scale_factor_, /* needs_null_check */ false);
1129 Location index_; member in class:art::arm::LoadReferenceWithBakerReadBarrierAndUpdateFieldSlowPathARMVIXL
1158 index_(inde
1326 const Location index_; member in class:art::arm::ReadBarrierForHeapReferenceSlowPathARMVIXL
[all...]
H A Dcode_generator_mips64.cc180 __ LoadConst32(calling_convention.GetRegisterAt(0), type_index.index_);
245 __ LoadConst32(calling_convention.GetRegisterAt(0), string_index.index_);
719 index_(index) {
753 // We may have to change the index's value, but as `index_` is a
756 Location index = index_;
757 if (index_.IsValid()) {
758 // Handle `index_` for HArrayGet and UnsafeGetObject/UnsafeGetObjectVolatile intrinsics.
761 GpuRegister index_reg = index_.AsRegister<GpuRegister>();
791 // The initial register stored in `index_` has already been
807 // intrinsics, `index_` i
886 const Location index_; member in class:art::mips64::ReadBarrierForHeapReferenceSlowPathMIPS64
[all...]
H A Dcode_generator_mips.cc229 __ LoadConst32(calling_convention.GetRegisterAt(0), type_index.index_);
299 __ LoadConst32(calling_convention.GetRegisterAt(0), string_index.index_);
784 index_(index) {
817 // We may have to change the index's value, but as `index_` is a
820 Location index = index_;
821 if (index_.IsValid()) {
822 // Handle `index_` for HArrayGet and UnsafeGetObject/UnsafeGetObjectVolatile intrinsics.
825 Register index_reg = index_.AsRegister<Register>();
855 // The initial register stored in `index_` has already been
871 // intrinsics, `index_` i
951 const Location index_; member in class:art::mips::ReadBarrierForHeapReferenceSlowPathMIPS
[all...]
/art/compiler/linker/
H A Drelative_patcher_test.h168 string_index_to_offset_map_.Get(patch.TargetStringIndex().index_);
/art/compiler/
H A Dverifier_deps_test.cc484 ASSERT_LT(id_Main1.index_, primary_dex_file_->NumStringIds());
488 ASSERT_LT(id_Main2.index_, primary_dex_file_->NumStringIds());
492 ASSERT_GE(id_Lorem1.index_, primary_dex_file_->NumStringIds());
496 ASSERT_GE(id_Lorem2.index_, primary_dex_file_->NumStringIds());
/art/runtime/jit/
H A Dprofile_compilation_info.cc325 AddUintToBuffer(&buffer, class_id.index_);
385 AddUintToBuffer(buffer, dex_classes[i].index_);
1116 << "," << class_ref.type_index.index_ << ")";
1128 os << class_it.index_ << ",";
/art/compiler/driver/
H A Dcompiler_driver_test.cc343 ClassReference(&klass->GetDexFile(), klass->GetDexTypeIndex().index_));
/art/dexdump/
H A Ddexdump.cc597 fprintf(gOutFile, "class_idx : %d\n", pClassDef.class_idx_.index_);
600 fprintf(gOutFile, "superclass_idx : %d\n", pClassDef.superclass_idx_.index_);
603 fprintf(gOutFile, "source_file_idx : %d\n", pClassDef.source_file_idx_.index_);
1580 pClassDef.source_file_idx_.index_, fileName);

Completed in 582 milliseconds

12