/art/runtime/mirror/ |
D | dex_cache_test.cc | 46 Handle<DexCache> dex_cache( in TEST_F() local 51 ASSERT_TRUE(dex_cache != nullptr); in TEST_F() 53 EXPECT_TRUE(dex_cache->StaticStringSize() == dex_cache->NumStrings() in TEST_F() 54 || java_lang_dex_file_->NumStringIds() == dex_cache->NumStrings()); in TEST_F() 55 EXPECT_TRUE(dex_cache->StaticTypeSize() == dex_cache->NumResolvedTypes() in TEST_F() 56 || java_lang_dex_file_->NumTypeIds() == dex_cache->NumResolvedTypes()); in TEST_F() 57 EXPECT_TRUE(dex_cache->StaticMethodSize() == dex_cache->NumResolvedMethods() in TEST_F() 58 || java_lang_dex_file_->NumMethodIds() == dex_cache->NumResolvedMethods()); in TEST_F() 59 EXPECT_TRUE(dex_cache->StaticArtFieldSize() == dex_cache->NumResolvedFields() in TEST_F() 60 || java_lang_dex_file_->NumFieldIds() == dex_cache->NumResolvedFields()); in TEST_F() [all …]
|
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 | 457 ObjPtr<DexCache> dex_cache, in ResolvedFieldAccessTest() argument 459 DCHECK(dex_cache != nullptr); in ResolvedFieldAccessTest() 464 dex::TypeIndex class_idx = dex_cache->GetDexFile()->GetFieldId(field_idx).class_idx_; in ResolvedFieldAccessTest() 470 dex_cache, in ResolvedFieldAccessTest() 492 ObjPtr<DexCache> dex_cache, in ResolvedMethodAccessTest() argument 496 DCHECK(dex_cache != nullptr); in ResolvedMethodAccessTest() 501 dex::TypeIndex class_idx = dex_cache->GetDexFile()->GetMethodId(method_idx).class_idx_; in ResolvedMethodAccessTest() 506 dex_cache, in ResolvedMethodAccessTest() 530 ObjPtr<DexCache> dex_cache, in CanAccessResolvedField() argument 532 return ResolvedFieldAccessTest<false>(access_to, field, dex_cache, field_idx); in CanAccessResolvedField() [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 | 377 Handle<mirror::DexCache> dex_cache, in CompileMethodHarness() argument 393 dex_cache); in CompileMethodHarness() 424 Handle<mirror::DexCache> dex_cache) { in CompileMethodQuick() argument 435 Handle<mirror::DexCache> dex_cache) { in CompileMethodQuick() argument 451 access_flags, method_idx, dex_file, dex_cache); in CompileMethodQuick() 481 dex_cache); in CompileMethodQuick() 518 dex_cache, in CompileMethodQuick() 555 MutableHandle<mirror::DexCache> dex_cache(hs.NewHandle<mirror::DexCache>(nullptr)); in ResolveConstStrings() local 559 dex_cache.Assign(class_linker->FindDexCache(soa.Self(), *dex_file)); in ResolveConstStrings() 601 ObjPtr<mirror::String> string = class_linker->ResolveString(string_index, dex_cache); in ResolveConstStrings() [all …]
|
D | compiler_driver.h | 142 Handle<mirror::DexCache> dex_cache, 148 Handle<mirror::DexCache> dex_cache, 157 Handle<mirror::DexCache> dex_cache, 164 std::pair<bool, bool> IsFastInstanceField(ObjPtr<mirror::DexCache> dex_cache,
|
/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() 168 ObjPtr<mirror::Class> resolved = dex_cache->GetResolvedType(type_idx); in ResolveType() 170 resolved = DoResolveType(type_idx, dex_cache, class_loader); in ResolveType() [all …]
|
D | class_linker.h | 265 Handle<mirror::DexCache> dex_cache) 271 ObjPtr<mirror::DexCache> dex_cache) 291 Handle<mirror::DexCache> dex_cache, 311 ObjPtr<mirror::DexCache> dex_cache, 329 ObjPtr<mirror::DexCache> dex_cache, 335 ObjPtr<mirror::DexCache> dex_cache, 344 ObjPtr<mirror::DexCache> dex_cache, 355 Handle<mirror::DexCache> dex_cache, 371 Handle<mirror::DexCache> dex_cache, 387 Handle<mirror::DexCache> dex_cache, [all …]
|
D | class_linker.cc | 1576 for (auto dex_cache : dex_caches.Iterate<mirror::DexCache>()) { in Update() local 1577 const DexFile* const dex_file = dex_cache->GetDexFile(); in Update() 1581 class_linker->RegisterDexFileLocked(*dex_file, dex_cache, class_loader.Get()); in Update() 1715 for (auto dex_cache : dex_caches->Iterate()) { in OpenImageDexFiles() local 1716 std::string dex_file_location(dex_cache->GetLocation()->ToModifiedUtf8()); in OpenImageDexFiles() 1723 dex_cache->SetDexFile(dex_file.get()); in OpenImageDexFiles() 1932 for (auto dex_cache : dex_caches.Iterate<mirror::DexCache>()) { in AddImageSpace() local 1933 std::string dex_file_location = dex_cache->GetLocation()->ToModifiedUtf8(); in AddImageSpace() 1947 dex_cache->InitializeNativeFields(dex_file.get(), linear_alloc); in AddImageSpace() 1951 AppendToBootClassPath(dex_file.get(), dex_cache); in AddImageSpace() [all …]
|
D | class_linker_test.cc | 987 ObjPtr<mirror::DexCache> dex_cache = klass->GetDexCache(); in TEST_F() local 989 class_linker_->LookupResolvedType(type_idx, dex_cache, class_loader.Get()), in TEST_F() 992 dex_cache->ClearResolvedType(type_idx); in TEST_F() 993 EXPECT_TRUE(dex_cache->GetResolvedType(type_idx) == nullptr); in TEST_F() 995 class_linker_->LookupResolvedType(type_idx, dex_cache, class_loader.Get()), in TEST_F() 1008 Handle<mirror::DexCache> dex_cache = hs.NewHandle(all_fields_klass->GetDexCache()); in TEST_F() local 1009 const DexFile& dex_file = *dex_cache->GetDexFile(); in TEST_F() 1016 class_linker_->LookupResolvedType(array_idx, dex_cache.Get(), class_loader.Get()) == nullptr); in TEST_F() 1023 class_linker_->LookupResolvedType(array_idx, dex_cache.Get(), class_loader.Get()), in TEST_F() 1026 dex_cache->ClearResolvedType(array_idx); in TEST_F() [all …]
|
D | hidden_api.h | 70 AccessContext(ObjPtr<mirror::ClassLoader> class_loader, ObjPtr<mirror::DexCache> dex_cache) in AccessContext() argument 73 dex_file_(GetDexFileFromDexCache(dex_cache)), in AccessContext() 100 static const DexFile* GetDexFileFromDexCache(ObjPtr<mirror::DexCache> dex_cache) in GetDexFileFromDexCache() argument 102 return dex_cache.IsNull() ? nullptr : dex_cache->GetDexFile(); in GetDexFileFromDexCache()
|
D | module_exclusion_test.cc | 59 MutableHandle<mirror::DexCache> dex_cache = hs.NewHandle<mirror::DexCache>(nullptr); in DoTest() local 64 dex_cache.Assign(class_linker->RegisterDexFile(*dex_file, class_loader.Get())); in DoTest() 68 class_linker->ResolveType(class_def.class_idx_, dex_cache, class_loader); in DoTest()
|
D | transaction.cc | 262 void Transaction::RecordResolveString(ObjPtr<mirror::DexCache> dex_cache, in RecordResolveString() argument 264 DCHECK(dex_cache != nullptr); in RecordResolveString() 265 DCHECK_LT(string_idx.index_, dex_cache->GetDexFile()->NumStringIds()); in RecordResolveString() 268 resolve_string_logs_.emplace_back(dex_cache, string_idx); in RecordResolveString() 627 Transaction::ResolveStringLog::ResolveStringLog(ObjPtr<mirror::DexCache> dex_cache, in ResolveStringLog() argument 629 : dex_cache_(dex_cache), in ResolveStringLog() 631 DCHECK(dex_cache != nullptr); in ResolveStringLog() 632 DCHECK_LT(string_idx_.index_, dex_cache->GetDexFile()->NumStringIds()); in ResolveStringLog()
|
/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/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/verifier/ |
D | class_verifier.cc | 188 Handle<mirror::DexCache> dex_cache(hs.NewHandle(klass->GetDexCache())); in CommonVerifyClass() local 193 dex_cache, in CommonVerifyClass() 208 Handle<mirror::DexCache> dex_cache, in VerifyClass() argument 220 dex_cache, in VerifyClass() 234 Handle<mirror::DexCache> dex_cache, in VerifyClass() argument 271 method_idx, dex_cache, class_loader, /* referrer= */ nullptr, type); in VerifyClass() 287 dex_cache, in VerifyClass()
|
D | method_verifier.h | 124 Handle<mirror::DexCache> dex_cache, 138 Handle<mirror::DexCache> dex_cache, 265 Handle<mirror::DexCache> dex_cache, 288 Handle<mirror::DexCache> dex_cache, 312 Handle<mirror::DexCache> dex_cache,
|
D | class_verifier.h | 80 Handle<mirror::DexCache> dex_cache, 111 Handle<mirror::DexCache> dex_cache,
|
/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/ |
D | compiler.h | 68 Handle<mirror::DexCache> dex_cache) const = 0; 73 Handle<mirror::DexCache> dex_cache) const = 0;
|
/art/compiler/optimizing/ |
D | ssa_builder.h | 53 Handle<mirror::DexCache> dex_cache, in SsaBuilder() argument 57 dex_cache_(dex_cache), in SsaBuilder()
|
D | sharpening.cc | 375 Handle<mirror::DexCache> dex_cache = IsSameDexFile(dex_file, *dex_compilation_unit.GetDexFile()) in ProcessLoadString() local 394 string = class_linker->LookupString(string_index, dex_cache.Get()); in ProcessLoadString() 396 string = class_linker->ResolveString(string_index, dex_cache); in ProcessLoadString() 415 string = class_linker->LookupString(string_index, dex_cache.Get()); in ProcessLoadString() 435 string = class_linker->LookupString(string_index, dex_cache.Get()); in ProcessLoadString()
|
/art/dex2oat/linker/ |
D | image_writer.cc | 226 bool ImageWriter::IsImageDexCache(ObjPtr<mirror::DexCache> dex_cache) const { in IsImageDexCache() 232 if (IsInBootImage(dex_cache.Ptr())) { in IsImageDexCache() 238 if (!ContainsElement(compiler_options_.GetDexFilesForOatFile(), dex_cache->GetDexFile())) { in IsImageDexCache() 1006 ObjPtr<mirror::DexCache> dex_cache = klass->GetDexCache(); in PruneImageClassInternal() local 1007 if (dex_cache != nullptr) { in PruneImageClassInternal() 1009 dex_file_oat_index_map_.find(dex_cache->GetDexFile()) == dex_file_oat_index_map_.end(); in PruneImageClassInternal() 1116 void ImageWriter::ClearDexCache(ObjPtr<mirror::DexCache> dex_cache) { in ClearDexCache() argument 1118 mirror::MethodDexCacheType* resolved_methods = dex_cache->GetResolvedMethods(); in ClearDexCache() 1119 for (size_t slot_idx = 0, num = dex_cache->NumResolvedMethods(); slot_idx != num; ++slot_idx) { in ClearDexCache() 1125 mirror::FieldDexCacheType* resolved_fields = dex_cache->GetResolvedFields(); in ClearDexCache() [all …]
|
/art/runtime/dex/ |
D | dex_file_annotations.h | 146 RuntimeEncodedStaticFieldValueIterator(Handle<mirror::DexCache> dex_cache, in RuntimeEncodedStaticFieldValueIterator() argument 151 : EncodedStaticFieldValueIterator(*dex_cache->GetDexFile(), class_def), in RuntimeEncodedStaticFieldValueIterator() 152 dex_cache_(dex_cache), in RuntimeEncodedStaticFieldValueIterator()
|