Home
last modified time | relevance | path

Searched refs:class_loader (Results 1 – 25 of 55) sorted by relevance

123

/art/compiler/driver/
Dcompiler_driver_test.cc40 void CompileAll(jobject class_loader) LOCKS_EXCLUDED(Locks::mutator_lock_) { in CompileAll() argument
43 compiler_driver_->CompileAll(class_loader, in CompileAll()
44 Runtime::Current()->GetCompileTimeClassPath(class_loader), in CompileAll()
47 MakeAllExecutable(class_loader); in CompileAll()
50 void EnsureCompiled(jobject class_loader, const char* class_name, const char* method, in EnsureCompiled() argument
53 CompileAll(class_loader); in EnsureCompiled()
68 void MakeAllExecutable(jobject class_loader) { in MakeAllExecutable() argument
70 = Runtime::Current()->GetCompileTimeClassPath(class_loader); in MakeAllExecutable()
74 MakeDexFileExecutable(class_loader, *dex_file); in MakeAllExecutable()
78 void MakeDexFileExecutable(jobject class_loader, const DexFile& dex_file) { in MakeDexFileExecutable() argument
[all …]
Dcompiler_driver-inl.h45 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit) { in ResolveCompilingMethodsClass() argument
47 DCHECK_EQ(class_loader.Get(), soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader())); in ResolveCompilingMethodsClass()
51 *mUnit->GetDexFile(), referrer_method_id.class_idx_, dex_cache, class_loader); in ResolveCompilingMethodsClass()
62 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit, in ResolveField() argument
65 DCHECK_EQ(class_loader.Get(), soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader())); in ResolveField()
67 *mUnit->GetDexFile(), field_idx, dex_cache, class_loader, is_static); in ResolveField()
169 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit, in ResolveMethod() argument
172 DCHECK_EQ(class_loader.Get(), soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader())); in ResolveMethod()
174 *mUnit->GetDexFile(), method_idx, dex_cache, class_loader, NullHandle<mirror::ArtMethod>(), in ResolveMethod()
211 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit, in IsFastInvoke() argument
[all …]
Dcompiler_driver.cc329 jobject class_loader,
506 void CompilerDriver::CompileAll(jobject class_loader, in CompileAll() argument
512 PreCompile(class_loader, dex_files, thread_pool.get(), timings); in CompileAll()
513 Compile(class_loader, dex_files, thread_pool.get(), timings); in CompileAll()
520 Thread* self, Handle<mirror::ClassLoader> class_loader, const DexFile& dex_file, in GetDexToDexCompilationlevel() argument
524 mirror::Class* klass = class_linker->FindClass(self, descriptor, class_loader); in GetDexToDexCompilationlevel()
583 Handle<mirror::ClassLoader> class_loader( in CompileOne() local
585 dex_to_dex_compilation_level = GetDexToDexCompilationlevel(self, class_loader, *dex_file, in CompileOne()
596 void CompilerDriver::Resolve(jobject class_loader, const std::vector<const DexFile*>& dex_files, in Resolve() argument
601 ResolveDexFile(class_loader, *dex_file, dex_files, thread_pool, timings); in Resolve()
[all …]
Ddex_compilation_unit.cc28 class_loader_(cu->class_loader), in DexCompilationUnit()
39 jobject class_loader, in DexCompilationUnit() argument
48 class_loader_(class_loader), in DexCompilationUnit()
Dcompiler_driver.h118 void CompileAll(jobject class_loader, const std::vector<const DexFile*>& dex_files,
233 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit)
240 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit,
270 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit,
289 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit,
703 void PreCompile(jobject class_loader, const std::vector<const DexFile*>& dex_files,
712 void Resolve(jobject class_loader, const std::vector<const DexFile*>& dex_files,
715 void ResolveDexFile(jobject class_loader, const DexFile& dex_file,
720 void Verify(jobject class_loader, const std::vector<const DexFile*>& dex_files,
722 void VerifyDexFile(jobject class_loader, const DexFile& dex_file,
[all …]
/art/compiler/
Dcompilers.cc34 jobject class_loader,
57 jobject class_loader, in Compile() argument
64 class_loader, in Compile()
76 class_loader, in Compile()
147 jobject class_loader, in Compile() argument
150 method_idx, class_loader, dex_file); in Compile()
156 class_loader, dex_file); in Compile()
Dcompiler.cc35 jobject class_loader,
45 jobject class_loader, in TryCompileWithSeaIR() argument
56 class_loader, in TryCompileWithSeaIR()
76 jobject class_loader,
104 jobject class_loader, in Compile() argument
111 class_loader, in Compile()
123 class_loader, in Compile()
Dcommon_compiler_test.h51 void MakeExecutable(mirror::ClassLoader* class_loader, const char* class_name)
61 void CompileClass(mirror::ClassLoader* class_loader, const char* class_name)
66 void CompileDirectMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name,
70 void CompileVirtualMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name,
Dcompilers.h37 jobject class_loader,
83 jobject class_loader,
91 jobject class_loader,
Dcommon_compiler_test.cc267 void CommonCompilerTest::MakeExecutable(mirror::ClassLoader* class_loader, const char* class_name) { in MakeExecutable() argument
271 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in MakeExecutable()
348 void CommonCompilerTest::CompileClass(mirror::ClassLoader* class_loader, const char* class_name) { in CompileClass() argument
352 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in CompileClass()
372 void CommonCompilerTest::CompileDirectMethod(Handle<mirror::ClassLoader> class_loader, in CompileDirectMethod() argument
377 mirror::Class* klass = class_linker_->FindClass(self, class_descriptor.c_str(), class_loader); in CompileDirectMethod()
385 void CommonCompilerTest::CompileVirtualMethod(Handle<mirror::ClassLoader> class_loader, const char*… in CompileVirtualMethod() argument
390 mirror::Class* klass = class_linker_->FindClass(self, class_descriptor.c_str(), class_loader); in CompileVirtualMethod()
Dcompiler.h55 jobject class_loader,
63 jobject class_loader,
/art/compiler/sea_ir/
Dfrontend.cc45 jobject class_loader, const DexFile& dex_file, in CompileMethodWithSeaIr() argument
71 jobject class_loader, in SeaIrCompileOneMethod() argument
75 class_def_idx, method_idx, class_loader, dex_file, llvm_compilation_unit); in SeaIrCompileOneMethod()
82 uint16_t class_def_idx, uint32_t method_idx, jobject class_loader, in SeaIrCompileMethod() argument
88 class_def_idx, method_idx, class_loader, dex_file, in SeaIrCompileMethod()
/art/compiler/dex/
Dmir_field_info.cc48 Handle<mirror::ClassLoader> class_loader( in Resolve() local
51 compiler_driver->ResolveCompilingMethodsClass(soa, dex_cache, class_loader, mUnit))); in Resolve()
58 compiler_driver->ResolveField(soa, dex_cache, class_loader, mUnit, field_idx, false); in Resolve()
95 Handle<mirror::ClassLoader> class_loader( in Resolve() local
98 compiler_driver->ResolveCompilingMethodsClass(soa, dex_cache, class_loader, mUnit))); in Resolve()
105 compiler_driver->ResolveField(soa, dex_cache, class_loader, mUnit, field_idx, true); in Resolve()
Dmir_method_info.cc50 Handle<mirror::ClassLoader> class_loader( in Resolve() local
53 compiler_driver->ResolveCompilingMethodsClass(soa, dex_cache, class_loader, mUnit))); in Resolve()
66 compiler_driver->ResolveMethod(soa, dex_cache, class_loader, mUnit, it->MethodIndex(), in Resolve()
77 soa, dex_cache, class_loader, mUnit, referrer_class.Get(), resolved_method, &invoke_type, in Resolve()
/art/runtime/
Dtransaction_test.cc106 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
108 ASSERT_TRUE(class_loader.Get() != nullptr); in TEST_F()
111 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticFieldsTest;", class_loader))); in TEST_F()
201 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
203 ASSERT_TRUE(class_loader.Get() != nullptr); in TEST_F()
206 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LInstanceFieldsTest;", class_loader))); in TEST_F()
301 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
303 ASSERT_TRUE(class_loader.Get() != nullptr); in TEST_F()
306 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticArrayFieldsTest;", class_loader))); in TEST_F()
415 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
[all …]
Dclass_linker_test.cc103 mirror::ClassLoader* class_loader) in AssertArrayClass() argument
107 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in AssertArrayClass()
112 EXPECT_EQ(class_loader, array->GetClassLoader()); in AssertArrayClass()
322 void AssertDexFileClass(mirror::ClassLoader* class_loader, const std::string& descriptor) in AssertDexFileClass() argument
332 EXPECT_EQ(class_loader, klass->GetClassLoader()); in AssertDexFileClass()
342 void AssertDexFile(const DexFile* dex, mirror::ClassLoader* class_loader) in AssertDexFile() argument
350 AssertDexFileClass(class_loader, descriptor); in AssertDexFile()
356 AssertDexFileClass(class_loader, descriptor); in AssertDexFile()
627 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
630 mirror::Class* outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F()
[all …]
Dclass_linker-inl.h49 Handle<mirror::ClassLoader> class_loader(hs.NewHandle((*element_class)->GetClassLoader())); in FindArrayClass()
51 mirror::Class* array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass()
82 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveType()
84 resolved_type = ResolveType(dex_file, type_idx, dex_cache, class_loader); in ResolveType()
98 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveType()
100 resolved_type = ResolveType(dex_file, type_idx, dex_cache, class_loader); in ResolveType()
149 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveField()
151 resolved_field = ResolveField(dex_file, field_idx, dex_cache, class_loader, is_static); in ResolveField()
Dproxy_test.cc113 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
117 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
119 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
147 Handle<mirror::ClassLoader> class_loader( in TEST_F() local
151 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
153 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
Dclass_linker.h76 Handle<mirror::ClassLoader> class_loader)
83 Handle<mirror::ClassLoader> class_loader)
100 Handle<mirror::ClassLoader> class_loader,
107 mirror::ClassLoader* class_loader)
120 bool RemoveClass(const char* descriptor, mirror::ClassLoader* class_loader)
169 Handle<mirror::ClassLoader> class_loader)
180 Handle<mirror::ClassLoader> class_loader,
206 Handle<mirror::ClassLoader> class_loader,
216 Handle<mirror::ClassLoader> class_loader)
460 Handle<mirror::ClassLoader> class_loader)
[all …]
Druntime.cc366 Handle<mirror::ClassLoader> class_loader( in CreateSystemClassLoader() local
368 CHECK(class_loader.Get() != nullptr); in CreateSystemClassLoader()
371 soa.AddLocalReference<jobject>(class_loader.Get())); in CreateSystemClassLoader()
374 soa.Self()->SetClassLoaderOverride(class_loader.Get()); in CreateSystemClassLoader()
385 contextClassLoader->SetObject<false>(soa.Self()->GetPeer(), class_loader.Get()); in CreateSystemClassLoader()
930 auto class_loader(hs.NewHandle<mirror::ClassLoader>(nullptr)); in InitNativeMethods() local
931 if (!instance_->java_vm_->LoadNativeLibrary(mapped_name, class_loader, &reason)) { in InitNativeMethods()
1318 const std::vector<const DexFile*>& Runtime::GetCompileTimeClassPath(jobject class_loader) { in GetCompileTimeClassPath() argument
1319 if (class_loader == NULL) { in GetCompileTimeClassPath()
1323 CompileTimeClassPaths::const_iterator it = compile_time_class_paths_.find(class_loader); in GetCompileTimeClassPath()
[all …]
/art/runtime/native/
Ddalvik_system_VMStack.cc91 : StackVisitor(thread, NULL), bootstrap(bootstrap), system(system), class_loader(NULL) {} in VMStack_getClosestUserClassLoader()
94 DCHECK(class_loader == NULL); in VMStack_getClosestUserClassLoader()
98 class_loader = cl; in VMStack_getClosestUserClassLoader()
106 mirror::Object* class_loader; in VMStack_getClosestUserClassLoader() member
113 return soa.AddLocalReference<jobject>(visitor.class_loader); in VMStack_getClosestUserClassLoader()
Djava_lang_Class.cc64 …Handle<mirror::ClassLoader> class_loader(hs.NewHandle(soa.Decode<mirror::ClassLoader*>(javaLoader)… in Class_classForName() local
67 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
/art/runtime/mirror/
Dobject_test.cc327 jobject class_loader = LoadDex("StaticsFromCode"); in TEST_F() local
328 const DexFile* dex_file = Runtime::Current()->GetCompileTimeClassPath(class_loader)[0]; in TEST_F()
332 Handle<mirror::ClassLoader> loader(hs.NewHandle(soa.Decode<ClassLoader*>(class_loader))); in TEST_F()
529 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader))); in TEST_F() local
531 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
532 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
564 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader))); in TEST_F() local
565 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
566 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
602 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader))); in TEST_F() local
[all …]
/art/runtime/verifier/
Dmethod_verifier.h145 Handle<mirror::ClassLoader> class_loader,
153 Handle<mirror::ClassLoader> class_loader,
207 Handle<mirror::ClassLoader>* class_loader, const DexFile::ClassDef* class_def, in MethodVerifier() argument
211 : MethodVerifier(dex_file, dex_cache, class_loader, class_def, code_item, method_idx, method, in MethodVerifier()
245 Handle<mirror::ClassLoader>* class_loader, const DexFile::ClassDef* class_def,
270 Handle<mirror::ClassLoader> class_loader,
/art/compiler/llvm/
Dcompiler_llvm.cc45 uint16_t class_def_idx, uint32_t method_idx, jobject class_loader,
209 jobject class_loader, in ArtCompileMethod() argument
215 NULL, class_loader, class_linker, dex_file, code_item, in ArtCompileMethod()

123