Home
last modified time | relevance | path

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

1234

/art/runtime/entrypoints/
Dentrypoint_utils-inl.h92 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in GetResolvedMethod() local
95 mirror::Class* klass = class_linker->LookupClass(self, descriptor, class_loader); in GetResolvedMethod()
250 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in CheckArrayAlloc() local
251 klass = class_linker->ResolveType(type_idx, method); in CheckArrayAlloc()
336 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in FindFieldFromCode() local
352 resolved_field = class_linker->ResolveFieldJLS(*method->GetDexFile(), in FindFieldFromCode()
359 resolved_field = class_linker->ResolveField(field_idx, referrer, is_static); in FindFieldFromCode()
404 if (LIKELY(class_linker->EnsureInitialized(self, hs.NewHandle(fields_class), true, true))) { in FindFieldFromCode()
442 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); in FindMethodFromCode() local
448 resolved_method = class_linker->ResolveMethod<resolve_mode>(self, method_idx, referrer, type); in FindMethodFromCode()
[all …]
/art/compiler/driver/
Dcompiler_driver_test.cc81 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in MakeDexFileExecutable() local
89 mirror::Class* c = class_linker->FindClass(soa.Self(), descriptor, loader); in MakeDexFileExecutable()
91 const auto pointer_size = class_linker->GetImagePointerSize(); in MakeDexFileExecutable()
213 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in TEST_F() local
218 mirror::Class* klass = class_linker->FindClass(self, "LStaticLeafMethods;", h_loader); in TEST_F()
223 const auto pointer_size = class_linker->GetImagePointerSize(); in TEST_F()
230 EXPECT_FALSE(class_linker->IsQuickToInterpreterBridge(code)); in TEST_F()
232 EXPECT_TRUE(class_linker->IsQuickToInterpreterBridge(code)); in TEST_F()
276 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in CheckCompiledMethods() local
282 mirror::Class* klass = class_linker->FindClass(self, clazz.c_str(), h_loader); in CheckCompiledMethods()
[all …]
Ddex_compilation_unit.cc25 ClassLinker* class_linker, in DexCompilationUnit() argument
34 class_linker_(class_linker), in DexCompilationUnit()
Dcompiler_driver.cc373 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in SetupIntrinsic() local
374 PointerSize image_size = class_linker->GetImagePointerSize(); in SetupIntrinsic()
375 ObjPtr<mirror::Class> cls = class_linker->FindSystemClass(self, class_name); in SetupIntrinsic()
435 ClassLinker* class_linker = runtime->GetClassLinker(); in GetDexToDexCompilationLevel() local
436 mirror::Class* klass = class_linker->FindClass(self, descriptor, class_loader); in GetDexToDexCompilationLevel()
766 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); in ResolveConstStrings() local
776 mirror::String* string = class_linker->ResolveString(dex_file, string_index, dex_cache); in ResolveConstStrings()
794 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); in ResolveConstStrings() local
798 dex_cache.Assign(class_linker->FindDexCache(soa.Self(), *dex_file)); in ResolveConstStrings()
867 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in EnsureVerifiedOrVerifyAtRuntime() local
[all …]
/art/runtime/native/
Djava_lang_reflect_Proxy.cc35 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in Proxy_generateProxy() local
36 return soa.AddLocalReference<jclass>(class_linker->CreateProxyClass( in Proxy_generateProxy()
Ddalvik_system_DexFile.cc325 ClassLinker* const class_linker = runtime->GetClassLinker(); in DexFile_closeDexFile() local
331 if (!class_linker->IsDexFileRegistered(soa.Self(), *dex_file)) { in DexFile_closeDexFile()
346 VLOG(class_linker) << "Unregistering " << oat_file; in DexFile_closeDexFile()
361 VLOG(class_linker) << "Failed to find dex_file"; in DexFile_defineClassNative()
368 VLOG(class_linker) << "Failed to find class_name"; in DexFile_defineClassNative()
378 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in DexFile_defineClassNative() local
383 class_linker->RegisterDexFile(*dex_file, class_loader.Get()); in DexFile_defineClassNative()
389 ObjPtr<mirror::Class> result = class_linker->DefineClass(soa.Self(), in DexFile_defineClassNative()
397 class_linker->InsertDexFileInToClassLoader(soa.Decode<mirror::Object>(dexFile), in DexFile_defineClassNative()
400 VLOG(class_linker) << "DexFile_defineClassNative returning " << result in DexFile_defineClassNative()
[all …]
Djava_lang_reflect_Array.cc62 ClassLinker* class_linker = runtime->GetClassLinker(); in Array_createObjectArray() local
63 ObjPtr<mirror::Class> array_class = class_linker->FindArrayClass(soa.Self(), &element_class); in Array_createObjectArray()
/art/runtime/mirror/
Dmethod_type_test.cc44 ClassLinker* const class_linker = runtime->GetClassLinker(); in CreateMethodType() local
52 Handle<mirror::Class> return_clazz = hs.NewHandle(class_linker->FindClass( in CreateMethodType()
57 mirror::Class* class_array_type = class_linker->FindArrayClass(self, &class_type); in CreateMethodType()
62 Handle<mirror::Class> param = hs.NewHandle(class_linker->FindClass( in CreateMethodType()
Darray.cc96 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in CreateMultiArray() local
100 hs.NewHandle(class_linker->FindArrayClass(self, &element_class_ptr))); in CreateMultiArray()
107 array_class.Assign(class_linker->FindArrayClass(self, &array_class_ptr)); in CreateMultiArray()
/art/runtime/
Dhandle_scope_test.cc47 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); in TEST_F() local
53 ObjPtr<mirror::Class> c = class_linker->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in TEST_F()
94 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); in TEST_F() local
96 hs.NewHandle(class_linker->FindSystemClass(soa.Self(), "Ljava/lang/Object;")); in TEST_F()
Dimtable_test.cc45 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in LoadClasses() local
55 hs.NewHandle(class_linker->FindClass(self, class_name.c_str(), h_class_loader))); in LoadClasses()
65 hs.NewHandle(class_linker->FindClass(self, class_name.c_str(), h_class_loader))); in LoadClasses()
Dinstrumentation.cc155 ClassLinker* const class_linker = runtime->GetClassLinker(); in InstallStubsForMethod() local
164 new_quick_code = class_linker->GetQuickOatCodeFor(method); in InstallStubsForMethod()
185 new_quick_code = class_linker->GetQuickOatCodeFor(method); in InstallStubsForMethod()
738 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in UpdateMethodsCodeImpl() local
739 if (class_linker->IsQuickResolutionStub(quick_code) || in UpdateMethodsCodeImpl()
740 class_linker->IsQuickToInterpreterBridge(quick_code)) { in UpdateMethodsCodeImpl()
842 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in Undeoptimize() local
849 : class_linker->GetQuickOatCodeFor(method); in Undeoptimize()
932 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in GetQuickCodeFor() local
936 if (LIKELY(!class_linker->IsQuickResolutionStub(code) && in GetQuickCodeFor()
[all …]
Dreference_table_test.cc43 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in CreateWeakReference() local
49 class_linker->FindClass(self, in CreateWeakReference()
53 CHECK(class_linker->EnsureInitialized(self, h_ref_class, true, true)); in CreateWeakReference()
60 "(Ljava/lang/Object;)V", class_linker->GetImagePointerSize()); in CreateWeakReference()
Dmonitor_test.cc61 static void FillHeap(Thread* self, ClassLinker* class_linker, in FillHeap() argument
69 Handle<mirror::Class> c((*hsp)->NewHandle(class_linker->FindSystemClass(self, in FillHeap()
72 Handle<mirror::Class> ca((*hsp)->NewHandle(class_linker->FindSystemClass(self, in FillHeap()
291 static void CommonWaitSetup(MonitorTest* test, ClassLinker* class_linker, uint64_t create_sleep, in CommonWaitSetup() argument
312 FillHeap(soa.Self(), class_linker, &hsp, &handles); in CommonWaitSetup()
Dinstrumentation_test.cc483 ClassLinker* class_linker = runtime->GetClassLinker(); in TEST_F() local
486 mirror::Class* klass = class_linker->FindClass(soa.Self(), "LInstrumentation;", loader); in TEST_F()
503 ClassLinker* class_linker = runtime->GetClassLinker(); in TEST_F() local
506 mirror::Class* klass = class_linker->FindClass(soa.Self(), "LInstrumentation;", loader); in TEST_F()
534 ClassLinker* class_linker = runtime->GetClassLinker(); in TEST_F() local
537 mirror::Class* klass = class_linker->FindClass(soa.Self(), "LInstrumentation;", loader); in TEST_F()
552 ClassLinker* class_linker = runtime->GetClassLinker(); in TEST_F() local
555 mirror::Class* klass = class_linker->FindClass(soa.Self(), "LInstrumentation;", loader); in TEST_F()
583 ClassLinker* class_linker = runtime->GetClassLinker(); in TEST_F() local
586 mirror::Class* klass = class_linker->FindClass(soa.Self(), "LInstrumentation;", loader); in TEST_F()
[all …]
/art/runtime/interpreter/
Dunstarted_runtime_test.cc959 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in TEST_F() local
964 class_linker->FindClass(self, in TEST_F()
968 ASSERT_TRUE(class_linker->EnsureInitialized(self, floating_decimal, true, true)); in TEST_F()
973 class_linker->GetImagePointerSize()); in TEST_F()
995 &*class_class->GetDeclaredMethods(class_linker->GetImagePointerSize()).begin(); in TEST_F()
1018 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in TEST_F() local
1020 class_linker->FindClass(self, in TEST_F()
1024 ASSERT_TRUE(class_linker->EnsureInitialized(self, double_class, true, true)); in TEST_F()
1028 class_linker->GetImagePointerSize()); in TEST_F()
1058 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in TEST_F() local
[all …]
/art/runtime/openjdkjvmti/
Dti_search.cc61 art::ClassLinker* class_linker) in GetSystemProperties() argument
64 class_linker->LookupClass(self, "Ljava/lang/System;", nullptr); in GetSystemProperties()
85 art::ClassLinker* class_linker = art::Runtime::Current()->GetClassLinker(); in Update() local
86 DCHECK(class_linker != nullptr); in Update()
91 class_linker->LookupClass(self, "Ljava/util/Properties;", nullptr); in Update()
96 art::ObjPtr<art::mirror::Object> props_obj = GetSystemProperties(self, class_linker); in Update()
Dti_class_loader.cc148 art::ClassLinker* class_linker = art::Runtime::Current()->GetClassLinker(); in FindSourceDexFileObject() local
152 art::Handle<art::mirror::Class> base_dex_loader_class(hs.NewHandle(class_linker->FindClass( in FindSourceDexFileObject()
161 class_linker->FindClass(self, dex_path_list_name, null_loader) in FindSourceDexFileObject()
166 class_linker->FindClass(self, dex_path_list_element_name, null_loader) in FindSourceDexFileObject()
/art/compiler/optimizing/
Dsharpening.cc245 ClassLinker* class_linker = runtime->GetClassLinker(); in ProcessLoadString() local
250 : hs.NewHandle(class_linker->FindDexCache(soa.Self(), dex_file)); in ProcessLoadString()
257 string = class_linker->ResolveString(dex_file, string_index, dex_cache); in ProcessLoadString()
268 string = class_linker->LookupString(dex_file, string_index, dex_cache.Get()); in ProcessLoadString()
280 string = class_linker->LookupString(dex_file, string_index, dex_cache.Get()); in ProcessLoadString()
Dinliner.cc461 ClassLinker* class_linker = compilation_unit.GetClassLinker(); in AllocateInlineCacheHolder() local
465 class_linker->GetClassRoot(ClassLinker::kClassArrayClass), in AllocateInlineCacheHolder()
702 HInstanceFieldGet* HInliner::BuildGetReceiverClass(ClassLinker* class_linker, in BuildGetReceiverClass() argument
705 ArtField* field = class_linker->GetClassRoot(ClassLinker::kJavaLangObject)->GetInstanceField(0); in BuildGetReceiverClass()
764 ClassLinker* class_linker = caller_compilation_unit_.GetClassLinker(); in TryInlineMonomorphicCall() local
765 PointerSize pointer_size = class_linker->GetImagePointerSize(); in TryInlineMonomorphicCall()
843 ClassLinker* class_linker = caller_compilation_unit_.GetClassLinker(); in AddTypeGuard() local
845 class_linker, receiver, invoke_instruction->GetDexPc()); in AddTypeGuard()
919 ClassLinker* class_linker = caller_compilation_unit_.GetClassLinker(); in TryInlinePolymorphicCall() local
920 PointerSize pointer_size = class_linker->GetImagePointerSize(); in TryInlinePolymorphicCall()
[all …]
Dintrinsics.cc232 ClassLinker* class_linker = runtime->GetClassLinker(); in ComputeIntegerValueOfInfo() local
235 info.integer_cache = class_linker->FindSystemClass(self, "Ljava/lang/Integer$IntegerCache;"); in ComputeIntegerValueOfInfo()
244 info.integer = class_linker->FindSystemClass(self, "Ljava/lang/Integer;"); in ComputeIntegerValueOfInfo()
/art/compiler/dex/
Ddex_to_dex_compiler.cc293 ClassLinker* class_linker = unit_.GetClassLinker(); in CompileInvokeVirtual() local
295 class_linker->ResolveMethod<ClassLinker::ResolveMode::kCheckICCEAndIAE>( in CompileInvokeVirtual()
343 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); in ArtCompileDEX() local
346 class_linker, in ArtCompileDEX()
353 hs.NewHandle(class_linker->FindDexCache(soa.Self(), dex_file))); in ArtCompileDEX()
/art/compiler/
Doat_test.cc208 ClassLinker* const class_linker = runtime->GetClassLinker(); in DoWriteElf() local
213 class_linker->RegisterDexFile(*dex_file, nullptr); in DoWriteElf()
391 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in TEST_F() local
402 compiler_driver_->SetDexFilesForOatFile(class_linker->GetBootClassPath()); in TEST_F()
403 compiler_driver_->CompileAll(class_loader, class_linker->GetBootClassPath(), &timings2); in TEST_F()
411 class_linker->GetBootClassPath(), in TEST_F()
417 compiler_driver_->CompileAll(class_loader, class_linker->GetBootClassPath(), &timings); in TEST_F()
430 ASSERT_EQ(class_linker->GetBootClassPath().size(), oat_header.GetDexFileCount()); // core in TEST_F()
443 auto pointer_size = class_linker->GetImagePointerSize(); in TEST_F()
455 mirror::Class* klass = class_linker->FindClass(soa.Self(), in TEST_F()
[all …]
/art/runtime/verifier/
Dverifier_deps.cc861 static mirror::Class* FindClassAndClearException(ClassLinker* class_linker, in FindClassAndClearException() argument
866 mirror::Class* result = class_linker->FindClass(self, name, class_loader); in FindClassAndClearException()
880 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in VerifyAssignability() local
887 FindClassAndClearException(class_linker, self, destination_desc.c_str(), class_loader)); in VerifyAssignability()
890 FindClassAndClearException(class_linker, self, source_desc.c_str(), class_loader)); in VerifyAssignability()
920 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in VerifyClasses() local
924 cls.Assign(FindClassAndClearException(class_linker, self, descriptor, class_loader)); in VerifyClasses()
964 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in VerifyFields() local
975 class_linker, self, expected_decl_klass.c_str(), class_loader); in VerifyFields()
1023 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in VerifyMethods() local
[all …]
/art/runtime/base/
Dlogging.h38 bool class_linker; // Enabled with "-verbose:class". member

1234