Lines Matching refs:pDvmDex
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()
763 pDvmDex = NULL; // make gcc happy in getSignature()
766 assert(pDvmDex != NULL); in getSignature()
767 return pDvmDex->pDexFile->pHeader->signature; in getSignature()
1178 DvmDex* pDvmDex = NULL; in rewriteDex() local
1193 if (dvmDexFileOpenPartial(addr, len, &pDvmDex) != 0) { in rewriteDex()
1202 *ppClassLookup = dexCreateClassLookup(pDvmDex->pDexFile); in rewriteDex()
1217 pDvmDex->pDexFile->pClassLookup = *ppClassLookup; in rewriteDex()
1225 if (!loadAllClasses(pDvmDex)) in rewriteDex()
1234 dvmVerifyAllClasses(pDvmDex->pDexFile); in rewriteDex()
1246 optimizeLoadedClasses(pDvmDex->pDexFile); in rewriteDex()
1261 dvmDexFileFree(pDvmDex); in rewriteDex()
1301 static bool loadAllClasses(DvmDex* pDvmDex) in loadAllClasses() argument
1303 u4 count = pDvmDex->pDexFile->pHeader->classDefsSize; in loadAllClasses()
1309 dvmSetBootPathExtraDex(pDvmDex); in loadAllClasses()
1329 pClassDef = dexGetClassDef(pDvmDex->pDexFile, idx); in loadAllClasses()
1331 dexStringByTypeIdx(pDvmDex->pDexFile, pClassDef->classIdx); in loadAllClasses()
1340 } else if (newClass->pDvmDex != pDvmDex) { in loadAllClasses()
1466 } else if (clazz->pDvmDex->pDexFile != pDexFile) { in optimizeLoadedClasses()
1636 if (referrer->pDvmDex != resClass->pDvmDex) in tweakLoader()
1668 DvmDex* pDvmDex = referrer->pDvmDex; in dvmOptResolveClass() local
1674 resClass = dvmDexGetResolvedClass(pDvmDex, classIdx); in dvmOptResolveClass()
1676 const char* className = dexStringByTypeIdx(pDvmDex->pDexFile, classIdx); in dvmOptResolveClass()
1687 dexStringByTypeIdx(pDvmDex->pDexFile, classIdx)); in dvmOptResolveClass()
1712 dvmDexSetResolvedClass(pDvmDex, classIdx, resClass); in dvmOptResolveClass()
1747 DvmDex* pDvmDex = referrer->pDvmDex; in dvmOptResolveInstField() local
1750 resField = (InstField*) dvmDexGetResolvedField(pDvmDex, ifieldIdx); in dvmOptResolveInstField()
1755 pFieldId = dexGetFieldId(pDvmDex->pDexFile, ifieldIdx); in dvmOptResolveInstField()
1769 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx), in dvmOptResolveInstField()
1770 dexStringByTypeIdx(pDvmDex->pDexFile, pFieldId->typeIdx)); in dvmOptResolveInstField()
1774 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx)); in dvmOptResolveInstField()
1782 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx)); in dvmOptResolveInstField()
1791 dvmDexSetResolvedField(pDvmDex, ifieldIdx, (Field*) resField); in dvmOptResolveInstField()
1820 DvmDex* pDvmDex = referrer->pDvmDex; in dvmOptResolveStaticField() local
1823 resField = (StaticField*)dvmDexGetResolvedField(pDvmDex, sfieldIdx); in dvmOptResolveStaticField()
1828 pFieldId = dexGetFieldId(pDvmDex->pDexFile, sfieldIdx); in dvmOptResolveStaticField()
1842 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx), in dvmOptResolveStaticField()
1843 dexStringByTypeIdx(pDvmDex->pDexFile, pFieldId->typeIdx)); in dvmOptResolveStaticField()
1853 dexStringById(pDvmDex->pDexFile, pFieldId->nameIdx)); in dvmOptResolveStaticField()
1867 dvmDexSetResolvedField(pDvmDex, sfieldIdx, (Field*) resField); in dvmOptResolveStaticField()
1935 DvmDex* pDvmDex = referrer->pDvmDex; in dvmOptResolveMethod() local
1945 resMethod = dvmDexGetResolvedMethod(pDvmDex, methodIdx); in dvmOptResolveMethod()
1950 pMethodId = dexGetMethodId(pDvmDex->pDexFile, methodIdx); in dvmOptResolveMethod()
1959 dexStringById(pDvmDex->pDexFile, pMethodId->nameIdx)); in dvmOptResolveMethod()
1977 dexProtoSetFromMethodId(&proto, pDvmDex->pDexFile, pMethodId); in dvmOptResolveMethod()
1981 dexStringById(pDvmDex->pDexFile, pMethodId->nameIdx), &proto); in dvmOptResolveMethod()
1985 dexStringById(pDvmDex->pDexFile, pMethodId->nameIdx), &proto); in dvmOptResolveMethod()
1990 dexStringById(pDvmDex->pDexFile, pMethodId->nameIdx)); in dvmOptResolveMethod()
2016 dexStringById(pDvmDex->pDexFile, pMethodId->nameIdx), in dvmOptResolveMethod()
2032 dvmDexSetResolvedMethod(pDvmDex, methodIdx, resMethod); in dvmOptResolveMethod()
2154 DvmDex* pDvmDex = referrer->pDvmDex; in dvmOptResolveInterfaceMethod() local
2161 resMethod = dvmDexGetResolvedMethod(pDvmDex, methodIdx); in dvmOptResolveInterfaceMethod()
2166 pMethodId = dexGetMethodId(pDvmDex->pDexFile, methodIdx); in dvmOptResolveInterfaceMethod()
2181 dexStringById(pDvmDex->pDexFile, pMethodId->nameIdx); in dvmOptResolveInterfaceMethod()
2183 dexProtoSetFromMethodId(&proto, pDvmDex->pDexFile, pMethodId); in dvmOptResolveInterfaceMethod()
2219 dvmDexSetResolvedMethod(pDvmDex, methodIdx, resMethod); in dvmOptResolveInterfaceMethod()