Home
last modified time | relevance | path

Searched refs:ClassRoot (Results 1 – 22 of 22) sorted by relevance

/art/runtime/
Dclass_root.cc23 const char* GetClassRootDescriptor(ClassRoot class_root) { in GetClassRootDescriptor()
29 static_assert(arraysize(class_roots_descriptors) == static_cast<size_t>(ClassRoot::kMax), in GetClassRootDescriptor()
32 DCHECK_LT(static_cast<uint32_t>(class_root), static_cast<uint32_t>(ClassRoot::kMax)); in GetClassRootDescriptor()
Dclass_root-inl.h31 inline ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root, in GetClassRoot()
39 DCHECK_LT(static_cast<uint32_t>(class_root), static_cast<uint32_t>(ClassRoot::kMax)); in GetClassRoot()
48 inline ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root, ClassLinker* linker) in GetClassRoot()
54 inline ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root) in GetClassRoot()
70 static constexpr ClassRoot value = ClassRoot::name; \
Dclass_root.h117 enum class ClassRoot : uint32_t { enum
124 const char* GetClassRootDescriptor(ClassRoot class_root);
127 ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root,
132 ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root, ClassLinker* linker)
136 ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root) REQUIRES_SHARED(Locks::mutator_lock_);
Dclass_linker.cc758 static_cast<int32_t>(ClassRoot::kMax))); in InitWithoutImage()
760 SetClassRoot(ClassRoot::kJavaLangClass, java_lang_Class.Get()); in InitWithoutImage()
761 SetClassRoot(ClassRoot::kJavaLangObject, java_lang_Object.Get()); in InitWithoutImage()
762 SetClassRoot(ClassRoot::kClassArrayClass, class_array_class.Get()); in InitWithoutImage()
763 SetClassRoot(ClassRoot::kObjectArrayClass, object_array_class.Get()); in InitWithoutImage()
764 SetClassRoot(ClassRoot::kJavaLangString, java_lang_String.Get()); in InitWithoutImage()
765 SetClassRoot(ClassRoot::kJavaLangRefReference, java_lang_ref_Reference.Get()); in InitWithoutImage()
775 CreatePrimitiveClass(self, Primitive::kPrimBoolean, ClassRoot::kPrimitiveBoolean); in InitWithoutImage()
776 CreatePrimitiveClass(self, Primitive::kPrimByte, ClassRoot::kPrimitiveByte); in InitWithoutImage()
777 CreatePrimitiveClass(self, Primitive::kPrimChar, ClassRoot::kPrimitiveChar); in InitWithoutImage()
[all …]
Dclass_linker.h48 enum class ClassRoot : uint32_t;
939 ClassRoot primitive_root,
940 ClassRoot array_root)
951 void FinishCoreArrayClassSetup(ClassRoot array_root)
968 void CreatePrimitiveClass(Thread* self, Primitive::Type type, ClassRoot primitive_root)
1285 void SetClassRoot(ClassRoot class_root, ObjPtr<mirror::Class> klass)
Dmethod_handles_test.cc58 Handle<mirror::Class> void_class = hs.NewHandle(GetClassRoot(ClassRoot::kPrimitiveVoid, cl)); in CreateVoidMethodType()
Dclass_linker_test.cc1410 for (size_t i = 0; i < static_cast<size_t>(ClassRoot::kMax); i++) { in TEST_F()
1411 ObjPtr<mirror::Class> klass = GetClassRoot(ClassRoot(i), class_linker_); in TEST_F()
1413 EXPECT_STREQ(klass->GetDescriptor(&temp), GetClassRootDescriptor(ClassRoot(i))) << " i = " << i; in TEST_F()
/art/runtime/mirror/
Dclass.cc82 ClassRoot class_root = ClassRoot::kJavaLangObject; // Invalid. in GetPrimitiveClass()
88 case 'b': expected_name = "boolean"; class_root = ClassRoot::kPrimitiveBoolean; break; in GetPrimitiveClass()
89 case 'B': expected_name = "byte"; class_root = ClassRoot::kPrimitiveByte; break; in GetPrimitiveClass()
90 case 'c': expected_name = "char"; class_root = ClassRoot::kPrimitiveChar; break; in GetPrimitiveClass()
91 case 'd': expected_name = "double"; class_root = ClassRoot::kPrimitiveDouble; break; in GetPrimitiveClass()
92 case 'f': expected_name = "float"; class_root = ClassRoot::kPrimitiveFloat; break; in GetPrimitiveClass()
93 case 'i': expected_name = "int"; class_root = ClassRoot::kPrimitiveInt; break; in GetPrimitiveClass()
94 case 'l': expected_name = "long"; class_root = ClassRoot::kPrimitiveLong; break; in GetPrimitiveClass()
95 case 's': expected_name = "short"; class_root = ClassRoot::kPrimitiveShort; break; in GetPrimitiveClass()
96 case 'v': expected_name = "void"; class_root = ClassRoot::kPrimitiveVoid; break; in GetPrimitiveClass()
Dvar_handle.cc183 return GetClassRoot(ClassRoot::kPrimitiveBoolean); in GetReturnType()
189 return GetClassRoot(ClassRoot::kPrimitiveVoid); in GetReturnType()
Dobject_test.cc83 self, GetClassRoot(ClassRoot::kObjectArrayClass, class_linker_), length); in AllocObjectArray()
/art/runtime/interpreter/
Dinterpreter_common.cc606 return GetClassRoot(ClassRoot::kPrimitiveInt, class_roots); in GetClassForBootstrapArgument()
608 return GetClassRoot(ClassRoot::kPrimitiveLong, class_roots); in GetClassForBootstrapArgument()
610 return GetClassRoot(ClassRoot::kPrimitiveFloat, class_roots); in GetClassForBootstrapArgument()
612 return GetClassRoot(ClassRoot::kPrimitiveDouble, class_roots); in GetClassForBootstrapArgument()
820 if (component_type == GetClassRoot(ClassRoot::kPrimitiveInt, class_roots)) { in PackCollectorArrayForBootstrapMethod()
822 } else if (component_type == GetClassRoot(ClassRoot::kPrimitiveLong, class_roots)) { in PackCollectorArrayForBootstrapMethod()
824 } else if (component_type == GetClassRoot(ClassRoot::kPrimitiveFloat, class_roots)) { in PackCollectorArrayForBootstrapMethod()
826 } else if (component_type == GetClassRoot(ClassRoot::kPrimitiveDouble, class_roots)) { in PackCollectorArrayForBootstrapMethod()
/art/openjdkjvmti/
Dti_class_definition.cc168 art::GetClassRoot(art::ClassRoot::kPrimitiveLong)); in GetDexDataForRetransformation()
231 art::GetClassRoot(art::ClassRoot::kPrimitiveLong)); in GetQuickenedDexFile()
/art/compiler/optimizing/
Dcode_generator.h639 static uint32_t GetBootImageOffset(ClassRoot class_root);
Dnodes.h327 return GetRootHandle(ClassRoot::kJavaLangObject, &object_class_handle_); in GetObjectClassHandle()
331 return GetRootHandle(ClassRoot::kJavaLangClass, &class_class_handle_); in GetClassClassHandle()
335 return GetRootHandle(ClassRoot::kJavaLangInvokeMethodHandleImpl, &method_handle_class_handle_); in GetMethodHandleClassHandle()
339 return GetRootHandle(ClassRoot::kJavaLangInvokeMethodType, &method_type_class_handle_); in GetMethodTypeClassHandle()
343 return GetRootHandle(ClassRoot::kJavaLangString, &string_class_handle_); in GetStringClassHandle()
347 return GetRootHandle(ClassRoot::kJavaLangThrowable, &throwable_class_handle_); in GetThrowableClassHandle()
352 inline ReferenceTypeInfo::TypeHandle GetRootHandle(ClassRoot class_root, in GetRootHandle()
361 ClassRoot class_root);
Dcode_generator_arm_vixl.h644 void LoadClassRootForIntrinsic(vixl::aarch32::Register reg, ClassRoot class_root);
Dcode_generator_arm64.h818 void LoadClassRootForIntrinsic(vixl::aarch64::Register reg, ClassRoot class_root);
Dcode_generator.cc937 uint32_t CodeGenerator::GetBootImageOffset(ClassRoot class_root) NO_THREAD_SAFETY_ANALYSIS { in GetBootImageOffset()
Dnodes.cc52 ClassRoot class_root) { in CreateRootHandle()
Dintrinsics_arm64.cc5307 codegen->LoadClassRootForIntrinsic(temp2, ClassRoot::kJavaLangInvokeByteArrayViewVarHandle); in EmitByteArrayViewCode()
Dintrinsics_arm_vixl.cc5291 codegen->LoadClassRootForIntrinsic(temp2, ClassRoot::kJavaLangInvokeByteArrayViewVarHandle); in EmitByteArrayViewCode()
Dcode_generator_arm64.cc5012 ClassRoot class_root) { in LoadClassRootForIntrinsic()
Dcode_generator_arm_vixl.cc9519 ClassRoot class_root) { in LoadClassRootForIntrinsic()