Lines Matching full:mirror
36 #include "mirror/art_field-inl.h"
37 #include "mirror/art_method-inl.h"
38 #include "mirror/class_loader.h"
39 #include "mirror/class-inl.h"
40 #include "mirror/dex_cache-inl.h"
41 #include "mirror/object-inl.h"
42 #include "mirror/object_array-inl.h"
43 #include "mirror/throwable.h"
500 static DexToDexCompilationLevel GetDexToDexCompilationlevel(mirror::ClassLoader* class_loader,
506 mirror::Class* klass = class_linker->FindClass(descriptor, class_loader);
526 DCHECK_EQ(klass->GetStatus(), mirror::Class::kStatusRetryVerificationAtRuntime);
534 void CompilerDriver::CompileOne(const mirror::ArtMethod* method, base::TimingLogger& timings) {
566 mirror::ClassLoader* class_loader = soa.Decode<mirror::ClassLoader*>(jclass_loader);
646 static bool ResolveCatchBlockExceptionsClassVisitor(mirror::Class* c, void* arg)
652 mirror::ArtMethod* m = c->GetVirtualMethod(i);
657 mirror::ArtMethod* m = c->GetDirectMethod(i);
664 static bool RecordImageClassesVisitor(mirror::Class* klass, void* arg)
686 SirtRef<mirror::Class> klass(self, class_linker->FindSystemClass(descriptor.c_str()));
700 SirtRef<mirror::Class> java_lang_Throwable(self,
709 mirror::DexCache* dex_cache = class_linker->FindDexCache(*dex_file);
710 mirror:: ClassLoader* class_loader = NULL;
711 SirtRef<mirror::Class> klass(self, class_linker->ResolveType(*dex_file, exception_type_idx,
732 static void MaybeAddToImageClasses(mirror::Class* klass, CompilerDriver::DescriptorSet* image_classes)
754 void CompilerDriver::FindClinitImageClassesCallback(mirror::Object* object, void* arg) {
782 mirror::DexCache* dex_cache = Runtime::Current()->GetClassLinker()->FindDexCache(dex_file);
783 mirror::Class* resolved_class = dex_cache->GetResolvedType(type_idx);
802 mirror::DexCache* dex_cache = Runtime::Current()->GetClassLinker()->FindDexCache(dex_file);
828 mirror::DexCache* dex_cache = Runtime::Current()->GetClassLinker()->FindDexCache(dex_file);
830 mirror::Class* resolved_class = dex_cache->GetResolvedType(type_idx);
839 mirror::Class* referrer_class = dex_cache->GetResolvedType(method_id.class_idx_);
865 mirror::DexCache* dex_cache = Runtime::Current()->GetClassLinker()->FindDexCache(dex_file);
867 mirror::Class* resolved_class = dex_cache->GetResolvedType(type_idx);
873 mirror::Class* referrer_class = dex_cache->GetResolvedType(method_id.class_idx_);
889 static mirror::Class* ComputeCompilingMethodsClass(ScopedObjectAccess& soa,
890 mirror::DexCache* dex_cache,
898 mirror::ClassLoader* class_loader = soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader());
904 static mirror::ArtField* ComputeFieldReferencedFromCompilingMethod(ScopedObjectAccess& soa,
908 mirror::DexCache* dex_cache = mUnit->GetClassLinker()->FindDexCache(*mUnit->GetDexFile());
909 mirror::ClassLoader* class_loader = soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader());
914 static mirror::ArtMethod* ComputeMethodReferencedFromCompilingMethod(ScopedObjectAccess& soa,
919 mirror::DexCache* dex_cache = mUnit->GetClassLinker()->FindDexCache(*mUnit->GetDexFile());
920 mirror::ClassLoader* class_loader = soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader());
932 mirror::ArtField* resolved_field = ComputeFieldReferencedFromCompilingMethod(soa, mUnit, field_idx);
934 mirror::Class* referrer_class =
938 mirror::Class* fields_class = resolved_field->GetDeclaringClass();
947 mirror::Class* dex_fields_class = mUnit->GetClassLinker()->ResolveType(dex_file,
983 mirror::ArtField* resolved_field = ComputeFieldReferencedFromCompilingMethod(soa, mUnit, field_idx);
985 mirror::Class* referrer_class =
989 mirror::Class* fields_class = resolved_field->GetDeclaringClass();
1006 mirror::Class* dex_fields_class =
1020 mirror::DexCache* dex_cache = mUnit->GetClassLinker()->FindDexCache(*mUnit->GetDexFile());
1059 mirror::Class* referrer_class,
1060 mirror::ArtMethod* method,
1123 mirror::ArtMethod* resolved_method =
1129 mirror::Class* referrer_class =
1134 mirror::Class* methods_class = resolved_method->GetDeclaringClass();
1184 mirror::DexCache* target_dex_cache =
1186 mirror::ClassLoader* class_loader =
1187 soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader());
1188 mirror::ArtMethod* called_method =
1461 static bool SkipClass(jobject class_loader, const DexFile& dex_file, mirror::Class* klass)
1500 mirror::ClassLoader* class_loader = soa.Decode<mirror::ClassLoader*>(jclass_loader);
1501 mirror::DexCache* dex_cache = class_linker->FindDexCache(dex_file);
1504 mirror::Class* klass = class_linker->ResolveType(dex_file, class_def.class_idx_, dex_cache,
1528 mirror::ArtField* field = class_linker->ResolveField(dex_file, it.GetMemberIndex(),
1544 mirror::ArtField* field = class_linker->ResolveField(dex_file, it.GetMemberIndex(),
1555 mirror::ArtMethod* method = class_linker->ResolveMethod(dex_file, it.GetMemberIndex(),
1565 mirror::ArtMethod* method = class_linker->ResolveMethod(dex_file, it.GetMemberIndex(),
1589 mirror::DexCache* dex_cache = class_linker->FindDexCache(dex_file);
1590 mirror::ClassLoader* class_loader = soa.Decode<mirror::ClassLoader*>(manager->GetClassLoader());
1591 mirror::Class* klass = class_linker->ResolveType(dex_file, type_idx, dex_cache, class_loader);
1595 mirror::Throwable* exception = soa.Self()->GetException(NULL);
1645 mirror::Class* klass = class_linker->FindClass(descriptor,
1646 soa.Decode<mirror::ClassLoader*>(jclass_loader));
1656 mirror::DexCache* dex_cache = class_linker->FindDexCache(dex_file);
1659 soa.Decode<mirror::ClassLoader*>(jclass_loader),
2117 mirror::ClassLoader* class_loader = soa.Decode<mirror::ClassLoader*>(jclass_loader);
2118 mirror::Class* klass = class_linker->FindClass(descriptor, class_loader);
2160 mirror::ObjectArray<mirror::ArtField>* fields = klass->GetSFields();
2163 klass->SetStatus(mirror::Class::kStatusInitialized, soa.Self());
2247 mirror::ClassLoader* class_loader = soa.Decode<mirror::ClassLoader*>(jclass_loader);
2380 void CompilerDriver::RecordClassStatus(ClassReference ref, mirror::Class::Status status) {
2390 case mirror::Class::kStatusNotReady:
2391 case mirror::Class::kStatusError:
2392 case mirror::Class::kStatusRetryVerificationAtRuntime:
2393 case mirror::Class::kStatusVerified:
2394 case mirror::Class::kStatusInitialized: