Searched refs:ClassRoot (Results 1 – 12 of 12) sorted by relevance
/art/runtime/ |
D | class_root.cc | 21 const char* GetClassRootDescriptor(ClassRoot class_root) { in GetClassRootDescriptor() 27 static_assert(arraysize(class_roots_descriptors) == static_cast<size_t>(ClassRoot::kMax), in GetClassRootDescriptor() 30 DCHECK_LT(static_cast<uint32_t>(class_root), static_cast<uint32_t>(ClassRoot::kMax)); in GetClassRootDescriptor()
|
D | class_root.h | 108 enum class ClassRoot : uint32_t { enum 115 const char* GetClassRootDescriptor(ClassRoot class_root); 119 ClassRoot class_root, in GetClassRoot() 127 DCHECK_LT(static_cast<uint32_t>(class_root), static_cast<uint32_t>(ClassRoot::kMax)); in GetClassRoot() 136 inline ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root, ClassLinker* linker) in GetClassRoot() 142 inline ObjPtr<mirror::Class> GetClassRoot(ClassRoot class_root) in GetClassRoot() 158 static constexpr ClassRoot value = ClassRoot::name; \
|
D | class_linker.cc | 544 static_cast<int32_t>(ClassRoot::kMax))); in InitWithoutImage() 546 SetClassRoot(ClassRoot::kJavaLangClass, java_lang_Class.Get()); in InitWithoutImage() 547 SetClassRoot(ClassRoot::kJavaLangObject, java_lang_Object.Get()); in InitWithoutImage() 548 SetClassRoot(ClassRoot::kClassArrayClass, class_array_class.Get()); in InitWithoutImage() 549 SetClassRoot(ClassRoot::kObjectArrayClass, object_array_class.Get()); in InitWithoutImage() 550 SetClassRoot(ClassRoot::kJavaLangString, java_lang_String.Get()); in InitWithoutImage() 551 SetClassRoot(ClassRoot::kJavaLangRefReference, java_lang_ref_Reference.Get()); in InitWithoutImage() 561 SetClassRoot(ClassRoot::kPrimitiveBoolean, CreatePrimitiveClass(self, Primitive::kPrimBoolean)); in InitWithoutImage() 562 SetClassRoot(ClassRoot::kPrimitiveByte, CreatePrimitiveClass(self, Primitive::kPrimByte)); in InitWithoutImage() 563 SetClassRoot(ClassRoot::kPrimitiveChar, CreatePrimitiveClass(self, Primitive::kPrimChar)); in InitWithoutImage() [all …]
|
D | class_linker.h | 79 enum class ClassRoot : uint32_t; 1246 void SetClassRoot(ClassRoot class_root, ObjPtr<mirror::Class> klass) 1257 ClassRoot primitive_array_class_root, 1258 ClassRoot primitive_class_root,
|
D | method_handles_test.cc | 58 Handle<mirror::Class> void_class = hs.NewHandle(GetClassRoot(ClassRoot::kPrimitiveVoid, cl)); in CreateVoidMethodType()
|
D | class_linker_test.cc | 1400 for (size_t i = 0; i < static_cast<size_t>(ClassRoot::kMax); i++) { in TEST_F() 1401 ObjPtr<mirror::Class> klass = GetClassRoot(ClassRoot(i), class_linker_); in TEST_F() 1403 EXPECT_STREQ(klass->GetDescriptor(&temp), GetClassRootDescriptor(ClassRoot(i))) << " i = " << i; in TEST_F()
|
/art/runtime/mirror/ |
D | class.cc | 63 ClassRoot class_root = ClassRoot::kJavaLangObject; // Invalid. in GetPrimitiveClass() 69 case 'b': expected_name = "boolean"; class_root = ClassRoot::kPrimitiveBoolean; break; in GetPrimitiveClass() 70 case 'B': expected_name = "byte"; class_root = ClassRoot::kPrimitiveByte; break; in GetPrimitiveClass() 71 case 'c': expected_name = "char"; class_root = ClassRoot::kPrimitiveChar; break; in GetPrimitiveClass() 72 case 'd': expected_name = "double"; class_root = ClassRoot::kPrimitiveDouble; break; in GetPrimitiveClass() 73 case 'f': expected_name = "float"; class_root = ClassRoot::kPrimitiveFloat; break; in GetPrimitiveClass() 74 case 'i': expected_name = "int"; class_root = ClassRoot::kPrimitiveInt; break; in GetPrimitiveClass() 75 case 'l': expected_name = "long"; class_root = ClassRoot::kPrimitiveLong; break; in GetPrimitiveClass() 76 case 's': expected_name = "short"; class_root = ClassRoot::kPrimitiveShort; break; in GetPrimitiveClass() 77 case 'v': expected_name = "void"; class_root = ClassRoot::kPrimitiveVoid; break; in GetPrimitiveClass()
|
D | var_handle.cc | 276 return GetClassRoot(ClassRoot::kPrimitiveBoolean); in GetReturnType() 282 return GetClassRoot(ClassRoot::kPrimitiveVoid); in GetReturnType()
|
D | object_test.cc | 83 self, GetClassRoot(ClassRoot::kObjectArrayClass, class_linker_), length); in AllocObjectArray()
|
/art/compiler/optimizing/ |
D | reference_type_propagation.cc | 44 ClassRoot class_root, in GetRootHandle() 55 return GetRootHandle(handles_, ClassRoot::kJavaLangObject, &object_class_handle_); in GetObjectClassHandle() 59 return GetRootHandle(handles_, ClassRoot::kJavaLangClass, &class_class_handle_); in GetClassClassHandle() 64 ClassRoot::kJavaLangInvokeMethodHandleImpl, in GetMethodHandleClassHandle() 69 return GetRootHandle(handles_, ClassRoot::kJavaLangInvokeMethodType, &method_type_class_handle_); in GetMethodTypeClassHandle() 73 return GetRootHandle(handles_, ClassRoot::kJavaLangString, &string_class_handle_); in GetStringClassHandle() 77 return GetRootHandle(handles_, ClassRoot::kJavaLangThrowable, &throwable_class_handle_); in GetThrowableClassHandle()
|
/art/openjdkjvmti/ |
D | ti_class_definition.cc | 168 art::GetClassRoot(art::ClassRoot::kPrimitiveLong)); in GetDexDataForRetransformation() 231 art::GetClassRoot(art::ClassRoot::kPrimitiveLong)); in GetQuickenedDexFile()
|
/art/runtime/interpreter/ |
D | interpreter_common.cc | 931 return GetClassRoot(ClassRoot::kPrimitiveInt, class_roots); in GetClassForBootstrapArgument() 933 return GetClassRoot(ClassRoot::kPrimitiveLong, class_roots); in GetClassForBootstrapArgument() 935 return GetClassRoot(ClassRoot::kPrimitiveFloat, class_roots); in GetClassForBootstrapArgument() 937 return GetClassRoot(ClassRoot::kPrimitiveDouble, class_roots); in GetClassForBootstrapArgument() 1145 if (component_type == GetClassRoot(ClassRoot::kPrimitiveInt, class_roots)) { in PackCollectorArrayForBootstrapMethod() 1147 } else if (component_type == GetClassRoot(ClassRoot::kPrimitiveLong, class_roots)) { in PackCollectorArrayForBootstrapMethod() 1149 } else if (component_type == GetClassRoot(ClassRoot::kPrimitiveFloat, class_roots)) { in PackCollectorArrayForBootstrapMethod() 1151 } else if (component_type == GetClassRoot(ClassRoot::kPrimitiveDouble, class_roots)) { in PackCollectorArrayForBootstrapMethod()
|