/dalvik/vm/ |
D | DvmDex.cpp | 43 DvmDex* pDvmDex; in allocateAuxStructures() local 62 pDvmDex = (DvmDex*)blob; in allocateAuxStructures() 65 pDvmDex->pDexFile = pDexFile; in allocateAuxStructures() 66 pDvmDex->pHeader = pHeader; in allocateAuxStructures() 68 pDvmDex->pResStrings = (struct StringObject**)blob; in allocateAuxStructures() 70 pDvmDex->pResClasses = (struct ClassObject**)blob; in allocateAuxStructures() 72 pDvmDex->pResMethods = (struct Method**)blob; in allocateAuxStructures() 74 pDvmDex->pResFields = (struct Field**)blob; in allocateAuxStructures() 77 pDvmDex, stringSizei/4, classSize/4, methodSize/4, fieldSize/4, in allocateAuxStructures() 80 pDvmDex->pInterfaceCache = dvmAllocAtomicCache(DEX_INTERFACE_CACHE_SIZE); in allocateAuxStructures() [all …]
|
D | DvmDex.h | 86 void dvmDexFileFree(DvmDex* pDvmDex); 100 bool dvmDexChangeDex1(DvmDex* pDvmDex, u1* addr, u1 newVal); 101 bool dvmDexChangeDex2(DvmDex* pDvmDex, u2* addr, u2 newVal); 107 INLINE struct StringObject* dvmDexGetResolvedString(const DvmDex* pDvmDex, in dvmDexGetResolvedString() argument 110 assert(stringIdx < pDvmDex->pHeader->stringIdsSize); in dvmDexGetResolvedString() 111 return pDvmDex->pResStrings[stringIdx]; in dvmDexGetResolvedString() 113 INLINE struct ClassObject* dvmDexGetResolvedClass(const DvmDex* pDvmDex, in dvmDexGetResolvedClass() argument 116 assert(classIdx < pDvmDex->pHeader->typeIdsSize); in dvmDexGetResolvedClass() 117 return pDvmDex->pResClasses[classIdx]; in dvmDexGetResolvedClass() 119 INLINE struct Method* dvmDexGetResolvedMethod(const DvmDex* pDvmDex, in dvmDexGetResolvedMethod() argument [all …]
|
D | RawDexFile.cpp | 117 DvmDex* pDvmDex = NULL; in dvmRawDexFileOpen() local 212 if (dvmDexFileOpenFromFd(optFd, &pDvmDex) != 0) { in dvmRawDexFileOpen() 231 (*ppRawDexFile)->pDvmDex = pDvmDex; in dvmRawDexFileOpen() 251 DvmDex* pDvmDex = NULL; in dvmRawDexFileOpenArray() local 253 if (!dvmPrepareDexInMemory(pBytes, length, &pDvmDex)) { in dvmRawDexFileOpenArray() 257 assert(pDvmDex != NULL); in dvmRawDexFileOpenArray() 260 (*ppRawDexFile)->pDvmDex = pDvmDex; in dvmRawDexFileOpenArray() 273 dvmDexFileFree(pRawDexFile->pDvmDex); in dvmRawDexFileFree()
|
D | RawDexFile.h | 30 DvmDex* pDvmDex; member 63 return pRawDexFile->pDvmDex; in dvmGetRawDexFileDex()
|
D | JarFile.h | 30 DvmDex* pDvmDex; member 49 return pJarFile->pDvmDex; in dvmGetJarFileDex()
|
D | JarFile.cpp | 197 DvmDex* pDvmDex = NULL; in dvmJarFileOpen() local 329 if (dvmDexFileOpenFromFd(fd, &pDvmDex) != 0) { in dvmJarFileOpen() 349 (*ppJarFile)->pDvmDex = pDvmDex; in dvmJarFileOpen() 374 dvmDexFileFree(pJarFile->pDvmDex); in dvmJarFileFree()
|
/dalvik/vm/oo/ |
D | Resolve.cpp | 66 DvmDex* pDvmDex = referrer->pDvmDex; in dvmResolveClass() local 74 resClass = dvmDexGetResolvedClass(pDvmDex, classIdx); in dvmResolveClass() 90 className = dexStringByTypeIdx(pDvmDex->pDexFile, classIdx); in dvmResolveClass() 125 if (referrer->pDvmDex != resClassCheck->pDvmDex && in dvmResolveClass() 131 referrer->pDvmDex, in dvmResolveClass() 133 resClassCheck->classLoader, resClassCheck->pDvmDex); in dvmResolveClass() 144 resClass->descriptor, referrer->descriptor, referrer->pDvmDex, in dvmResolveClass() 154 dvmDexSetResolvedClass(pDvmDex, classIdx, resClass); in dvmResolveClass() 158 dexStringByTypeIdx(pDvmDex->pDexFile, classIdx)); in dvmResolveClass() 179 DvmDex* pDvmDex = referrer->pDvmDex; in dvmResolveMethod() local [all …]
|
/dalvik/vm/analysis/ |
D | Optimize.cpp | 359 DvmDex* pDvmDex = meth->clazz->pDvmDex; in dvmUpdateCodeUnit() local 361 if (!pDvmDex->isMappedReadOnly) { in dvmUpdateCodeUnit() 366 dvmDexChangeDex2(pDvmDex, ptr, newVal); in dvmUpdateCodeUnit() 408 if (referrer->pDvmDex != resClass->pDvmDex) in tweakLoader() 440 DvmDex* pDvmDex = referrer->pDvmDex; in dvmOptResolveClass() local 446 resClass = dvmDexGetResolvedClass(pDvmDex, classIdx); in dvmOptResolveClass() 448 const char* className = dexStringByTypeIdx(pDvmDex->pDexFile, classIdx); in dvmOptResolveClass() 459 dexStringByTypeIdx(pDvmDex->pDexFile, classIdx)); in dvmOptResolveClass() 484 dvmDexSetResolvedClass(pDvmDex, classIdx, resClass); in dvmOptResolveClass() 519 DvmDex* pDvmDex = referrer->pDvmDex; in dvmOptResolveInstField() local [all …]
|
D | DexVerify.cpp | 400 static bool checkNewInstance(const DvmDex* pDvmDex, u4 idx) in checkNewInstance() argument 404 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkNewInstance() 406 idx, pDvmDex->pHeader->typeIdsSize); in checkNewInstance() 410 classDescriptor = dexStringByTypeIdx(pDvmDex->pDexFile, idx); in checkNewInstance() 425 static bool checkNewArray(const DvmDex* pDvmDex, u4 idx) in checkNewArray() argument 429 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkNewArray() 431 idx, pDvmDex->pHeader->typeIdsSize); in checkNewArray() 435 classDescriptor = dexStringByTypeIdx(pDvmDex->pDexFile, idx); in checkNewArray() 461 static bool checkTypeIndex(const DvmDex* pDvmDex, u4 idx) in checkTypeIndex() argument 463 if (idx >= pDvmDex->pHeader->typeIdsSize) { in checkTypeIndex() [all …]
|
D | DexPrepare.cpp | 51 static bool loadAllClasses(DvmDex* pDvmDex); 606 DvmDex* pDvmDex = NULL; in dvmContinueOptimization() local 609 if (dvmDexFileOpenPartial(dexAddr, dexLength, &pDvmDex) != 0) { in dvmContinueOptimization() 619 pRegMapBuilder = dvmGenerateRegisterMaps(pDvmDex); in dvmContinueOptimization() 626 DexHeader* pHeader = (DexHeader*)pDvmDex->pHeader; in dvmContinueOptimization() 629 dvmDexFileFree(pDvmDex); in dvmContinueOptimization() 799 DvmDex* pDvmDex = NULL; in rewriteDex() local 811 if (dvmDexFileOpenPartial(addr, len, &pDvmDex) != 0) { in rewriteDex() 823 pClassLookup = dexCreateClassLookup(pDvmDex->pDexFile); in rewriteDex() 826 pDvmDex->pDexFile->pClassLookup = pClassLookup; in rewriteDex() [all …]
|
/dalvik/vm/mterp/armv5te/ |
D | OP_NEW_INSTANCE.S | 13 ldr r3, [rSELF, #offThread_methodClassDex] @ r3<- pDvmDex 15 ldr r3, [r3, #offDvmDex_pResClasses] @ r3<- pDvmDex->pResClasses
|
D | OP_NEW_ARRAY.S | 14 ldr r3, [rSELF, #offThread_methodClassDex] @ r3<- pDvmDex 16 ldr r3, [r3, #offDvmDex_pResClasses] @ r3<- pDvmDex->pResClasses
|
D | OP_INVOKE_DIRECT.S | 16 ldr r3, [rSELF, #offThread_methodClassDex] @ r3<- pDvmDex 18 ldr r3, [r3, #offDvmDex_pResMethods] @ r3<- pDvmDex->pResMethods
|
D | OP_INVOKE_VIRTUAL.S | 12 ldr r3, [rSELF, #offThread_methodClassDex] @ r3<- pDvmDex 14 ldr r3, [r3, #offDvmDex_pResMethods] @ r3<- pDvmDex->pResMethods
|
D | OP_INVOKE_STATIC.S | 11 ldr r3, [rSELF, #offThread_methodClassDex] @ r3<- pDvmDex 13 ldr r3, [r3, #offDvmDex_pResMethods] @ r3<- pDvmDex->pResMethods
|
/dalvik/vm/mterp/x86/ |
D | OP_FILLED_NEW_ARRAY.S | 12 movl offThread_methodClassDex(%eax),%eax # eax<- pDvmDex 14 movl offDvmDex_pResClasses(%eax),%eax # eax<- pDvmDex->pResClasses
|
D | OP_INVOKE_STATIC.S | 13 movl offThread_methodClassDex(%ecx),%ecx # ecx<- pDvmDex 15 movl offDvmDex_pResMethods(%ecx),%ecx # ecx<- pDvmDex->pResMethods
|
D | OP_INVOKE_DIRECT.S | 18 movl offThread_methodClassDex(%ecx),%ecx # ecx<- pDvmDex 20 movl offDvmDex_pResMethods(%ecx),%ecx # ecx<- pDvmDex->pResMethods
|
D | OP_INVOKE_VIRTUAL.S | 15 movl offThread_methodClassDex(%eax),%eax # eax<- pDvmDex 17 movl offDvmDex_pResMethods(%eax),%eax # eax<- pDvmDex->pResMethods
|
D | OP_NEW_ARRAY.S | 14 movl offThread_methodClassDex(%ecx),%ecx # ecx<- pDvmDex 16 movl offDvmDex_pResClasses(%ecx),%ecx # ecx<- pDvmDex->pResClasses
|
/dalvik/vm/native/ |
D | dalvik_system_DexFile.cpp | 356 DvmDex* pDvmDex; in Dalvik_dalvik_system_DexFile_defineClass() local 370 pDvmDex = dvmGetRawDexFileDex(pDexOrJar->pRawDexFile); in Dalvik_dalvik_system_DexFile_defineClass() 372 pDvmDex = dvmGetJarFileDex(pDexOrJar->pJarFile); in Dalvik_dalvik_system_DexFile_defineClass() 377 clazz = dvmDefineClass(pDvmDex, descriptor, loader); in Dalvik_dalvik_system_DexFile_defineClass() 416 DvmDex* pDvmDex; in Dalvik_dalvik_system_DexFile_getClassNameList() local 418 pDvmDex = dvmGetRawDexFileDex(pDexOrJar->pRawDexFile); in Dalvik_dalvik_system_DexFile_getClassNameList() 420 pDvmDex = dvmGetJarFileDex(pDexOrJar->pJarFile); in Dalvik_dalvik_system_DexFile_getClassNameList() 421 assert(pDvmDex != NULL); in Dalvik_dalvik_system_DexFile_getClassNameList() 422 DexFile* pDexFile = pDvmDex->pDexFile; in Dalvik_dalvik_system_DexFile_getClassNameList()
|
/dalvik/vm/mterp/x86-atom/ |
D | OP_INVOKE_STATIC.S | 46 movl offGlue_methodClassDex(%edx), %ecx # %edx<- pDvmDex 48 movl offDvmDex_pResMethods(%ecx), %ecx # %edx<- pDvmDex->pResMethods
|
D | OP_CONST_CLASS.S | 36 movl offGlue_methodClassDex(%edx), %eax # %eax<- pDvmDex 37 movl offDvmDex_pResClasses(%eax), %eax # %eax<- pDvmDex->pResClasses
|
D | OP_IPUT_WIDE.S | 34 movl offGlue_methodClassDex(%eax), %ecx # %ecx<- pDvmDex 36 FETCH 1, %edx # %edx<- pDvmDex->pResFields
|
/dalvik/vm/reflect/ |
D | Annotation.cpp | 239 resMethod = dvmDexGetResolvedMethod(referrer->pDvmDex, methodIdx); in resolveAmbiguousMethod() 243 pDexFile = referrer->pDvmDex->pDexFile; in resolveAmbiguousMethod() 335 (ptr-1) - (u1*)clazz->pDvmDex->pDexFile->baseAddr); in processAnnotationValue() 427 DexFile* pDexFile = clazz->pDvmDex->pDexFile; in processAnnotationValue() 648 const DexFile* pDexFile = clazz->pDvmDex->pDexFile; in createAnnotationMember() 754 annoClass = dvmDexGetResolvedClass(clazz->pDvmDex, typeIdx); in processEncodedAnnotation() 766 *pPtr, *pPtr - (u1*) clazz->pDvmDex->pDexFile->baseAddr, in processEncodedAnnotation() 831 DexFile* pDexFile = clazz->pDvmDex->pDexFile; in processAnnotationSet() 886 DexFile* pDexFile = clazz->pDvmDex->pDexFile; in getAnnotationItemFromAnnotationSet() 907 annoClass = dvmDexGetResolvedClass(clazz->pDvmDex, typeIdx); in getAnnotationItemFromAnnotationSet() [all …]
|