/art/libdexfile/dex/ |
D | string_reference.h | 34 StringReference(const DexFile* file, dex::StringIndex index) in StringReference() 37 dex::StringIndex StringIndex() const { in StringIndex() function 38 return dex::StringIndex(index); in StringIndex() 42 return dex_file->GetStringData(dex_file->GetStringId(StringIndex())); in GetStringData()
|
D | string_reference_test.cc | 38 ASSERT_STREQ("String1", dex_file1->GetStringData(dex_file1->GetStringId(dex::StringIndex(0)))); in TEST() 39 StringReference sr1(dex_file1.get(), dex::StringIndex(0)); in TEST() 45 ASSERT_STREQ("String2", dex_file2->GetStringData(dex_file2->GetStringId(dex::StringIndex(0)))); in TEST() 46 StringReference sr2(dex_file2.get(), dex::StringIndex(0)); in TEST() 85 dex_file1->GetStringData(dex_file1->GetStringId(dex::StringIndex(index)))); in TEST() 96 dex_file2->GetStringData(dex_file2->GetStringId(dex::StringIndex(index)))); in TEST() 102 StringReference sr1(dex_file1.get(), dex::StringIndex(index1)); in TEST() 103 StringReference sr2(dex_file2.get(), dex::StringIndex(index2)); in TEST()
|
D | dex_file_types.h | 73 class StringIndex : public DexIndex<uint32_t> { 75 StringIndex() {} in StringIndex() function 76 explicit constexpr StringIndex(uint32_t index) : DexIndex<decltype(index_)>(index) {} in StringIndex() function 77 static constexpr StringIndex Invalid() { in Invalid() 78 return StringIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid() 81 std::ostream& operator<<(std::ostream& os, const StringIndex& index); 104 template<> struct hash<art::dex::StringIndex> { 105 size_t operator()(const art::dex::StringIndex& index) const {
|
D | dex_file_structs.h | 61 dex::StringIndex descriptor_idx_; // index into string_ids 71 dex::StringIndex name_idx_; // index into string_ids_ array for field name 79 dex::StringIndex shorty_idx_; // index into string_ids array for shorty descriptor 92 dex::StringIndex name_idx_; // index into string_ids_ array for method name 115 dex::StringIndex source_file_idx_; // index into string_ids_ for source file name
|
D | dex_file-inl.h | 59 inline const char* DexFile::StringDataAndUtf16LengthByIdx(dex::StringIndex idx, in StringDataAndUtf16LengthByIdx() 69 inline const char* DexFile::StringDataByIdx(dex::StringIndex idx) const { in StringDataByIdx() 74 inline std::string_view DexFile::StringViewByIdx(dex::StringIndex idx) const { in StringViewByIdx() 170 inline bool DexFile::StringEquals(const DexFile* df1, dex::StringIndex sidx1, in StringEquals() 171 const DexFile* df2, dex::StringIndex sidx2) { in StringEquals() 362 return StringDataByIdx(dex::StringIndex(idx)); in DecodeDebugLocalInfo() 464 visitor(dex::StringIndex(DecodeUnsignedLeb128P1(debug_info))); in DecodeDebugInfoParameterNames()
|
D | dex_file.h | 240 const dex::StringId& GetStringId(dex::StringIndex idx) const { in GetStringId() 245 dex::StringIndex GetIndexForStringId(const dex::StringId& string_id) const { in GetIndexForStringId() 248 return dex::StringIndex(&string_id - string_ids_); in GetIndexForStringId() 262 const char* StringDataAndUtf16LengthByIdx(dex::StringIndex idx, uint32_t* utf16_length) const; 264 const char* StringDataByIdx(dex::StringIndex idx) const; 265 std::string_view StringViewByIdx(dex::StringIndex idx) const; 305 const dex::TypeId* FindTypeId(dex::StringIndex string_idx) const; 784 static inline bool StringEquals(const DexFile* df1, dex::StringIndex sidx1, 785 const DexFile* df2, dex::StringIndex sidx2);
|
D | dex_file.cc | 58 static_assert(sizeof(dex::StringIndex) == sizeof(uint32_t), "StringIndex size is wrong"); 59 static_assert(std::is_trivially_copyable<dex::StringIndex>::value, "StringIndex not trivial"); 244 const dex::StringIndex name_idx = GetIndexForStringId(name); in FindFieldId() 279 const dex::StringIndex name_idx = GetIndexForStringId(name); in FindMethodId() 314 const StringId& str_id = GetStringId(dex::StringIndex(mid)); in FindStringId() 348 const TypeId* DexFile::FindTypeId(dex::StringIndex string_idx) const { in FindTypeId() 676 std::ostream& operator<<(std::ostream& os, const StringIndex& index) { in operator <<()
|
D | test_dex_file_builder_test.cc | 52 dex_file->GetStringData(dex_file->GetStringId(dex::StringIndex(i)))) << i; in TEST()
|
D | dex_file_tracking_registrar.cc | 221 const dex::StringId & string_id = dex_file_->GetStringId(StringIndex(stringid_ctr)); in SetAllStringDataStartRegistration()
|
D | code_item_accessors-inl.h | 240 return dex_file_->StringDataByIdx(dex::StringIndex(idx)); in DecodeDebugPositionInfo()
|
D | dex_file_verifier.h | 164 const char* CheckLoadStringByIdx(dex::StringIndex idx, const char* error_fmt);
|
/art/runtime/verifier/ |
D | verifier_deps.h | 169 using FieldResolutionBase = std::tuple<uint32_t, uint16_t, dex::StringIndex>; 173 FieldResolution(uint32_t field_idx, uint16_t access_flags, dex::StringIndex declaring_class_idx) in FieldResolution() 179 dex::StringIndex GetDeclaringClassIndex() const { return std::get<2>(*this); } in GetDeclaringClassIndex() 182 using MethodResolutionBase = std::tuple<uint32_t, uint16_t, dex::StringIndex>; 188 dex::StringIndex declaring_class_idx) in MethodResolution() 194 dex::StringIndex GetDeclaringClassIndex() const { return std::get<2>(*this); } in GetDeclaringClassIndex() 197 using TypeAssignabilityBase = std::tuple<dex::StringIndex, dex::StringIndex>; 201 TypeAssignability(dex::StringIndex destination_idx, dex::StringIndex source_idx) in TypeAssignability() 204 dex::StringIndex GetDestination() const { return std::get<0>(*this); } in GetDestination() 205 dex::StringIndex GetSource() const { return std::get<1>(*this); } in GetSource() [all …]
|
D | verifier_deps.cc | 109 dex::StringIndex VerifierDeps::GetClassDescriptorStringId(const DexFile& dex_file, in GetClassDescriptorStringId() 133 static dex::StringIndex TryGetClassDescriptorStringId(const DexFile& dex_file, in TryGetClassDescriptorStringId() 146 return dex::StringIndex::Invalid(); in TryGetClassDescriptorStringId() 149 dex::StringIndex VerifierDeps::GetMethodDeclaringClassStringId(const DexFile& dex_file, in GetMethodDeclaringClassStringId() 154 return dex::StringIndex(VerifierDeps::kUnresolvedMarker); in GetMethodDeclaringClassStringId() 156 const dex::StringIndex string_id = TryGetClassDescriptorStringId( in GetMethodDeclaringClassStringId() 168 dex::StringIndex VerifierDeps::GetFieldDeclaringClassStringId(const DexFile& dex_file, in GetFieldDeclaringClassStringId() 173 return dex::StringIndex(VerifierDeps::kUnresolvedMarker); in GetFieldDeclaringClassStringId() 175 const dex::StringIndex string_id = TryGetClassDescriptorStringId( in GetFieldDeclaringClassStringId() 219 dex::StringIndex VerifierDeps::GetIdFromString(const DexFile& dex_file, const std::string& str) { in GetIdFromString() [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_dexcache_entrypoints.cc | 96 dex::StringIndex string_idx, in StoreStringInBss() 212 Runtime::Current()->GetClassLinker()->ResolveString(dex::StringIndex(string_idx), caller); in artResolveStringFromCode() 214 StoreStringInBss(caller_and_outer.outer_method, dex::StringIndex(string_idx), result); in artResolveStringFromCode()
|
/art/runtime/mirror/ |
D | dex_cache.h | 274 String* GetResolvedString(dex::StringIndex string_idx) ALWAYS_INLINE 277 void SetResolvedString(dex::StringIndex string_idx, ObjPtr<mirror::String> resolved) ALWAYS_INLINE 280 void SetPreResolvedString(dex::StringIndex string_idx, 290 void ClearString(dex::StringIndex string_idx) REQUIRES_SHARED(Locks::mutator_lock_); 470 uint32_t StringSlotIndex(dex::StringIndex string_idx) REQUIRES_SHARED(Locks::mutator_lock_);
|
D | dex_cache-inl.h | 79 inline uint32_t DexCache::StringSlotIndex(dex::StringIndex string_idx) { in StringSlotIndex() 86 inline String* DexCache::GetResolvedString(dex::StringIndex string_idx) { in GetResolvedString() 105 inline void DexCache::SetResolvedString(dex::StringIndex string_idx, ObjPtr<String> resolved) { in SetResolvedString() 118 inline void DexCache::SetPreResolvedString(dex::StringIndex string_idx, ObjPtr<String> resolved) { in SetPreResolvedString() 140 inline void DexCache::ClearString(dex::StringIndex string_idx) { in ClearString()
|
/art/runtime/ |
D | transaction.h | 125 void RecordResolveString(ObjPtr<mirror::DexCache> dex_cache, dex::StringIndex string_idx) 257 ResolveStringLog(ObjPtr<mirror::DexCache> dex_cache, dex::StringIndex string_idx); 265 const dex::StringIndex string_idx_;
|
D | class_linker-inl.h | 66 inline ObjPtr<mirror::String> ClassLinker::ResolveString(dex::StringIndex string_idx, in ResolveString() 80 inline ObjPtr<mirror::String> ClassLinker::ResolveString(dex::StringIndex string_idx, in ResolveString() 94 inline ObjPtr<mirror::String> ClassLinker::ResolveString(dex::StringIndex string_idx, in ResolveString() 105 inline ObjPtr<mirror::String> ClassLinker::LookupString(dex::StringIndex string_idx, in LookupString()
|
D | class_linker.h | 225 ObjPtr<mirror::String> ResolveString(dex::StringIndex string_idx, 228 ObjPtr<mirror::String> ResolveString(dex::StringIndex string_idx, 234 ObjPtr<mirror::String> ResolveString(dex::StringIndex string_idx, 240 ObjPtr<mirror::String> LookupString(dex::StringIndex string_idx, 936 ObjPtr<mirror::String> DoResolveString(dex::StringIndex string_idx, 939 ObjPtr<mirror::String> DoResolveString(dex::StringIndex string_idx, 944 ObjPtr<mirror::String> DoLookupString(dex::StringIndex string_idx,
|
/art/compiler/linker/ |
D | linker_patch.h | 201 dex::StringIndex TargetStringIndex() const { in TargetStringIndex() 204 return dex::StringIndex(string_idx_); in TargetStringIndex()
|
/art/dex2oat/ |
D | verifier_deps_test.cc | 509 dex::StringIndex id_Main1 = verifier_deps_->GetIdFromString(*primary_dex_file_, "LMain;"); in TEST_F() 513 dex::StringIndex id_Main2 = verifier_deps_->GetIdFromString(*primary_dex_file_, "LMain;"); in TEST_F() 517 dex::StringIndex id_Lorem1 = verifier_deps_->GetIdFromString(*primary_dex_file_, "Lorem ipsum"); in TEST_F() 521 dex::StringIndex id_Lorem2 = verifier_deps_->GetIdFromString(*primary_dex_file_, "Lorem ipsum"); in TEST_F() 1319 constexpr dex::StringIndex kStringIndexZero(0); // We know there is a class there. in TEST_F() 1343 constexpr dex::StringIndex kNewTypeIndex(0); in TEST_F() 1373 constexpr dex::StringIndex kStringIndexZero(0); // We know there is a class there. in TEST_F() 1399 constexpr dex::StringIndex kNewTypeIndex(0); in TEST_F()
|
/art/compiler/optimizing/ |
D | code_generator_mips.h | 636 dex::StringIndex string_index, 639 dex::StringIndex string_index, 670 dex::StringIndex string_index,
|
D | code_generator_mips64.h | 606 dex::StringIndex string_index, 609 dex::StringIndex string_index, 625 dex::StringIndex string_index,
|
/art/dexdump/ |
D | dexdump.cc | 481 dumpEscapedString(pDexFile->StringDataByIdx(dex::StringIndex(idx))); in dumpEncodedValue() 483 dumpXmlAttribute(pDexFile->StringDataByIdx(dex::StringIndex(idx))); in dumpEncodedValue() 524 fputs(pDexFile->StringDataByIdx(dex::StringIndex(name_idx)), gOutFile); in dumpEncodedValue() 821 const char* st = pDexFile->StringDataByIdx(dex::StringIndex(index)); in indexString() 1681 dex::StringIndex method_name_idx = static_cast<dex::StringIndex>(it.GetJavaValue().i); in dumpCallSite() 1753 dex::StringIndex string_idx = static_cast<dex::StringIndex>(it.GetJavaValue().i); in dumpCallSite()
|
/art/tools/veridex/ |
D | flow_analysis.h | 80 const char* str = reference_.dex_file->StringDataByIdx(dex::StringIndex(reference_.index)); in ToString()
|