Home
last modified time | relevance | path

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

12

/art/runtime/
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.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.h120 enum class ClassRoot : uint32_t { enum
127 const char* GetClassRootDescriptor(ClassRoot class_root);
130 ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root,
135 ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root, ClassLinker* linker)
139 ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root) REQUIRES_SHARED(Locks::mutator_lock_);
Dclass_linker.cc765 static_cast<int32_t>(ClassRoot::kMax))); in InitWithoutImage()
767 SetClassRoot(ClassRoot::kJavaLangClass, java_lang_Class.Get()); in InitWithoutImage()
768 SetClassRoot(ClassRoot::kJavaLangObject, java_lang_Object.Get()); in InitWithoutImage()
769 SetClassRoot(ClassRoot::kClassArrayClass, class_array_class.Get()); in InitWithoutImage()
770 SetClassRoot(ClassRoot::kObjectArrayClass, object_array_class.Get()); in InitWithoutImage()
771 SetClassRoot(ClassRoot::kJavaLangString, java_lang_String.Get()); in InitWithoutImage()
772 SetClassRoot(ClassRoot::kJavaLangRefReference, java_lang_ref_Reference.Get()); in InitWithoutImage()
782 CreatePrimitiveClass(self, Primitive::kPrimBoolean, ClassRoot::kPrimitiveBoolean); in InitWithoutImage()
783 CreatePrimitiveClass(self, Primitive::kPrimByte, ClassRoot::kPrimitiveByte); in InitWithoutImage()
784 CreatePrimitiveClass(self, Primitive::kPrimChar, ClassRoot::kPrimitiveChar); in InitWithoutImage()
[all …]
Dclass_linker.h54 enum class ClassRoot : uint32_t;
1070 ClassRoot primitive_root,
1071 ClassRoot array_root)
1082 void FinishCoreArrayClassSetup(ClassRoot array_root)
1099 void CreatePrimitiveClass(Thread* self, Primitive::Type type, ClassRoot primitive_root)
1357 void SetClassRoot(ClassRoot class_root, ObjPtr<mirror::Class> klass)
Dclass_linker_test.cc1418 for (size_t i = 0; i < static_cast<size_t>(ClassRoot::kMax); i++) { in TEST_F()
1419 ObjPtr<mirror::Class> klass = GetClassRoot(ClassRoot(i), class_linker_); in TEST_F()
1421 EXPECT_STREQ(klass->GetDescriptor(&temp), GetClassRootDescriptor(ClassRoot(i))) << " i = " << i; in TEST_F()
/art/runtime/verifier/
Dreg_type_cache.cc66 CREATE_PRIMITIVE_TYPE(BooleanType, ClassRoot::kPrimitiveBoolean, "Z", kBooleanCacheId); in FillPrimitiveAndSmallConstantTypes()
67 CREATE_PRIMITIVE_TYPE(ByteType, ClassRoot::kPrimitiveByte, "B", kByteCacheId); in FillPrimitiveAndSmallConstantTypes()
68 CREATE_PRIMITIVE_TYPE(ShortType, ClassRoot::kPrimitiveShort, "S", kShortCacheId); in FillPrimitiveAndSmallConstantTypes()
69 CREATE_PRIMITIVE_TYPE(CharType, ClassRoot::kPrimitiveChar, "C", kCharCacheId); in FillPrimitiveAndSmallConstantTypes()
70 CREATE_PRIMITIVE_TYPE(IntegerType, ClassRoot::kPrimitiveInt, "I", kIntCacheId); in FillPrimitiveAndSmallConstantTypes()
71 CREATE_PRIMITIVE_TYPE(LongLoType, ClassRoot::kPrimitiveLong, "J", kLongLoCacheId); in FillPrimitiveAndSmallConstantTypes()
72 CREATE_PRIMITIVE_TYPE(LongHiType, ClassRoot::kPrimitiveLong, "J", kLongHiCacheId); in FillPrimitiveAndSmallConstantTypes()
73 CREATE_PRIMITIVE_TYPE(FloatType, ClassRoot::kPrimitiveFloat, "F", kFloatCacheId); in FillPrimitiveAndSmallConstantTypes()
74 CREATE_PRIMITIVE_TYPE(DoubleLoType, ClassRoot::kPrimitiveDouble, "D", kDoubleLoCacheId); in FillPrimitiveAndSmallConstantTypes()
75 CREATE_PRIMITIVE_TYPE(DoubleHiType, ClassRoot::kPrimitiveDouble, "D", kDoubleHiCacheId); in FillPrimitiveAndSmallConstantTypes()
/art/runtime/mirror/
Dclass.cc81 ClassRoot class_root = ClassRoot::kJavaLangObject; // Invalid. in GetPrimitiveClass()
87 case 'b': expected_name = "boolean"; class_root = ClassRoot::kPrimitiveBoolean; break; in GetPrimitiveClass()
88 case 'B': expected_name = "byte"; class_root = ClassRoot::kPrimitiveByte; break; in GetPrimitiveClass()
89 case 'c': expected_name = "char"; class_root = ClassRoot::kPrimitiveChar; break; in GetPrimitiveClass()
90 case 'd': expected_name = "double"; class_root = ClassRoot::kPrimitiveDouble; break; in GetPrimitiveClass()
91 case 'f': expected_name = "float"; class_root = ClassRoot::kPrimitiveFloat; break; in GetPrimitiveClass()
92 case 'i': expected_name = "int"; class_root = ClassRoot::kPrimitiveInt; break; in GetPrimitiveClass()
93 case 'l': expected_name = "long"; class_root = ClassRoot::kPrimitiveLong; break; in GetPrimitiveClass()
94 case 's': expected_name = "short"; class_root = ClassRoot::kPrimitiveShort; break; in GetPrimitiveClass()
95 case 'v': expected_name = "void"; class_root = ClassRoot::kPrimitiveVoid; break; in GetPrimitiveClass()
Dvar_handle.cc194 return GetClassRoot(ClassRoot::kPrimitiveBoolean); in GetReturnType()
200 return GetClassRoot(ClassRoot::kPrimitiveVoid); in GetReturnType()
Dobject_test.cc87 self, GetClassRoot(ClassRoot::kObjectArrayClass, class_linker_), length); in AllocObjectArray()
/art/runtime/interpreter/
Dinterpreter_common.cc616 return GetClassRoot(ClassRoot::kPrimitiveInt, class_roots); in GetClassForBootstrapArgument()
618 return GetClassRoot(ClassRoot::kPrimitiveLong, class_roots); in GetClassForBootstrapArgument()
620 return GetClassRoot(ClassRoot::kPrimitiveFloat, class_roots); in GetClassForBootstrapArgument()
622 return GetClassRoot(ClassRoot::kPrimitiveDouble, class_roots); in GetClassForBootstrapArgument()
837 if (component_type == GetClassRoot(ClassRoot::kPrimitiveInt, class_roots)) { in PackCollectorArrayForBootstrapMethod()
839 } else if (component_type == GetClassRoot(ClassRoot::kPrimitiveLong, class_roots)) { in PackCollectorArrayForBootstrapMethod()
841 } else if (component_type == GetClassRoot(ClassRoot::kPrimitiveFloat, class_roots)) { in PackCollectorArrayForBootstrapMethod()
843 } else if (component_type == GetClassRoot(ClassRoot::kPrimitiveDouble, class_roots)) { in PackCollectorArrayForBootstrapMethod()
/art/openjdkjvmti/
Dti_class_definition.cc124 art::GetClassRoot(art::ClassRoot::kPrimitiveLong)); in Init()
/art/runtime/entrypoints/
Dentrypoint_utils.cc71 DCHECK(h_receiver->InstanceOf(GetClassRoot(ClassRoot::kJavaLangReflectProxy))); in InvokeProxyInvocationHandler()
/art/compiler/optimizing/
Dcode_generator_x86_64.h552 void LoadClassRootForIntrinsic(CpuRegister reg, ClassRoot class_root);
Dcode_generator_riscv64.h628 void LoadClassRootForIntrinsic(XRegister dest, ClassRoot class_root);
Dnodes.h332 return GetRootHandle(ClassRoot::kJavaLangObject, &object_class_handle_); in GetObjectClassHandle()
336 return GetRootHandle(ClassRoot::kJavaLangClass, &class_class_handle_); in GetClassClassHandle()
340 return GetRootHandle(ClassRoot::kJavaLangInvokeMethodHandleImpl, &method_handle_class_handle_); in GetMethodHandleClassHandle()
344 return GetRootHandle(ClassRoot::kJavaLangInvokeMethodType, &method_type_class_handle_); in GetMethodTypeClassHandle()
348 return GetRootHandle(ClassRoot::kJavaLangString, &string_class_handle_); in GetStringClassHandle()
352 return GetRootHandle(ClassRoot::kJavaLangThrowable, &throwable_class_handle_); in GetThrowableClassHandle()
357 inline ReferenceTypeInfo::TypeHandle GetRootHandle(ClassRoot class_root, in GetRootHandle()
366 ClassRoot class_root);
Dcode_generator.h664 static uint32_t GetBootImageOffset(ClassRoot class_root);
Dcode_generator_arm_vixl.h740 void LoadClassRootForIntrinsic(vixl::aarch32::Register reg, ClassRoot class_root);
Dcode_generator_arm64.h895 void LoadClassRootForIntrinsic(vixl::aarch64::Register reg, ClassRoot class_root);
Dcode_generator.cc864 uint32_t CodeGenerator::GetBootImageOffset(ClassRoot class_root) NO_THREAD_SAFETY_ANALYSIS { in GetBootImageOffset()
Dnodes.cc55 ClassRoot class_root) { in CreateRootHandle()
Dintrinsics_riscv64.cc4665 codegen->LoadClassRootForIntrinsic(temp2, ClassRoot::kJavaLangInvokeByteArrayViewVarHandle); in EmitByteArrayViewCode()
Dintrinsics_x86_64.cc5094 codegen->LoadClassRootForIntrinsic(temp, ClassRoot::kJavaLangInvokeByteArrayViewVarHandle); in EmitByteArrayViewCode()
Dintrinsics_arm_vixl.cc5564 codegen->LoadClassRootForIntrinsic(temp2, ClassRoot::kJavaLangInvokeByteArrayViewVarHandle); in EmitByteArrayViewCode()
Dintrinsics_arm64.cc5706 codegen->LoadClassRootForIntrinsic(temp2, ClassRoot::kJavaLangInvokeByteArrayViewVarHandle); in EmitByteArrayViewCode()

12