Home
last modified time | relevance | path

Searched refs:class_linker (Results 1 – 25 of 42) sorted by relevance

12

/art/compiler/
Delf_patcher.cc43 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in Patch() local
44 const OatFile* oat_file = class_linker->FindOpenedOatFileFromOatLocation(oat_location); in Patch()
53 CHECK_EQ(class_linker->RegisterOatFile(oat_file), oat_file); in Patch()
78 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in GetTargetMethod() local
81 hs.NewHandle(class_linker->FindDexCache(*patch->GetTargetDexFile()))); in GetTargetMethod()
82 mirror::ArtMethod* method = class_linker->ResolveMethod(*patch->GetTargetDexFile(), in GetTargetMethod()
100 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in GetTargetString() local
102 Handle<mirror::DexCache> dex_cache(hs.NewHandle(class_linker->FindDexCache(patch->GetDexFile()))); in GetTargetString()
103 mirror::String* string = class_linker->ResolveString(patch->GetDexFile(), patch->GetStringIdx(), in GetTargetString()
110 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in GetTargetType() local
[all …]
Doat_test.cc89 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in TEST_F() local
113 compiler_driver_->CompileAll(class_loader, class_linker->GetBootClassPath(), &timings); in TEST_F()
120 OatWriter oat_writer(class_linker->GetBootClassPath(), in TEST_F()
129 class_linker->GetBootClassPath(), in TEST_F()
135 compiler_driver_->CompileAll(class_loader, class_linker->GetBootClassPath(), &timings); in TEST_F()
164 mirror::Class* klass = class_linker->FindClass(soa.Self(), descriptor, in TEST_F()
Dimage_test.cc67 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in TEST_F() local
75 for (const DexFile* dex_file : class_linker->GetBootClassPath()) { in TEST_F()
78 compiler_driver_->CompileAll(class_loader, class_linker->GetBootClassPath(), &timings); in TEST_F()
83 … OatWriter oat_writer(class_linker->GetBootClassPath(), 0, 0, 0, compiler_driver_.get(), &timings, in TEST_F()
87 class_linker->GetBootClassPath(), in TEST_F()
Dimage_writer.cc86 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in Write() local
101 CHECK_EQ(class_linker->RegisterOatFile(oat_file_), oat_file_); in Write()
441 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in ComputeLazyFieldsForImageClasses() local
442 class_linker->VisitClassesWithoutClassesLock(ComputeLazyFieldsForClassesVisitor, NULL); in ComputeLazyFieldsForImageClasses()
608 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in ComputeEagerResolvedStringsCallback() local
609 ReaderMutexLock mu(Thread::Current(), *class_linker->DexLock()); in ComputeEagerResolvedStringsCallback()
610 size_t dex_cache_count = class_linker->GetDexCacheCount(); in ComputeEagerResolvedStringsCallback()
612 DexCache* dex_cache = class_linker->GetDexCache(i); in ComputeEagerResolvedStringsCallback()
650 ClassLinker* class_linker = runtime->GetClassLinker(); in PruneNonImageClasses() local
657 class_linker->VisitClasses(NonImageClassesVisitor, &context); in PruneNonImageClasses()
[all …]
/art/compiler/driver/
Ddex_compilation_unit.cc29 class_linker_(cu->class_linker), in DexCompilationUnit()
40 ClassLinker* class_linker, in DexCompilationUnit() argument
49 class_linker_(class_linker), in DexCompilationUnit()
Dcompiler_driver.cc523 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in GetDexToDexCompilationlevel() local
524 mirror::Class* klass = class_linker->FindClass(self, descriptor, class_loader); in GetDexToDexCompilationlevel()
723 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in LoadImageClasses() local
729 hs.NewHandle(class_linker->FindSystemClass(self, descriptor.c_str()))); in LoadImageClasses()
745 hs.NewHandle(class_linker->FindSystemClass(self, "Ljava/lang/Throwable;"))); in LoadImageClasses()
748 class_linker->VisitClasses(ResolveCatchBlockExceptionsClassVisitor, in LoadImageClasses()
754 Handle<mirror::DexCache> dex_cache(hs.NewHandle(class_linker->FindDexCache(*dex_file))); in LoadImageClasses()
756 class_linker->ResolveType(*dex_file, exception_type_idx, dex_cache, in LoadImageClasses()
772 class_linker->VisitClasses(RecordImageClassesVisitor, image_classes_.get()); in LoadImageClasses()
1450 ParallelCompilationManager(ClassLinker* class_linker, in ParallelCompilationManager() argument
[all …]
Dcompiler_driver-inl.h264 ClassLinker* class_linker = mUnit->GetClassLinker(); in IsFastInvoke() local
266 called_method = class_linker->ResolveMethod(*devirt_target->dex_file, in IsFastInvoke()
273 hs.NewHandle(class_linker->FindDexCache(*devirt_target->dex_file))); in IsFastInvoke()
274 called_method = class_linker->ResolveMethod(*devirt_target->dex_file, in IsFastInvoke()
Ddex_compilation_unit.h38 DexCompilationUnit(CompilationUnit* cu, jobject class_loader, ClassLinker* class_linker,
Dcompiler_driver_test.cc79 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in MakeDexFileExecutable() local
87 mirror::Class* c = class_linker->FindClass(soa.Self(), descriptor, loader); in MakeDexFileExecutable()
/art/runtime/
Dinstrumentation.cc99 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in UpdateEntrypoints() local
101 quick_code == class_linker->GetQuickToInterpreterBridgeTrampoline() || in UpdateEntrypoints()
102 (quick_code == class_linker->GetQuickResolutionTrampoline() && in UpdateEntrypoints()
110 } else if (quick_code == class_linker->GetQuickResolutionTrampoline()) { in UpdateEntrypoints()
112 DCHECK(portable_code == class_linker->GetPortableResolutionTrampoline()); in UpdateEntrypoints()
138 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in InstallStubsForMethod() local
152 new_portable_code = class_linker->GetPortableOatCodeFor(method, &have_portable_code); in InstallStubsForMethod()
154 new_quick_code = class_linker->GetQuickOatCodeFor(method); in InstallStubsForMethod()
157 new_portable_code = class_linker->GetPortableResolutionTrampoline(); in InstallStubsForMethod()
159 new_quick_code = class_linker->GetQuickResolutionTrampoline(); in InstallStubsForMethod()
[all …]
Dmonitor_test.cc59 static void FillHeap(Thread* self, ClassLinker* class_linker, in FillHeap() argument
67 Handle<mirror::Class> c((*hsp)->NewHandle(class_linker->FindSystemClass(self, in FillHeap()
70 Handle<mirror::Class> ca((*hsp)->NewHandle(class_linker->FindSystemClass(self, in FillHeap()
290 static void CommonWaitSetup(MonitorTest* test, ClassLinker* class_linker, uint64_t create_sleep, in CommonWaitSetup() argument
316 FillHeap(self, class_linker, &hsp, &handles); in CommonWaitSetup()
Dreflection.cc740 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in UnboxPrimitive() local
743 src_class = class_linker->FindPrimitiveClass('Z'); in UnboxPrimitive()
746 src_class = class_linker->FindPrimitiveClass('B'); in UnboxPrimitive()
749 src_class = class_linker->FindPrimitiveClass('C'); in UnboxPrimitive()
752 src_class = class_linker->FindPrimitiveClass('F'); in UnboxPrimitive()
755 src_class = class_linker->FindPrimitiveClass('D'); in UnboxPrimitive()
758 src_class = class_linker->FindPrimitiveClass('I'); in UnboxPrimitive()
761 src_class = class_linker->FindPrimitiveClass('J'); in UnboxPrimitive()
764 src_class = class_linker->FindPrimitiveClass('S'); in UnboxPrimitive()
Druntime.cc1207 ClassLinker* class_linker = runtime->GetClassLinker(); in CreateImtConflictMethod() local
1209 Handle<mirror::ArtMethod> method(hs.NewHandle(class_linker->AllocArtMethod(self))); in CreateImtConflictMethod()
1221 method->SetEntryPointFromPortableCompiledCode(class_linker->GetPortableImtConflictTrampoline()); in CreateImtConflictMethod()
1223 method->SetEntryPointFromQuickCompiledCode(class_linker->GetQuickImtConflictTrampoline()); in CreateImtConflictMethod()
1231 ClassLinker* class_linker = runtime->GetClassLinker(); in CreateResolutionMethod() local
1233 Handle<mirror::ArtMethod> method(hs.NewHandle(class_linker->AllocArtMethod(self))); in CreateResolutionMethod()
1245 method->SetEntryPointFromPortableCompiledCode(class_linker->GetPortableResolutionTrampoline()); in CreateResolutionMethod()
1247 method->SetEntryPointFromQuickCompiledCode(class_linker->GetQuickResolutionTrampoline()); in CreateResolutionMethod()
1255 ClassLinker* class_linker = runtime->GetClassLinker(); in CreateCalleeSaveMethod() local
1257 Handle<mirror::ArtMethod> method(hs.NewHandle(class_linker->AllocArtMethod(self))); in CreateCalleeSaveMethod()
Dparsed_options_test.cc71 EXPECT_TRUE(VLOG_IS_ON(class_linker)); in TEST_F()
/art/runtime/native/
Djava_lang_reflect_Proxy.cc30 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in Proxy_generateProxy() local
31 mirror::Class* result = class_linker->CreateProxyClass(soa, name, interfaces, loader, methods, in Proxy_generateProxy()
Djava_lang_Class.cc65 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in Class_classForName() local
67 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
81 class_linker->EnsureInitialized(c, true, true); in Class_classForName()
Ddalvik_system_DexFile.cc173 VLOG(class_linker) << "Failed to find dex_file"; in DexFile_defineClassNative()
178 VLOG(class_linker) << "Failed to find class_name"; in DexFile_defineClassNative()
187 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in DexFile_defineClassNative() local
188 class_linker->RegisterDexFile(*dex_file); in DexFile_defineClassNative()
192 mirror::Class* result = class_linker->DefineClass(soa.Self(), descriptor.c_str(), hash, in DexFile_defineClassNative()
195 VLOG(class_linker) << "DexFile_defineClassNative returning " << result; in DexFile_defineClassNative()
200 VLOG(class_linker) << "Failed to find dex_class_def"; in DexFile_defineClassNative()
396 ClassLinker* class_linker = runtime->GetClassLinker(); in CopyProfileFile() local
400 const std::vector<const DexFile*>& boot_class_path = class_linker->GetBootClassPath(); in CopyProfileFile()
Djava_lang_reflect_Array.cc55 ClassLinker* class_linker = runtime->GetClassLinker(); in Array_createObjectArray() local
56 mirror::Class* array_class = class_linker->FindArrayClass(soa.Self(), &element_class); in Array_createObjectArray()
/art/runtime/mirror/
Darray.cc94 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in CreateMultiArray() local
98 hs.NewHandle(class_linker->FindArrayClass(self, &element_class_ptr))); in CreateMultiArray()
105 array_class.Assign(class_linker->FindArrayClass(self, &array_class_ptr)); in CreateMultiArray()
Dclass.cc60 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in SetStatus() local
61 bool class_linker_initialized = class_linker != nullptr && class_linker->IsInitialized(); in SetStatus()
763 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in GetDirectInterface() local
765 return class_linker->FindSystemClass(self, "Ljava/lang/Cloneable;"); in GetDirectInterface()
768 return class_linker->FindSystemClass(self, "Ljava/io/Serializable;"); in GetDirectInterface()
Dart_method-inl.h192 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in AssertPcIsWithinQuickCode() local
193 if (code == class_linker->GetQuickResolutionTrampoline() || in AssertPcIsWithinQuickCode()
194 code == class_linker->GetQuickToInterpreterBridgeTrampoline()) { in AssertPcIsWithinQuickCode()
/art/compiler/llvm/
Dcompiler_llvm.cc212 art::ClassLinker *class_linker = art::Runtime::Current()->GetClassLinker(); in ArtCompileMethod() local
215 NULL, class_loader, class_linker, dex_file, code_item, in ArtCompileMethod()
225 art::ClassLinker *class_linker = art::Runtime::Current()->GetClassLinker(); in ArtLLVMJniCompileMethod() local
228 nullptr, nullptr, class_linker, dex_file, nullptr, in ArtLLVMJniCompileMethod()
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h274 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in FindFieldFromCode() local
275 mirror::ArtField* resolved_field = class_linker->ResolveField(field_idx, referrer, is_static); in FindFieldFromCode()
319 if (LIKELY(class_linker->EnsureInitialized(h_class, true, true))) { in FindFieldFromCode()
356 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); in FindMethodFromCode() local
357 mirror::ArtMethod* resolved_method = class_linker->GetResolvedMethod(method_idx, *referrer, type); in FindMethodFromCode()
363 resolved_method = class_linker->ResolveMethod(self, method_idx, referrer, type); in FindMethodFromCode()
579 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in ResolveVerifyAndClinit() local
580 mirror::Class* klass = class_linker->ResolveType(type_idx, referrer); in ResolveVerifyAndClinit()
604 if (!class_linker->EnsureInitialized(h_class, true, true)) { in ResolveVerifyAndClinit()
613 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in ResolveStringFromCode() local
[all …]
/art/compiler/dex/
Dcompiler_ir.h53 ClassLinker* class_linker; // Linker to resolve fields and methods. member
Dfrontend.cc481 class_linker(nullptr), in CompilationUnit()
647 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in CompileMethod() local
651 cu.class_linker = class_linker; in CompileMethod()

12