Home
last modified time | relevance | path

Searched refs:field_id (Results 1 – 16 of 16) sorted by relevance

/art/runtime/
Dfield_helper.cc34 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_index); in GetType() local
35 mirror::Class* type = field_->GetDexCache()->GetResolvedType(field_id.type_idx_); in GetType()
37 type = Runtime::Current()->GetClassLinker()->ResolveType(field_id.type_idx_, field_.Get()); in GetType()
Ddex_file.h553 uint32_t GetIndexForFieldId(const FieldId& field_id) const { in GetIndexForFieldId() argument
554 CHECK_GE(&field_id, field_ids_) << GetLocation(); in GetIndexForFieldId()
555 CHECK_LT(&field_id, field_ids_ + header_->field_ids_size_) << GetLocation(); in GetIndexForFieldId()
556 return &field_id - field_ids_; in GetIndexForFieldId()
565 const char* GetFieldDeclaringClassDescriptor(const FieldId& field_id) const { in GetFieldDeclaringClassDescriptor() argument
566 const DexFile::TypeId& type_id = GetTypeId(field_id.class_idx_); in GetFieldDeclaringClassDescriptor()
571 const char* GetFieldTypeDescriptor(const FieldId& field_id) const { in GetFieldTypeDescriptor() argument
572 const DexFile::TypeId& type_id = GetTypeId(field_id.type_idx_); in GetFieldTypeDescriptor()
577 const char* GetFieldName(const FieldId& field_id) const { in GetFieldName() argument
578 return StringDataByIdx(field_id.name_idx_); in GetFieldName()
Ddebugger.h384 static void OutputFieldValue(JDWP::FieldId field_id, const JValue* field_value,
391 static std::string GetFieldName(JDWP::FieldId field_id)
393 static JDWP::JdwpTag GetFieldBasicTag(JDWP::FieldId field_id)
395 static JDWP::JdwpTag GetStaticFieldBasicTag(JDWP::FieldId field_id)
397 static JDWP::JdwpError GetFieldValue(JDWP::ObjectId object_id, JDWP::FieldId field_id,
400 static JDWP::JdwpError SetFieldValue(JDWP::ObjectId object_id, JDWP::FieldId field_id,
403 static JDWP::JdwpError GetStaticFieldValue(JDWP::RefTypeId ref_type_id, JDWP::FieldId field_id,
406 static JDWP::JdwpError SetStaticFieldValue(JDWP::FieldId field_id, uint64_t value, int width)
Ddebugger.cc1516 std::string Dbg::GetFieldName(JDWP::FieldId field_id) in GetFieldName() argument
1518 mirror::ArtField* f = FromFieldId(field_id); in GetFieldName()
1765 void Dbg::OutputFieldValue(JDWP::FieldId field_id, const JValue* field_value, in OutputFieldValue() argument
1767 mirror::ArtField* f = FromFieldId(field_id); in OutputFieldValue()
1789 JDWP::JdwpTag Dbg::GetFieldBasicTag(JDWP::FieldId field_id) { in GetFieldBasicTag() argument
1790 return BasicTagFromDescriptor(FromFieldId(field_id)->GetTypeDescriptor()); in GetFieldBasicTag()
1793 JDWP::JdwpTag Dbg::GetStaticFieldBasicTag(JDWP::FieldId field_id) { in GetStaticFieldBasicTag() argument
1794 return BasicTagFromDescriptor(FromFieldId(field_id)->GetTypeDescriptor()); in GetStaticFieldBasicTag()
1798 JDWP::FieldId field_id, JDWP::ExpandBuf* pReply, in GetFieldValueImpl() argument
1811 mirror::ArtField* f = FromFieldId(field_id); in GetFieldValueImpl()
[all …]
Dutils.cc312 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_idx); in PrettyField() local
315 result += dex_file.GetFieldTypeDescriptor(field_id); in PrettyField()
318 result += PrettyDescriptor(dex_file.GetFieldDeclaringClassDescriptor(field_id)); in PrettyField()
320 result += dex_file.GetFieldName(field_id); in PrettyField()
Dclass_linker.cc2330 const DexFile::FieldId& field_id = dex_file.GetFieldId(it.GetMemberIndex()); in SizeOfClassWithoutEmbeddedTables() local
2331 const char* descriptor = dex_file.GetFieldTypeDescriptor(field_id); in SizeOfClassWithoutEmbeddedTables()
5834 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_idx); in ResolveField() local
5838 hs.NewHandle(ResolveType(dex_file, field_id.class_idx_, dex_cache, class_loader))); in ResolveField()
5851 const char* name = dex_file.GetFieldName(field_id); in ResolveField()
5852 const char* type = dex_file.GetFieldTypeDescriptor(field_id); in ResolveField()
5876 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_idx); in ResolveFieldJLS() local
5880 hs.NewHandle(ResolveType(dex_file, field_id.class_idx_, dex_cache, class_loader))); in ResolveFieldJLS()
5886 StringPiece name(dex_file.StringDataByIdx(field_id.name_idx_)); in ResolveFieldJLS()
5888 dex_file.GetTypeId(field_id.type_idx_).descriptor_idx_)); in ResolveFieldJLS()
/art/compiler/dex/
Dlocal_value_numbering.cc58 uint16_t field_id) { in StartMemoryVersion() argument
59 uint16_t type = gvn->GetFieldType(field_id); in StartMemoryVersion()
60 return gvn->LookupValue(kAliasingIFieldStartVersionOp, field_id, in StartMemoryVersion()
71 uint16_t field_id, uint16_t base, uint16_t memory_version) { in LookupGlobalValue() argument
72 return gvn->LookupValue(kAliasingIFieldOp, field_id, base, memory_version); in LookupGlobalValue()
76 uint16_t field_id, uint16_t base) { in LookupMergeValue() argument
78 uint16_t type = gvn->GetFieldType(field_id); in LookupMergeValue()
79 if (lvn->IsNonAliasingIField(base, field_id, type)) { in LookupMergeValue()
80 uint16_t loc = gvn->LookupValue(kNonAliasingIFieldLocOp, base, field_id, type); in LookupMergeValue()
87 gvn, lvn, &lvn->aliasing_ifield_value_map_, field_id, base); in LookupMergeValue()
[all …]
Dlocal_value_numbering.h169 uint16_t field_id; // None (kNoValue) for arrays and unresolved instance field stores. member
173 return base == other.base && type == other.type && field_id == other.field_id;
189 return lhs.field_id < rhs.field_id; in operator()
297 bool IsNonAliasingIField(uint16_t reg, uint16_t field_id, uint16_t type) const;
Dglobal_value_numbering.h135 uint16_t GetFieldType(uint16_t field_id) { in GetFieldType() argument
136 DCHECK_LT(field_id, field_index_reverse_map_.size()); in GetFieldType()
137 return field_index_reverse_map_[field_id]->first.type; in GetFieldType()
/art/runtime/jdwp/
Djdwp_event.cc978 FieldId field_id = Dbg::ToFieldId(field); in PostFieldEvent() local
987 << Dbg::GetClassName(field_id); in PostFieldEvent()
988 VLOG(jdwp) << StringPrintf(" field=%#" PRIx32, field_id) << " " in PostFieldEvent()
989 << Dbg::GetFieldName(field_id); in PostFieldEvent()
1014 expandBufAddFieldId(pReq, field_id); in PostFieldEvent()
1018 Dbg::OutputFieldValue(field_id, fieldValue, pReq); in PostFieldEvent()
Djdwp.h386 std::string DescribeField(const FieldId& field_id) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
Djdwp_handler.cc40 std::string DescribeField(const FieldId& field_id) { in DescribeField() argument
41 return StringPrintf("%#x (%s)", field_id, Dbg::GetFieldName(field_id).c_str()); in DescribeField()
/art/runtime/mirror/
Dart_field-inl.h264 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_index); in GetTypeDescriptor() local
265 return dex_file->GetFieldTypeDescriptor(field_id); in GetTypeDescriptor()
Dobject_test.cc350 const DexFile::FieldId* field_id = dex_file->FindFieldId( in TEST_F() local
352 ASSERT_TRUE(field_id != NULL); in TEST_F()
353 uint32_t field_idx = dex_file->GetIndexForFieldId(*field_id); in TEST_F()
/art/runtime/verifier/
Dmethod_verifier.cc3659 const DexFile::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetStaticField() local
3661 RegType& klass_type = ResolveClassAndCheckAccess(field_id.class_idx_); in GetStaticField()
3664 field_idx, dex_file_->GetFieldName(field_id), in GetStaticField()
3665 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetStaticField()
3676 << dex_file_->GetFieldName(field_id) << ") in " in GetStaticField()
3677 << dex_file_->GetFieldDeclaringClassDescriptor(field_id); in GetStaticField()
3694 const DexFile::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetInstanceField() local
3696 RegType& klass_type = ResolveClassAndCheckAccess(field_id.class_idx_); in GetInstanceField()
3699 field_idx, dex_file_->GetFieldName(field_id), in GetInstanceField()
3700 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetInstanceField()
[all …]
/art/runtime/native/
Ddalvik_system_VMRuntime.cc281 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_idx); in PreloadDexCachesResolveField() local
284 Handle<mirror::Class> klass(hs.NewHandle(dex_cache->GetResolvedType(field_id.class_idx_))); in PreloadDexCachesResolveField()