/dalvik/vm/ |
D | DvmDex.c | 40 DvmDex* pDvmDex; in allocateAuxStructures() local 44 pDvmDex = (DvmDex*) calloc(1, sizeof(DvmDex)); in allocateAuxStructures() 45 if (pDvmDex == NULL) in allocateAuxStructures() 48 pDvmDex->pDexFile = pDexFile; in allocateAuxStructures() 49 pDvmDex->pHeader = pDexFile->pHeader; in allocateAuxStructures() 51 pHeader = pDvmDex->pHeader; in allocateAuxStructures() 72 pDvmDex->pResStrings = (struct StringObject**) in allocateAuxStructures() 75 pDvmDex->pResClasses = (struct ClassObject**) in allocateAuxStructures() 78 pDvmDex->pResMethods = (struct Method**) in allocateAuxStructures() 81 pDvmDex->pResFields = (struct Field**) in allocateAuxStructures() [all …]
|
D | DvmDex.h | 81 void dvmDexFileFree(DvmDex* pDvmDex); 90 INLINE struct StringObject* dvmDexGetResolvedString(const DvmDex* pDvmDex, in dvmDexGetResolvedString() argument 93 assert(stringIdx < pDvmDex->pHeader->stringIdsSize); in dvmDexGetResolvedString() 94 return pDvmDex->pResStrings[stringIdx]; in dvmDexGetResolvedString() 96 INLINE struct ClassObject* dvmDexGetResolvedClass(const DvmDex* pDvmDex, in dvmDexGetResolvedClass() argument 99 assert(classIdx < pDvmDex->pHeader->typeIdsSize); in dvmDexGetResolvedClass() 100 return pDvmDex->pResClasses[classIdx]; in dvmDexGetResolvedClass() 102 INLINE struct Method* dvmDexGetResolvedMethod(const DvmDex* pDvmDex, in dvmDexGetResolvedMethod() argument 105 assert(methodIdx < pDvmDex->pHeader->methodIdsSize); in dvmDexGetResolvedMethod() 106 return pDvmDex->pResMethods[methodIdx]; in dvmDexGetResolvedMethod() [all …]
|
D | RawDexFile.h | 30 DvmDex* pDvmDex; member 51 return pRawDexFile->pDvmDex; in dvmGetRawDexFileDex()
|
D | JarFile.h | 30 DvmDex* pDvmDex; member 49 return pJarFile->pDvmDex; in dvmGetJarFileDex()
|
D | JarFile.c | 190 DvmDex* pDvmDex = NULL; in dvmJarFileOpen() local 321 if (dvmDexFileOpenFromFd(fd, &pDvmDex) != 0) { in dvmJarFileOpen() 341 (*ppJarFile)->pDvmDex = pDvmDex; in dvmJarFileOpen() 366 dvmDexFileFree(pJarFile->pDvmDex); in dvmJarFileFree()
|
D | RawDexFile.c | 40 dvmDexFileFree(pRawDexFile->pDvmDex); in dvmRawDexFileFree()
|
/dalvik/vm/oo/ |
D | Resolve.c | 65 DvmDex* pDvmDex = referrer->pDvmDex; in dvmResolveClass() local 73 resClass = dvmDexGetResolvedClass(pDvmDex, classIdx); in dvmResolveClass() 89 className = dexStringByTypeIdx(pDvmDex->pDexFile, classIdx); in dvmResolveClass() 124 if (referrer->pDvmDex != resClassCheck->pDvmDex && in dvmResolveClass() 130 referrer->pDvmDex, in dvmResolveClass() 132 resClassCheck->classLoader, resClassCheck->pDvmDex); in dvmResolveClass() 143 resClass->descriptor, referrer->descriptor, referrer->pDvmDex, in dvmResolveClass() 153 dvmDexSetResolvedClass(pDvmDex, classIdx, resClass); in dvmResolveClass() 157 dexStringByTypeIdx(pDvmDex->pDexFile, classIdx)); in dvmResolveClass() 178 DvmDex* pDvmDex = referrer->pDvmDex; in dvmResolveMethod() local [all …]
|
D | Class.c | 173 DvmDex* pDvmDex); 174 static ClassObject* loadClassFromDex(DvmDex* pDvmDex, 406 DvmDex* pDvmDex = dvmGetJarFileDex(pJarFile); in dumpClassPath() local 407 dvmDumpAtomicCacheStats(pDvmDex->pInterfaceCache); in dumpClassPath() 659 DvmDex* pDvmDex; in searchBootPathForClass() local 661 pDvmDex = dvmGetJarFileDex(pJarFile); in searchBootPathForClass() 662 pClassDef = dexFindClass(pDvmDex->pDexFile, descriptor); in searchBootPathForClass() 666 pFoundFile = pDvmDex; in searchBootPathForClass() 675 DvmDex* pDvmDex; in searchBootPathForClass() local 677 pDvmDex = dvmGetRawDexFileDex(pRawDexFile); in searchBootPathForClass() [all …]
|
/dalvik/vm/analysis/ |
D | DexVerify.c | 95 if (clazz->pDvmDex->pDexFile != pDexFile) { in dvmVerifyAllClasses() 341 DvmDex* pDvmDex = meth->clazz->pDvmDex; in checkNewInstance() local 348 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkNewInstance() 350 idx, pDvmDex->pHeader->typeIdsSize); in checkNewInstance() 354 classDescriptor = dexStringByTypeIdx(pDvmDex->pDexFile, idx); in checkNewInstance() 371 DvmDex* pDvmDex = meth->clazz->pDvmDex; in checkNewArray() local 378 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkNewArray() 380 idx, pDvmDex->pHeader->typeIdsSize); in checkNewArray() 384 classDescriptor = dexStringByTypeIdx(pDvmDex->pDexFile, idx); in checkNewArray() 412 DvmDex* pDvmDex = meth->clazz->pDvmDex; in checkTypeIndex() local [all …]
|
D | DexOptimize.c | 61 static bool loadAllClasses(DvmDex* pDvmDex); 586 DvmDex* pDvmDex = NULL; in dvmContinueOptimization() local 589 if (dvmDexFileOpenPartial(dexAddr, dexLength, &pDvmDex) != 0) { in dvmContinueOptimization() 600 pIndexMapSet = dvmRewriteConstants(pDvmDex); in dvmContinueOptimization() 607 pRegMapBuilder = dvmGenerateRegisterMaps(pDvmDex); in dvmContinueOptimization() 614 DexHeader* pHeader = (DexHeader*)pDvmDex->pHeader; in dvmContinueOptimization() 617 dvmDexFileFree(pDvmDex); in dvmContinueOptimization() 751 DvmDex* pDvmDex; in getSignature() local 755 pDvmDex = dvmGetJarFileDex((JarFile*) cpe->ptr); in getSignature() 758 pDvmDex = dvmGetRawDexFileDex((RawDexFile*) cpe->ptr); in getSignature() [all …]
|
D | ReduceConstants.c | 682 static void summarizeResults(DvmDex* pDvmDex, ScanResults* pResults) in summarizeResults() argument 684 DexFile* pDexFile = pDvmDex->pDexFile; in summarizeResults() 688 for (i = 0; i < (int) pDvmDex->pDexFile->pHeader->typeIdsSize; i++) { in summarizeResults() 702 for (i = 0; i < (int) pDvmDex->pDexFile->pHeader->methodIdsSize; i++) { in summarizeResults() 720 for (i = 0; i < (int) pDvmDex->pDexFile->pHeader->fieldIdsSize; i++) { in summarizeResults() 738 for (i = 0; i < (int) pDvmDex->pDexFile->pHeader->stringIdsSize; i++) { in summarizeResults() 1021 IndexMapSet* dvmRewriteConstants(DvmDex* pDvmDex) in dvmRewriteConstants() argument 1035 ScanResults* pResults = allocScanResults(pDvmDex->pDexFile); in dvmRewriteConstants() 1036 forAllMethods(pDvmDex->pDexFile, markUsedConstants, pResults); in dvmRewriteConstants() 1038 summarizeResults(pDvmDex, pResults); in dvmRewriteConstants() [all …]
|
D | ReduceConstants.h | 66 IndexMapSet* dvmRewriteConstants(struct DvmDex* pDvmDex);
|
/dalvik/vm/mterp/armv5te/ |
D | OP_NEW_INSTANCE.S | 13 ldr r3, [rGLUE, #offGlue_methodClassDex] @ r3<- pDvmDex 15 ldr r3, [r3, #offDvmDex_pResClasses] @ r3<- pDvmDex->pResClasses
|
D | OP_INVOKE_STATIC.S | 11 ldr r3, [rGLUE, #offGlue_methodClassDex] @ r3<- pDvmDex 13 ldr r3, [r3, #offDvmDex_pResMethods] @ r3<- pDvmDex->pResMethods
|
D | OP_NEW_ARRAY.S | 14 ldr r3, [rGLUE, #offGlue_methodClassDex] @ r3<- pDvmDex 16 ldr r3, [r3, #offDvmDex_pResClasses] @ r3<- pDvmDex->pResClasses
|
D | OP_INVOKE_DIRECT.S | 16 ldr r3, [rGLUE, #offGlue_methodClassDex] @ r3<- pDvmDex 18 ldr r3, [r3, #offDvmDex_pResMethods] @ r3<- pDvmDex->pResMethods
|
D | OP_INVOKE_VIRTUAL.S | 12 ldr r3, [rGLUE, #offGlue_methodClassDex] @ r3<- pDvmDex 14 ldr r3, [r3, #offDvmDex_pResMethods] @ r3<- pDvmDex->pResMethods
|
/dalvik/vm/native/ |
D | dalvik_system_DexFile.c | 271 DvmDex* pDvmDex; in Dalvik_dalvik_system_DexFile_defineClass() local 284 pDvmDex = dvmGetRawDexFileDex(pDexOrJar->pRawDexFile); in Dalvik_dalvik_system_DexFile_defineClass() 286 pDvmDex = dvmGetJarFileDex(pDexOrJar->pJarFile); in Dalvik_dalvik_system_DexFile_defineClass() 291 clazz = dvmDefineClass(pDvmDex, descriptor, loader); in Dalvik_dalvik_system_DexFile_defineClass() 336 DvmDex* pDvmDex; in Dalvik_dalvik_system_DexFile_getClassNameList() local 344 pDvmDex = dvmGetRawDexFileDex(pDexOrJar->pRawDexFile); in Dalvik_dalvik_system_DexFile_getClassNameList() 346 pDvmDex = dvmGetJarFileDex(pDexOrJar->pJarFile); in Dalvik_dalvik_system_DexFile_getClassNameList() 347 assert(pDvmDex != NULL); in Dalvik_dalvik_system_DexFile_getClassNameList() 348 pDexFile = pDvmDex->pDexFile; in Dalvik_dalvik_system_DexFile_getClassNameList()
|
/dalvik/vm/mterp/x86/ |
D | OP_FILLED_NEW_ARRAY.S | 13 movl offGlue_methodClassDex(%eax),%eax # eax<- pDvmDex 15 movl offDvmDex_pResClasses(%eax),%eax # eax<- pDvmDex->pResClasses
|
D | OP_INVOKE_STATIC.S | 13 movl offGlue_methodClassDex(%ecx),%ecx # ecx<- pDvmDex 15 movl offDvmDex_pResMethods(%ecx),%ecx # ecx<- pDvmDex->pResMethods
|
D | OP_INVOKE_DIRECT.S | 18 movl offGlue_methodClassDex(%ecx),%ecx # ecx<- pDvmDex 21 movl offDvmDex_pResMethods(%ecx),%ecx # ecx<- pDvmDex->pResMethods
|
D | OP_INVOKE_VIRTUAL.S | 15 movl offGlue_methodClassDex(%eax),%eax # eax<- pDvmDex 17 movl offDvmDex_pResMethods(%eax),%eax # eax<- pDvmDex->pResMethods
|
D | OP_NEW_ARRAY.S | 14 movl offGlue_methodClassDex(%ecx),%ecx # ecx<- pDvmDex 16 movl offDvmDex_pResClasses(%ecx),%ecx # ecx<- pDvmDex->pResClasses
|
/dalvik/vm/interp/ |
D | Interp.c | 705 const DvmDex* pDvmDex = method->clazz->pDvmDex; in classNameFromIndex() local 709 const DexFieldId* pFieldId = dexGetFieldId(pDvmDex->pDexFile, ref); in classNameFromIndex() 713 const DexMethodId* pMethodId = dexGetMethodId(pDvmDex->pDexFile, ref); in classNameFromIndex() 717 const char* className = dexStringByTypeIdx(pDvmDex->pDexFile, ref); in classNameFromIndex() 741 const DvmDex* pDvmDex = method->clazz->pDvmDex; in fieldNameFromIndex() local 751 pFieldId = dexGetFieldId(pDvmDex->pDexFile, ref); in fieldNameFromIndex() 752 className = dexStringByTypeIdx(pDvmDex->pDexFile, pFieldId->classIdx); in fieldNameFromIndex() 753 fieldName = dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx); in fieldNameFromIndex() 774 const DvmDex* pDvmDex = method->clazz->pDvmDex; in methodNameFromIndex() local 784 pMethodId = dexGetMethodId(pDvmDex->pDexFile, ref); in methodNameFromIndex() [all …]
|
/dalvik/vm/reflect/ |
D | Annotation.c | 301 resMethod = dvmDexGetResolvedMethod(referrer->pDvmDex, methodIdx); in resolveAmbiguousMethod() 305 pDexFile = referrer->pDvmDex->pDexFile; in resolveAmbiguousMethod() 397 (ptr-1) - (u1*)clazz->pDvmDex->pDexFile->baseAddr); in processAnnotationValue() 489 DexFile* pDexFile = clazz->pDvmDex->pDexFile; in processAnnotationValue() 701 const DexFile* pDexFile = clazz->pDvmDex->pDexFile; in createAnnotationMember() 795 const DexFile* pDexFile = clazz->pDvmDex->pDexFile; in processEncodedAnnotation() 808 annoClass = dvmDexGetResolvedClass(clazz->pDvmDex, typeIdx); in processEncodedAnnotation() 820 *pPtr, *pPtr - (u1*) clazz->pDvmDex->pDexFile->baseAddr, in processEncodedAnnotation() 888 DexFile* pDexFile = clazz->pDvmDex->pDexFile; in processAnnotationSet() 959 (ptr-1) - (u1*)clazz->pDvmDex->pDexFile->baseAddr); in skipAnnotationValue() [all …]
|