Home
last modified time | relevance | path

Searched refs:ClassObject (Results 1 – 25 of 146) sorted by relevance

123456

/dalvik/vm/
DGlobals.h218 ClassObject* classJavaLangClass;
221 ClassObject* typeVoid;
222 ClassObject* typeBoolean;
223 ClassObject* typeByte;
224 ClassObject* typeShort;
225 ClassObject* typeChar;
226 ClassObject* typeInt;
227 ClassObject* typeLong;
228 ClassObject* typeFloat;
229 ClassObject* typeDouble;
[all …]
DException.h41 void dvmThrowChainedException(ClassObject* exceptionClass,
43 INLINE void dvmThrowException(ClassObject* exceptionClass, in dvmThrowException()
52 void dvmThrowExceptionFmtV(ClassObject* exceptionClass,
54 void dvmThrowExceptionFmt(ClassObject* exceptionClass,
60 INLINE void dvmThrowExceptionFmt(ClassObject* exceptionClass, in dvmThrowExceptionFmt()
75 ClassObject* exceptionClass, const char* messageDescriptor,
83 ClassObject* exceptionClass, const char* messageDescriptor) in dvmThrowExceptionWithClassMessage()
228 extern "C" void dvmThrowArrayStoreExceptionIncompatibleElement(ClassObject* objectType, ClassObject
235 void dvmThrowArrayStoreExceptionNotArray(ClassObject* actual, const char* label);
242 void dvmThrowArrayStoreExceptionIncompatibleArrays(ClassObject* source, ClassObject* destination);
[all …]
/dalvik/vm/reflect/
DReflect.h32 ArrayObject* dvmGetDeclaredFields(ClassObject* clazz, bool publicOnly);
37 Object* dvmGetDeclaredField(ClassObject* clazz, StringObject* nameObj);
42 ArrayObject* dvmGetDeclaredConstructors(ClassObject* clazz, bool publicOnly);
51 ArrayObject* dvmGetDeclaredMethods(ClassObject* clazz, bool publicOnly);
56 Object* dvmGetDeclaredConstructorOrMethod(ClassObject* clazz,
63 ArrayObject* dvmGetInterfaces(ClassObject* clazz);
68 Field* dvmSlotToField(ClassObject* clazz, int slot);
69 Method* dvmSlotToMethod(ClassObject* clazz, int slot);
83 int dvmConvertArgument(DataObject* arg, ClassObject* type, s4* ins);
89 DataObject* dvmBoxPrimitive(JValue value, ClassObject* returnType);
[all …]
DProxy.cpp39 static void createConstructor(ClassObject* clazz, Method* meth);
40 static void createHandlerMethod(ClassObject* clazz, Method* dstMeth,
66 ClassObject* dvmGenerateProxyClass(StringObject* str, ArrayObject* interfaces, in dvmGenerateProxyClass()
106 sizeof(ClassObject) + kProxySFieldCount * sizeof(StaticField); in dvmGenerateProxyClass()
107 ClassObject* newClass = in dvmGenerateProxyClass()
108 (ClassObject*) dvmMalloc(newClassSize, ALLOC_NON_MOVING); in dvmGenerateProxyClass()
117 OFFSETOF_MEMBER(ClassObject, super), in dvmGenerateProxyClass()
121 OFFSETOF_MEMBER(ClassObject, classLoader), in dvmGenerateProxyClass()
161 ClassObject** ifArray = (ClassObject**)(void*)interfaces->contents; in dvmGenerateProxyClass()
163 size_t interfacesSize = sizeof(ClassObject*) * interfaceCount; in dvmGenerateProxyClass()
[all …]
DAnnotation.cpp38 static Object* processEncodedAnnotation(const ClassObject* clazz,\
40 static bool skipEncodedAnnotation(const ClassObject* clazz, const u1** pPtr);
88 const ClassObject* clazz) in getAnnoDirectory()
230 static Method* resolveAmbiguousMethod(const ClassObject* referrer, u4 methodIdx) in resolveAmbiguousMethod()
233 ClassObject* resClass; in resolveAmbiguousMethod()
317 static bool processAnnotationValue(const ClassObject* clazz, in processAnnotationValue()
565 static Object* convertReturnType(Object* valueObj, ClassObject* methodReturn) in convertReturnType()
574 ClassObject* srcElemClass; in convertReturnType()
575 ClassObject* dstElemClass; in convertReturnType()
644 static Object* createAnnotationMember(const ClassObject* clazz, in createAnnotationMember()
[all …]
/dalvik/vm/oo/
DTypeCheck.h28 extern "C" int dvmInstanceofNonTrivial(const ClassObject* instance,
29 const ClassObject* clazz);
36 INLINE int dvmInstanceof(const ClassObject* instance, const ClassObject* clazz) in dvmInstanceof()
51 int dvmImplements(const ClassObject* clazz, const ClassObject* interface);
58 INLINE int dvmIsSubClass(const ClassObject* sub, const ClassObject* clazz) { in dvmIsSubClass()
75 extern "C" bool dvmCanPutArrayElement(const ClassObject* elemClass,
76 const ClassObject* arrayClass);
DClass.h69 void dvmSetClassSerialNumber(ClassObject* clazz);
76 ClassObject* dvmFindPrimitiveClass(char type);
84 ClassObject* dvmFindClass(const char* descriptor, Object* loader);
85 ClassObject* dvmFindClassNoInit(const char* descriptor, Object* loader);
90 ClassObject* dvmFindSystemClass(const char* descriptor);
91 ClassObject* dvmFindSystemClassNoInit(const char* descriptor);
103 ClassObject* dvmFindLoadedClass(const char* descriptor);
110 ClassObject* dvmDefineClass(DvmDex* pDvmDex, const char* descriptor,
118 bool dvmLinkClass(ClassObject* clazz);
123 INLINE bool dvmIsClassInitialized(const ClassObject* clazz) { in dvmIsClassInitialized()
[all …]
DArray.h30 ClassObject* dvmFindArrayClass(const char* descriptor, Object* loader);
36 ClassObject* dvmFindArrayClassForElement(ClassObject* elemClassObj);
44 extern "C" ArrayObject* dvmAllocArrayByClass(ClassObject* arrayClass,
66 ArrayObject* dvmAllocMultiArray(ClassObject* arrayClass, int curDim,
84 INLINE bool dvmIsObjectArrayClass(const ClassObject* clazz) in dvmIsObjectArrayClass()
107 INLINE bool dvmIsArrayClass(const ClassObject* clazz) in dvmIsArrayClass()
119 ClassObject* dstElemClass);
127 ClassObject* dstElemClass);
138 size_t dvmArrayClassElementWidth(const ClassObject* clazz);
DAccessCheck.h25 bool dvmCheckClassAccess(const ClassObject* accessFrom,
26 const ClassObject* clazz);
31 bool dvmCheckMethodAccess(const ClassObject* accessFrom, const Method* method);
36 bool dvmCheckFieldAccess(const ClassObject* accessFrom, const Field* field);
41 bool dvmInSamePackage(const ClassObject* class1, const ClassObject* class2);
DTypeCheck.cpp81 static int isArrayInstanceOfArray(const ClassObject* subElemClass, int subDim, in isArrayInstanceOfArray()
82 const ClassObject* clazz) in isArrayInstanceOfArray()
137 static int isArrayInstanceOf(const ClassObject* sub, const ClassObject* clazz) in isArrayInstanceOf()
170 int dvmImplements(const ClassObject* clazz, const ClassObject* interface) in dvmImplements()
197 bool dvmCanPutArrayElement(const ClassObject* objectClass, in dvmCanPutArrayElement()
198 const ClassObject* arrayClass) in dvmCanPutArrayElement()
224 static inline int isInstanceof(const ClassObject* instance, in isInstanceof()
225 const ClassObject* clazz) in isInstanceof()
241 int dvmInstanceofNonTrivial(const ClassObject* instance, in dvmInstanceofNonTrivial()
242 const ClassObject* clazz) in dvmInstanceofNonTrivial()
DObject.h30 struct ClassObject;
185 ClassObject* clazz;
210 ClassObject* clazz;
303 ClassObject* clazz; /* class in which the field is declared */
350 struct ClassObject : Object { struct
374 ClassObject* verifyErrorClass; argument
387 ClassObject* elementClass; argument
396 ClassObject* super; argument
408 ClassObject** interfaces; argument
490 ClassObject* clazz; argument
[all …]
DResolve.h46 extern "C" ClassObject* dvmResolveClass(const ClassObject* referrer,
58 extern "C" Method* dvmResolveMethod(const ClassObject* referrer, u4 methodIdx,
66 Method* dvmResolveInterfaceMethod(const ClassObject* referrer, u4 methodIdx);
73 extern "C" InstField* dvmResolveInstField(const ClassObject* referrer,
83 extern "C" StaticField* dvmResolveStaticField(const ClassObject* referrer,
91 extern "C" StringObject* dvmResolveString(const ClassObject* referrer, u4 stringIdx);
DAccessCheck.cpp39 bool dvmInSamePackage(const ClassObject* class1, const ClassObject* class2) in dvmInSamePackage()
88 static bool checkAccess(const ClassObject* accessFrom, in checkAccess()
89 const ClassObject* accessTo, u4 accessFlags) in checkAccess()
125 bool dvmCheckClassAccess(const ClassObject* accessFrom, in dvmCheckClassAccess()
126 const ClassObject* clazz) in dvmCheckClassAccess()
136 bool dvmCheckMethodAccess(const ClassObject* accessFrom, const Method* method) in dvmCheckMethodAccess()
144 bool dvmCheckFieldAccess(const ClassObject* accessFrom, const Field* field) in dvmCheckFieldAccess()
DArray.cpp28 static ClassObject* createArrayClass(const char* descriptor, Object* loader);
38 static ArrayObject* allocArray(ClassObject* arrayClass, size_t length, in allocArray()
71 ArrayObject* dvmAllocArrayByClass(ClassObject* arrayClass, in dvmAllocArrayByClass()
91 ClassObject* dvmFindArrayClassForElement(ClassObject* elemClassObj) in dvmFindArrayClassForElement()
93 ClassObject* arrayClass; in dvmFindArrayClassForElement()
116 ClassObject* arrayClass; in dvmAllocPrimitiveArray()
171 ArrayObject* dvmAllocMultiArray(ClassObject* arrayClass, int curDim, in dvmAllocMultiArray()
194 ClassObject* subArrayClass; in dvmAllocMultiArray()
243 ClassObject* dvmFindArrayClass(const char* descriptor, Object* loader) in dvmFindArrayClass()
245 ClassObject* clazz; in dvmFindArrayClass()
[all …]
DObject.cpp27 InstField* dvmFindInstanceField(const ClassObject* clazz, in dvmFindInstanceField()
61 InstField* dvmFindInstanceFieldHier(const ClassObject* clazz, in dvmFindInstanceFieldHier()
85 StaticField* dvmFindStaticField(const ClassObject* clazz, in dvmFindStaticField()
115 StaticField* dvmFindStaticFieldHier(const ClassObject* clazz, in dvmFindStaticFieldHier()
140 ClassObject* iface = clazz->iftable[i].clazz; in dvmFindStaticFieldHier()
165 Field* dvmFindFieldHier(const ClassObject* clazz, const char* fieldName, in dvmFindFieldHier()
191 ClassObject* iface = clazz->iftable[i].clazz; in dvmFindFieldHier()
365 static Method* findMethodInListByDescriptor(const ClassObject* clazz, in findMethodInListByDescriptor()
425 static Method* findMethodInListByProto(const ClassObject* clazz, in findMethodInListByProto()
468 Method* dvmFindVirtualMethodByDescriptor(const ClassObject* clazz, in dvmFindVirtualMethodByDescriptor()
[all …]
DResolve.cpp63 ClassObject* dvmResolveClass(const ClassObject* referrer, u4 classIdx, in dvmResolveClass()
67 ClassObject* resClass; in dvmResolveClass()
121 ClassObject* resClassCheck = resClass; in dvmResolveClass()
176 Method* dvmResolveMethod(const ClassObject* referrer, u4 methodIdx, in dvmResolveMethod()
180 ClassObject* resClass; in dvmResolveMethod()
283 Method* dvmResolveInterfaceMethod(const ClassObject* referrer, u4 methodIdx) in dvmResolveInterfaceMethod()
286 ClassObject* resClass; in dvmResolveInterfaceMethod()
382 InstField* dvmResolveInstField(const ClassObject* referrer, u4 ifieldIdx) in dvmResolveInstField()
385 ClassObject* resClass; in dvmResolveInstField()
444 StaticField* dvmResolveStaticField(const ClassObject* referrer, u4 sfieldIdx) in dvmResolveStaticField()
[all …]
/dalvik/vm/native/
Djava_lang_Class.cpp34 ClassObject* thisPtr = (ClassObject*) args[0]; in Dalvik_java_lang_Class_desiredAssertionStatus()
140 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getClassLoader()
154 ClassObject* thisPtr = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getComponentType()
182 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredClasses()
195 ClassObject** pSource = (ClassObject**)(void*)classes->contents; in Dalvik_java_lang_Class_getDeclaredClasses()
233 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredConstructors()
249 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredFields()
265 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredField()
279 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredMethods()
296 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredConstructorOrMethod()
[all …]
Djava_lang_reflect_Method.cpp33 ClassObject* declaringClass = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_Method_getMethodModifiers()
53 ClassObject* declaringClass = (ClassObject*) args[3]; in Dalvik_java_lang_reflect_Method_invokeNative()
55 ClassObject* returnType = (ClassObject*) args[5]; in Dalvik_java_lang_reflect_Method_invokeNative()
123 ClassObject* declaringClass = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_Method_getDeclaredAnnotations()
142 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_Method_getAnnotation()
144 ClassObject* annotationClazz = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Method_getAnnotation()
157 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_Method_isAnnotationPresent()
159 ClassObject* annotationClazz = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Method_isAnnotationPresent()
173 ClassObject* declaringClass = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_Method_getParameterAnnotations()
195 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Method_getDefaultValue()
[all …]
Djava_lang_reflect_Field.cpp58 static Field* validateFieldAccess(Object* obj, ClassObject* declaringClass, in validateFieldAccess()
73 ClassObject* callerClass = in validateFieldAccess()
440 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Field_getFieldModifiers()
459 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Field_getField()
460 ClassObject* fieldType = (ClassObject*) args[3]; in Dalvik_java_lang_reflect_Field_getField()
494 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Field_setField()
495 ClassObject* fieldType = (ClassObject*) args[3]; in Dalvik_java_lang_reflect_Field_setField()
527 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Field_getPrimitiveField()
528 ClassObject* fieldType = (ClassObject*) args[3]; in Dalvik_java_lang_reflect_Field_getPrimitiveField()
567 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Field_setPrimitiveField()
[all …]
Djava_lang_reflect_Array.cpp33 ClassObject* elementClass = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_Array_createObjectArray()
42 ClassObject* arrayClass = in Dalvik_java_lang_reflect_Array_createObjectArray()
69 ClassObject* elementClass = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_Array_createMultiArray()
71 ClassObject* arrayClass; in Dalvik_java_lang_reflect_Array_createMultiArray()
/dalvik/vm/analysis/
DOptimize.h26 void dvmOptimizeClass(ClassObject* clazz, bool essentialOnly);
37 ClassObject* dvmOptResolveClass(ClassObject* referrer, u4 classIdx,
39 Method* dvmOptResolveMethod(ClassObject* referrer, u4 methodIdx,
41 Method* dvmOptResolveInterfaceMethod(ClassObject* referrer, u4 methodIdx);
42 InstField* dvmOptResolveInstField(ClassObject* referrer, u4 ifieldIdx,
44 StaticField* dvmOptResolveStaticField(ClassObject* referrer, u4 sfieldIdx,
/dalvik/vm/compiler/codegen/x86/
DCalloutHelper.h37 bool dvmCanPutArrayElement(const ClassObject* elemClass, // OP_APUT_OBJECT
38 const ClassObject* arrayClass);
39 int dvmInstanceofNonTrivial(const ClassObject* instance, // OP_CHECK_CAST &&
40 const ClassObject* clazz); // OP_INSTANCE_OF
43 ArrayObject* dvmAllocArrayByClass(ClassObject* arrayClass, // OP_NEW_ARRAY
51 Object* dvmAllocObject(ClassObject* clazz, int flags); // OP_NEW_INSTANCE
/dalvik/vm/compiler/codegen/arm/
DCalloutHelper.h70 bool dvmCanPutArrayElement(const ClassObject* elemClass, // OP_APUT_OBJECT
71 const ClassObject* arrayClass);
72 int dvmInstanceofNonTrivial(const ClassObject* instance, // OP_CHECK_CAST &&
73 const ClassObject* clazz); // OP_INSTANCE_OF
76 ArrayObject* dvmAllocArrayByClass(ClassObject* arrayClass, // OP_NEW_ARRAY
87 const ClassObject *clazz);
107 Object* dvmAllocObject(ClassObject* clazz, int flags); // OP_NEW_INSTANCE
/dalvik/vm/hprof/
DHprofClass.cpp40 static u4 computeClassHash(const ClassObject *clazz) in computeClassHash()
57 const ClassObject *c1 = (const ClassObject *)v1; in classCmp()
58 const ClassObject *c2 = (const ClassObject *)v2; in classCmp()
73 hprof_class_object_id hprofLookupClassId(const ClassObject *clazz) in hprofLookupClassId()
119 const ClassObject *clazz; in hprofDumpClasses()
121 clazz = (const ClassObject *)dvmHashIterData(&iter); in hprofDumpClasses()
/dalvik/vm/alloc/
DAlloc.h64 extern "C" Object* dvmAllocObject(ClassObject* clazz, int flags);
130 size_t dvmCountInstancesOfClass(const ClassObject *clazz);
135 size_t dvmCountAssignableInstancesOfClass(const ClassObject *clazz);

123456