Home
last modified time | relevance | path

Searched refs:h_klass (Results 1 – 18 of 18) sorted by relevance

/art/runtime/
Dtransaction_test.cc49 MutableHandle<mirror::Class> h_klass( in testTransactionAbort() local
52 ASSERT_TRUE(h_klass != nullptr); in testTransactionAbort()
53 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort()
54 ASSERT_TRUE(h_klass->IsInitialized()); in testTransactionAbort()
56 h_klass.Assign(class_linker_->FindSystemClass(soa.Self(), kTransactionAbortErrorDescriptor)); in testTransactionAbort()
57 ASSERT_TRUE(h_klass != nullptr); in testTransactionAbort()
58 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort()
59 ASSERT_TRUE(h_klass->IsInitialized()); in testTransactionAbort()
62 h_klass.Assign(class_linker_->FindClass(soa.Self(), "LTransaction$AbortHelperClass;", in testTransactionAbort()
64 ASSERT_TRUE(h_klass != nullptr); in testTransactionAbort()
[all …]
Dclass_linker.cc3403 ObjPtr<mirror::Class> Finish(Handle<mirror::Class> h_klass) in Finish()
3410 return h_klass.Get(); in Finish()
3416 Handle<mirror::Class> h_klass(hs.NewHandle(klass)); in Finish() local
3417 return Finish(h_klass); in Finish()
/art/tools/art_verifier/
Dart_verifier.cc218 MutableHandle<mirror::Class> h_klass(scope.NewHandle<mirror::Class>(nullptr)); in ExecuteWithRuntime() local
238 h_klass.Assign(class_linker->FindClass(soa.Self(), descriptor, h_loader)); in ExecuteWithRuntime()
239 if (h_klass == nullptr || h_klass->IsErroneous()) { in ExecuteWithRuntime()
246 h_dex_cache.Assign(h_klass->GetDexCache()); in ExecuteWithRuntime()
252 h_klass, in ExecuteWithRuntime()
255 *h_klass->GetClassDef(), in ExecuteWithRuntime()
/art/test/common/
Druntime_state.cc251 Handle<mirror::Class> h_klass(hs.NewHandle(method->GetDeclaringClass())); in ForceJitCompiled() local
253 if (!class_linker->EnsureInitialized(self, h_klass, true, true)) { in ForceJitCompiled()
257 if (UNLIKELY(!h_klass->IsInitialized())) { in ForceJitCompiled()
259 CHECK_EQ(h_klass->GetStatus(), ClassStatus::kInitializing); in ForceJitCompiled()
260 CHECK_EQ(h_klass->GetClinitThreadId(), self->GetTid()); in ForceJitCompiled()
266 if (!h_klass->IsVisiblyInitialized()) { in ForceJitCompiled()
/art/runtime/entrypoints/quick/
Dquick_dexcache_entrypoints.cc219 Handle<mirror::Class> h_klass = hs.NewHandle(klass); in artInitializeStaticStorageFromCode() local
221 self, h_klass, /* can_init_fields= */ true, /* can_init_parents= */ true); in artInitializeStaticStorageFromCode()
225 return h_klass.Get(); in artInitializeStaticStorageFromCode()
/art/runtime/native/
Djava_lang_Class.cc382 Handle<mirror::Class> h_klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getDeclaredField() local
384 hs.NewHandle(GetDeclaredField(soa.Self(), h_klass.Get(), h_string.Get())); in Class_getDeclaredField()
387 if (name_str == "value" && h_klass->IsStringClass()) { in Class_getDeclaredField()
398 ThrowNoSuchFieldException(h_klass.Get(), name_str); in Class_getDeclaredField()
444 Handle<mirror::Class> h_klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getDeclaredConstructorsInternal() local
445 if (UNLIKELY(h_klass->IsObsoleteObject())) { in Class_getDeclaredConstructorsInternal()
451 for (auto& m : h_klass->GetDirectMethods(kRuntimePointerSize)) { in Class_getDeclaredConstructorsInternal()
461 for (auto& m : h_klass->GetDirectMethods(kRuntimePointerSize)) { in Class_getDeclaredConstructorsInternal()
Djava_lang_reflect_Field.cc150 HandleWrapperObjPtr<mirror::Class> h_klass(hs.NewHandleWrapper(&declaring_class)); in CheckReceiver() local
152 self, h_klass, /*can_init_fields=*/ true, /*can_init_parents=*/ true))) { in CheckReceiver()
156 DCHECK(h_klass->IsInitializing()); in CheckReceiver()
/art/oatdump/
Doatdump.cc2785 MutableHandle<mirror::Class> h_klass(scope.NewHandle<mirror::Class>(nullptr)); in DumpImtStats() local
2793 h_klass.Assign(class_linker->FindClass(self, descriptor, h_class_loader)); in DumpImtStats()
2794 if (h_klass == nullptr) { in DumpImtStats()
2799 if (HasNoIMT(runtime, h_klass, pointer_size, &prepared)) { in DumpImtStats()
2804 ImTable* im_table = PrepareAndGetImTable(runtime, h_klass, pointer_size, &prepared); in DumpImtStats()
2929 Handle<mirror::Class> h_klass = scope.NewHandle<mirror::Class>(klass); in PrepareAndGetImTable() local
2931 ImTable* ret = PrepareAndGetImTable(runtime, h_klass, pointer_size, prepared); in PrepareAndGetImTable()
2932 *klass_out = h_klass.Get(); in PrepareAndGetImTable()
2937 Handle<mirror::Class> h_klass, in PrepareAndGetImTable() argument
2941 PrepareClass(runtime, h_klass, prepared); in PrepareAndGetImTable()
[all …]
/art/runtime/gc/
Dheap-inl.h74 HandleWrapperObjPtr<mirror::Class> h_klass(hs.NewHandleWrapper(&klass)); in AllocObjectWithAllocator()
75 l->PreObjectAllocated(self, h_klass, &byte_count); in AllocObjectWithAllocator()
Dheap.cc1950 HandleWrapperObjPtr<mirror::Class> h_klass(hs.NewHandleWrapper(klass)); in AllocateInternalWithGc() local
1957 l->PreObjectAllocated(self, h_klass, &alloc_size); in AllocateInternalWithGc()
/art/openjdkjvmti/
Dti_class.cc674 art::Handle<art::mirror::Class> h_klass(hs.NewHandle(klass)); in GetImplementedInterfaces() local
678 art::mirror::Class::ResolveDirectInterface(soa.Self(), h_klass, idx); in GetImplementedInterfaces()
721 art::Handle<art::mirror::Class> h_klass = hs.NewHandle(klass); in GetClassSignature() local
723 art::annotations::GetSignatureAnnotationForClass(h_klass); in GetClassSignature()
832 art::Handle<art::mirror::Class> h_klass(hs.NewHandle(klass)); in ClassGetModifiers() local
833 return art::mirror::Class::GetInnerClassFlags(h_klass, modifiers); in ClassGetModifiers()
Dti_redefine.cc378 art::Handle<art::mirror::Class> h_klass(hs.NewHandle(obj->AsClass())); in IsModifiableClassGeneric() local
381 Redefiner::CanRedefineClass<kType>(h_klass, &err_unused) != ERR(UNMODIFIABLE_CLASS) in IsModifiableClassGeneric()
406 art::Handle<art::mirror::Class> h_klass(hs.NewHandle(obj->AsClass())); in CanRedefineClass() local
407 return Redefiner::CanRedefineClass<kType>(h_klass, error_msg); in CanRedefineClass()
934 art::Handle<art::mirror::Class> h_klass(hs.NewHandle(GetMirrorClass())); in CheckMethods() local
940 uint32_t num_old_method = h_klass->GetDeclaredMethodsSlice(art::kRuntimePointerSize).size(); in CheckMethods()
956 const art::DexFile& old_dex_file = h_klass->GetDexFile(); in CheckMethods()
957 art::ClassAccessor old_accessor(old_dex_file, *h_klass->GetClassDef()); in CheckMethods()
1016 art::Handle<art::mirror::Class> h_klass(hs.NewHandle(GetMirrorClass())); in CheckFields() local
1020 const art::DexFile& old_dex_file = h_klass->GetDexFile(); in CheckFields()
[all …]
Dti_heap.cc1217 art::Handle<art::mirror::Class> h_klass(hs.NewHandle<art::mirror::Class>(klass)); in VisitClass() local
1218 for (size_t i = 0; i < h_klass->NumDirectInterfaces(); ++i) { in VisitClass()
1220 art::mirror::Class::ResolveDirectInterface(self, h_klass, i); in VisitClass()
1248 DCHECK_EQ(h_klass.Get(), klass); in VisitClass()
/art/runtime/interpreter/
Dunstarted_runtime.cc303 Handle<mirror::Class> h_klass(hs.NewHandle(param->AsClass())); in UnstartedClassNewInstance() local
306 if (h_klass == nullptr) { in UnstartedClassNewInstance()
314 runtime->GetClassLinker()->TransactionAllocationConstraint(self, h_klass.Get())) { in UnstartedClassNewInstance()
325 if (cl->EnsureInitialized(self, h_klass, true, true)) { in UnstartedClassNewInstance()
326 ArtMethod* cons = h_klass->FindConstructor("()V", cl->GetImagePointerSize()); in UnstartedClassNewInstance()
331 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(self))); in UnstartedClassNewInstance()
341 h_klass->PrettyClass().c_str()); in UnstartedClassNewInstance()
346 h_klass->PrettyClass().c_str(), in UnstartedClassNewInstance()
/art/compiler/optimizing/
Dinstruction_builder.cc1752 Handle<mirror::Class> h_klass = graph_->GetHandleCache()->NewHandle(klass); in ProcessClinitCheckForInvoke() local
1753 HLoadClass* cls = BuildLoadClass(h_klass->GetDexTypeIndex(), in ProcessClinitCheckForInvoke()
1754 h_klass->GetDexFile(), in ProcessClinitCheckForInvoke()
1755 h_klass, in ProcessClinitCheckForInvoke()
2626 Handle<mirror::Class> h_klass = graph_->GetHandleCache()->NewHandle(klass); in ResolveClass() local
2627 class_cache_.Put(type_index, h_klass); in ResolveClass()
2628 return h_klass; in ResolveClass()
/art/dex2oat/driver/
Dcompiler_driver.cc1381 for (Handle<mirror::Class> h_klass : to_insert_) { in Walk()
1382 MaybeAddToImageClasses(self_, h_klass.Get(), image_class_descriptors_); in Walk()
2273 Handle<mirror::Class> h_klass(hs.NewHandle(klass->GetClass())); in TryInitializeClass() local
2274 ObjectLock<mirror::Class> lock(self, h_klass); in TryInitializeClass()
/art/runtime/mirror/
Dclass.cc1886 Handle<Class> h_klass = hs.NewHandle(klass); in GetDeclaredMethodInternal() local
1890 for (auto& m : h_klass->GetDeclaredVirtualMethods(kPointerSize)) { in GetDeclaredMethodInternal()
1923 for (auto& m : h_klass->GetDirectMethods(kPointerSize)) { in GetDeclaredMethodInternal()
/art/runtime/jni/
Djni_internal.cc473 Handle<mirror::Class> h_klass(hs.NewHandle(klass)); in EnsureInitialized() local
474 if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(self, h_klass, true, true)) { in EnsureInitialized()
477 return h_klass.Get(); in EnsureInitialized()