/art/runtime/ |
D | class_linker-inl.h | 98 Handle<mirror::DexCache> dex_cache) { in ResolveString() argument 101 ObjPtr<mirror::String> resolved = dex_cache->GetResolvedString(string_idx); in ResolveString() 103 resolved = DoResolveString(string_idx, dex_cache); in ResolveString() 109 ObjPtr<mirror::DexCache> dex_cache) { in LookupString() argument 110 ObjPtr<mirror::String> resolved = dex_cache->GetResolvedString(string_idx); in LookupString() 112 resolved = DoLookupString(string_idx, dex_cache); in LookupString() 164 Handle<mirror::DexCache> dex_cache, in ResolveType() argument 166 DCHECK(dex_cache != nullptr); in ResolveType() 167 DCHECK(dex_cache->GetClassLoader() == class_loader.Get()); in ResolveType() 169 ObjPtr<mirror::Class> resolved = dex_cache->GetResolvedType(type_idx); in ResolveType() [all …]
|
D | transaction.cc | 254 void Transaction::RecordResolveString(ObjPtr<mirror::DexCache> dex_cache, in RecordResolveString() argument 256 DCHECK(dex_cache != nullptr); in RecordResolveString() 257 DCHECK_LT(string_idx.index_, dex_cache->GetDexFile()->NumStringIds()); in RecordResolveString() 259 resolve_string_logs_.emplace_front(dex_cache, string_idx); in RecordResolveString() 262 void Transaction::RecordResolveMethodType(ObjPtr<mirror::DexCache> dex_cache, in RecordResolveMethodType() argument 264 DCHECK(dex_cache != nullptr); in RecordResolveMethodType() 265 DCHECK_LT(proto_idx.index_, dex_cache->GetDexFile()->NumProtoIds()); in RecordResolveMethodType() 267 resolve_method_type_logs_.emplace_front(dex_cache, proto_idx); in RecordResolveMethodType() 650 Transaction::ResolveStringLog::ResolveStringLog(ObjPtr<mirror::DexCache> dex_cache, in ResolveStringLog() argument 652 : dex_cache_(dex_cache), in ResolveStringLog() [all …]
|
D | class_linker.h | 264 Handle<mirror::DexCache> dex_cache) 270 ObjPtr<mirror::DexCache> dex_cache) 290 Handle<mirror::DexCache> dex_cache, 310 ObjPtr<mirror::DexCache> dex_cache, 328 ObjPtr<mirror::DexCache> dex_cache, 334 ObjPtr<mirror::DexCache> dex_cache, 343 ObjPtr<mirror::DexCache> dex_cache, 354 Handle<mirror::DexCache> dex_cache, 370 Handle<mirror::DexCache> dex_cache, 386 Handle<mirror::DexCache> dex_cache, [all …]
|
D | class_linker.cc | 1580 for (auto dex_cache : dex_caches.Iterate<mirror::DexCache>()) { in Update() local 1581 const DexFile* const dex_file = dex_cache->GetDexFile(); in Update() 1585 class_linker->RegisterDexFileLocked(*dex_file, dex_cache, class_loader.Get()); in Update() 1719 for (auto dex_cache : dex_caches->Iterate()) { in OpenImageDexFiles() local 1720 std::string dex_file_location(dex_cache->GetLocation()->ToModifiedUtf8()); in OpenImageDexFiles() 1727 dex_cache->SetDexFile(dex_file.get()); in OpenImageDexFiles() 1935 for (auto dex_cache : dex_caches.Iterate<mirror::DexCache>()) { in AddImageSpace() local 1936 std::string dex_file_location = dex_cache->GetLocation()->ToModifiedUtf8(); in AddImageSpace() 1947 dex_cache->Initialize(dex_file.get(), class_loader.Get()); in AddImageSpace() 1951 AppendToBootClassPath(dex_file.get(), dex_cache); in AddImageSpace() [all …]
|
D | class_linker_test.cc | 976 ObjPtr<mirror::DexCache> dex_cache = klass->GetDexCache(); in TEST_F() local 978 class_linker_->LookupResolvedType(type_idx, dex_cache, class_loader.Get()), in TEST_F() 981 dex_cache->ClearResolvedType(type_idx); in TEST_F() 982 EXPECT_TRUE(dex_cache->GetResolvedType(type_idx) == nullptr); in TEST_F() 984 class_linker_->LookupResolvedType(type_idx, dex_cache, class_loader.Get()), in TEST_F() 997 Handle<mirror::DexCache> dex_cache = hs.NewHandle(all_fields_klass->GetDexCache()); in TEST_F() local 998 const DexFile& dex_file = *dex_cache->GetDexFile(); in TEST_F() 1005 class_linker_->LookupResolvedType(array_idx, dex_cache.Get(), class_loader.Get()) == nullptr); in TEST_F() 1012 class_linker_->LookupResolvedType(array_idx, dex_cache.Get(), class_loader.Get()), in TEST_F() 1015 dex_cache->ClearResolvedType(array_idx); in TEST_F() [all …]
|
D | hidden_api.h | 72 AccessContext(ObjPtr<mirror::ClassLoader> class_loader, ObjPtr<mirror::DexCache> dex_cache) in AccessContext() argument 75 dex_file_(GetDexFileFromDexCache(dex_cache)), in AccessContext() 102 static const DexFile* GetDexFileFromDexCache(ObjPtr<mirror::DexCache> dex_cache) in GetDexFileFromDexCache() argument 104 return dex_cache.IsNull() ? nullptr : dex_cache->GetDexFile(); in GetDexFileFromDexCache()
|
/art/runtime/mirror/ |
D | dex_cache_test.cc | 51 Handle<DexCache> dex_cache( in TEST_F() local 54 ASSERT_TRUE(dex_cache != nullptr); in TEST_F() 57 EXPECT_EQ(0u, dex_cache->NumStrings()); in TEST_F() 58 EXPECT_EQ(0u, dex_cache->NumResolvedTypes()); in TEST_F() 59 EXPECT_EQ(0u, dex_cache->NumResolvedMethods()); in TEST_F() 60 EXPECT_EQ(0u, dex_cache->NumResolvedFields()); in TEST_F() 61 EXPECT_EQ(0u, dex_cache->NumResolvedMethodTypes()); in TEST_F() 68 Handle<DexCache> dex_cache( in TEST_F() local 72 EXPECT_EQ(0u, dex_cache->NumResolvedMethodTypes()); in TEST_F() 128 Handle<mirror::DexCache> dex_cache = hs.NewHandle( in TEST_F() local [all …]
|
D | dex_cache-inl.h | 62 mirror::DexCache* dex_cache = this; in AllocArray() local 66 dex_cache = reinterpret_cast<DexCache*>(ReadBarrier::Mark(dex_cache)); in AllocArray() 72 T* array = dex_cache->GetFieldPtr64<T*>(obj_offset); in AllocArray() 79 dex_cache->SetField32Volatile<false, false>(num_offset, num); in AllocArray() 80 dex_cache->SetField64Volatile<false, false>(obj_offset, reinterpret_cast64<uint64_t>(array)); in AllocArray() 89 inline void DexCachePair<T>::Initialize(std::atomic<DexCachePair<T>>* dex_cache) { in Initialize() argument 93 dex_cache[0].store(first_elem, std::memory_order_relaxed); in Initialize() 106 inline void NativeDexCachePair<T>::Initialize(std::atomic<NativeDexCachePair<T>>* dex_cache) { in Initialize() argument 110 DexCache::SetNativePair(dex_cache, 0, first_elem); in Initialize()
|
D | object-refvisitor-inl.h | 61 ObjPtr<mirror::DexCache> const dex_cache = AsDexCache<kVerifyFlags, kReadBarrierOption>(); in VisitReferences() local 62 dex_cache->VisitReferences<kVisitNativeRoots, in VisitReferences()
|
D | class-inl.h | 469 ObjPtr<DexCache> dex_cache, in ResolvedFieldAccessTest() argument 471 DCHECK(dex_cache != nullptr); in ResolvedFieldAccessTest() 476 dex::TypeIndex class_idx = dex_cache->GetDexFile()->GetFieldId(field_idx).class_idx_; in ResolvedFieldAccessTest() 482 dex_cache, in ResolvedFieldAccessTest() 504 ObjPtr<DexCache> dex_cache, in ResolvedMethodAccessTest() argument 508 DCHECK(dex_cache != nullptr); in ResolvedMethodAccessTest() 513 dex::TypeIndex class_idx = dex_cache->GetDexFile()->GetMethodId(method_idx).class_idx_; in ResolvedMethodAccessTest() 518 dex_cache, in ResolvedMethodAccessTest() 521 << " Could not resolve " << dex_cache->GetDexFile()->StringByTypeIdx(class_idx) in ResolvedMethodAccessTest() 544 ObjPtr<DexCache> dex_cache, in CanAccessResolvedField() argument [all …]
|
D | class.cc | 573 ArtMethod* Class::FindInterfaceMethod(ObjPtr<DexCache> dex_cache, in FindInterfaceMethod() argument 577 const DexFile& dex_file = *dex_cache->GetDexFile(); in FindInterfaceMethod() 833 ArtMethod* Class::FindClassMethod(ObjPtr<DexCache> dex_cache, in FindClassMethod() argument 841 if (this_dex_cache == dex_cache) { in FindClassMethod() 852 const DexFile& dex_file = *dex_cache->GetDexFile(); in FindClassMethod() 858 if (this_dex_cache != dex_cache && !GetDeclaredMethodsSlice(pointer_size).empty()) { in FindClassMethod() 878 if (klass_dex_cache == dex_cache) { in FindClassMethod() 1108 ArtField* Class::FindDeclaredInstanceField(ObjPtr<DexCache> dex_cache, uint32_t dex_field_idx) { in FindDeclaredInstanceField() argument 1109 if (GetDexCache() == dex_cache) { in FindDeclaredInstanceField() 1159 ArtField* Class::FindDeclaredStaticField(ObjPtr<DexCache> dex_cache, uint32_t dex_field_idx) { in FindDeclaredStaticField() argument [all …]
|
/art/dex2oat/driver/ |
D | compiler_driver-inl.h | 37 Handle<mirror::DexCache> dex_cache, in ResolveClass() argument 41 DCHECK_EQ(dex_cache->GetDexFile(), mUnit->GetDexFile()); in ResolveClass() 44 mUnit->GetClassLinker()->ResolveType(cls_index, dex_cache, class_loader); in ResolveClass() 55 Handle<mirror::DexCache> dex_cache, in ResolveCompilingMethodsClass() argument 58 DCHECK_EQ(dex_cache->GetDexFile(), mUnit->GetDexFile()); in ResolveCompilingMethodsClass() 62 return ResolveClass(soa, dex_cache, class_loader, referrer_method_id.class_idx_, mUnit); in ResolveCompilingMethodsClass() 66 Handle<mirror::DexCache> dex_cache, in ResolveField() argument 71 field_idx, dex_cache, class_loader, is_static); in ResolveField() 87 ObjPtr<mirror::DexCache> dex_cache, in IsFastInstanceField() argument 96 dex_cache, in IsFastInstanceField()
|
D | compiler_driver_test.cc | 126 ObjPtr<mirror::DexCache> dex_cache = class_linker_->FindDexCache(soa.Self(), dex); in TEST_F() local 127 EXPECT_EQ(dex.NumStringIds(), dex_cache->NumStrings()); in TEST_F() 128 for (size_t i = 0; i < dex_cache->NumStrings(); i++) { in TEST_F() 129 const ObjPtr<mirror::String> string = dex_cache->GetResolvedString(dex::StringIndex(i)); in TEST_F() 132 EXPECT_EQ(dex.NumTypeIds(), dex_cache->NumResolvedTypes()); in TEST_F() 133 for (size_t i = 0; i < dex_cache->NumResolvedTypes(); i++) { in TEST_F() 134 const ObjPtr<mirror::Class> type = dex_cache->GetResolvedType(dex::TypeIndex(i)); in TEST_F() 138 EXPECT_TRUE(dex_cache->StaticMethodSize() == dex_cache->NumResolvedMethods() in TEST_F() 139 || dex.NumMethodIds() == dex_cache->NumResolvedMethods()); in TEST_F() 140 for (size_t i = 0; i < dex_cache->NumResolvedMethods(); i++) { in TEST_F() [all …]
|
D | compiler_driver.cc | 376 Handle<mirror::DexCache> dex_cache, in CompileMethodHarness() argument 392 dex_cache); in CompileMethodHarness() 457 Handle<mirror::DexCache> dex_cache, in CompileMethodQuick() argument 469 Handle<mirror::DexCache> dex_cache) { in CompileMethodQuick() argument 485 access_flags, method_idx, dex_file, dex_cache); in CompileMethodQuick() 516 dex_cache); in CompileMethodQuick() 552 dex_cache, in CompileMethodQuick() 591 MutableHandle<mirror::DexCache> dex_cache(hs.NewHandle<mirror::DexCache>(nullptr)); in ResolveConstStrings() local 595 dex_cache.Assign(class_linker->FindDexCache(soa.Self(), *dex_file)); in ResolveConstStrings() 649 ObjPtr<mirror::String> string = class_linker->ResolveString(string_index, dex_cache); in ResolveConstStrings() [all …]
|
D | compiler_driver.h | 141 Handle<mirror::DexCache> dex_cache, 147 Handle<mirror::DexCache> dex_cache, 156 Handle<mirror::DexCache> dex_cache, 163 std::pair<bool, bool> IsFastInstanceField(ObjPtr<mirror::DexCache> dex_cache,
|
/art/test/497-inlining-and-class-loader/ |
D | clear_dex_cache.cc | 35 ObjPtr<mirror::DexCache> dex_cache = soa.Decode<mirror::Class>(cls)->GetDexCache(); in Java_Main_cloneResolvedMethods() local 36 size_t num_methods = dex_cache->NumResolvedMethods(); in Java_Main_cloneResolvedMethods() 37 mirror::MethodDexCacheType* methods = dex_cache->GetResolvedMethods(); in Java_Main_cloneResolvedMethods() 70 ObjPtr<mirror::DexCache> dex_cache = soa.Decode<mirror::Class>(cls)->GetDexCache(); in Java_Main_restoreResolvedMethods() local 71 size_t num_methods = dex_cache->NumResolvedMethods(); in Java_Main_restoreResolvedMethods() 72 mirror::MethodDexCacheType* methods = dex_cache->GetResolvedMethods(); in Java_Main_restoreResolvedMethods()
|
/art/runtime/verifier/ |
D | class_verifier.cc | 56 Handle<mirror::DexCache> dex_cache, in UpdateMethodFlags() argument 61 MethodReference ref(dex_cache->GetDexFile(), method_index); in UpdateMethodFlags() 73 klass->FindClassMethod(dex_cache.Get(), method_index, linker->GetImagePointerSize()); in UpdateMethodFlags() 88 Handle<mirror::DexCache> dex_cache, in VerifyClass() argument 132 dex_cache, in VerifyClass() 154 UpdateMethodFlags(method.GetIndex(), klass, dex_cache, callbacks, result.types); in VerifyClass()
|
D | method_verifier_test.cc | 47 Handle<mirror::DexCache> dex_cache(hs.NewHandle(klass->GetDexCache())); in VerifyClass() local 54 dex_cache->GetDexFile(), in VerifyClass() 56 dex_cache, in VerifyClass()
|
D | method_verifier.h | 104 Handle<mirror::DexCache> dex_cache, 240 Handle<mirror::DexCache> dex_cache, 258 Handle<mirror::DexCache> dex_cache, 277 Handle<mirror::DexCache> dex_cache,
|
/art/test/626-const-class-linking/ |
D | clear_dex_cache_types.cc | 29 ObjPtr<mirror::DexCache> dex_cache = soa.Decode<mirror::Class>(cls)->GetDexCache(); in Java_Main_nativeClearResolvedTypes() local 30 for (size_t i = 0, num_types = dex_cache->NumResolvedTypes(); i != num_types; ++i) { in Java_Main_nativeClearResolvedTypes() 32 dex_cache->GetResolvedTypes()[i].store(cleared, std::memory_order_relaxed); in Java_Main_nativeClearResolvedTypes()
|
/art/runtime/entrypoints/ |
D | entrypoint_utils-inl.h | 57 ObjPtr<mirror::DexCache> dex_cache, in GetResolvedMethodErrorString() argument 81 } else if (dex_cache != nullptr) { in GetResolvedMethodErrorString() 84 << dex_cache->GetDexFile()->PrettyMethod(method_index) << " (" in GetResolvedMethodErrorString() 85 << dex_cache->GetDexFile()->GetLocation() << "/" in GetResolvedMethodErrorString() 86 << static_cast<const void*>(dex_cache->GetDexFile()) << "). "; in GetResolvedMethodErrorString() 141 ObjPtr<mirror::DexCache> dex_cache = nullptr; in GetResolvedMethod() local 148 class_linker, inlined_method, method, outer_method, dex_cache, method_info); in GetResolvedMethod() 151 dex_cache = class_linker->FindDexCache(Thread::Current(), *dex_file); in GetResolvedMethod() 158 class_linker, inlined_method, method, outer_method, dex_cache, method_info); in GetResolvedMethod() 161 dex_cache = class_linker->FindDexCache(Thread::Current(), *odf); in GetResolvedMethod() [all …]
|
/art/compiler/driver/ |
D | dex_compilation_unit.cc | 38 Handle<mirror::DexCache> dex_cache, in DexCompilationUnit() argument 48 dex_cache_(dex_cache), in DexCompilationUnit()
|
/art/compiler/optimizing/ |
D | ssa_builder.h | 53 Handle<mirror::DexCache> dex_cache, in SsaBuilder() argument 57 dex_cache_(dex_cache), in SsaBuilder()
|
/art/compiler/ |
D | compiler.h | 68 Handle<mirror::DexCache> dex_cache) const = 0; 73 Handle<mirror::DexCache> dex_cache) const = 0;
|
/art/runtime/dex/ |
D | dex_file_annotations.h | 151 RuntimeEncodedStaticFieldValueIterator(Handle<mirror::DexCache> dex_cache, in RuntimeEncodedStaticFieldValueIterator() argument 156 : EncodedStaticFieldValueIterator(*dex_cache->GetDexFile(), class_def), in RuntimeEncodedStaticFieldValueIterator() 157 dex_cache_(dex_cache), in RuntimeEncodedStaticFieldValueIterator()
|