Home
last modified time | relevance | path

Searched refs:pDvmDex (Results 1 – 25 of 95) sorted by relevance

1234

/dalvik/vm/
DDvmDex.cpp43 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 …]
DDvmDex.h86 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 …]
DRawDexFile.cpp117 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()
DRawDexFile.h30 DvmDex* pDvmDex; member
63 return pRawDexFile->pDvmDex; in dvmGetRawDexFileDex()
DJarFile.h30 DvmDex* pDvmDex; member
49 return pJarFile->pDvmDex; in dvmGetJarFileDex()
DJarFile.cpp197 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/
DResolve.cpp66 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/
DOptimize.cpp359 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 …]
DDexVerify.cpp400 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 …]
DDexPrepare.cpp51 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/
DOP_NEW_INSTANCE.S13 ldr r3, [rSELF, #offThread_methodClassDex] @ r3<- pDvmDex
15 ldr r3, [r3, #offDvmDex_pResClasses] @ r3<- pDvmDex->pResClasses
DOP_NEW_ARRAY.S14 ldr r3, [rSELF, #offThread_methodClassDex] @ r3<- pDvmDex
16 ldr r3, [r3, #offDvmDex_pResClasses] @ r3<- pDvmDex->pResClasses
DOP_INVOKE_DIRECT.S16 ldr r3, [rSELF, #offThread_methodClassDex] @ r3<- pDvmDex
18 ldr r3, [r3, #offDvmDex_pResMethods] @ r3<- pDvmDex->pResMethods
DOP_INVOKE_VIRTUAL.S12 ldr r3, [rSELF, #offThread_methodClassDex] @ r3<- pDvmDex
14 ldr r3, [r3, #offDvmDex_pResMethods] @ r3<- pDvmDex->pResMethods
DOP_INVOKE_STATIC.S11 ldr r3, [rSELF, #offThread_methodClassDex] @ r3<- pDvmDex
13 ldr r3, [r3, #offDvmDex_pResMethods] @ r3<- pDvmDex->pResMethods
/dalvik/vm/mterp/x86/
DOP_FILLED_NEW_ARRAY.S12 movl offThread_methodClassDex(%eax),%eax # eax<- pDvmDex
14 movl offDvmDex_pResClasses(%eax),%eax # eax<- pDvmDex->pResClasses
DOP_INVOKE_STATIC.S13 movl offThread_methodClassDex(%ecx),%ecx # ecx<- pDvmDex
15 movl offDvmDex_pResMethods(%ecx),%ecx # ecx<- pDvmDex->pResMethods
DOP_INVOKE_DIRECT.S18 movl offThread_methodClassDex(%ecx),%ecx # ecx<- pDvmDex
20 movl offDvmDex_pResMethods(%ecx),%ecx # ecx<- pDvmDex->pResMethods
DOP_INVOKE_VIRTUAL.S15 movl offThread_methodClassDex(%eax),%eax # eax<- pDvmDex
17 movl offDvmDex_pResMethods(%eax),%eax # eax<- pDvmDex->pResMethods
DOP_NEW_ARRAY.S14 movl offThread_methodClassDex(%ecx),%ecx # ecx<- pDvmDex
16 movl offDvmDex_pResClasses(%ecx),%ecx # ecx<- pDvmDex->pResClasses
/dalvik/vm/native/
Ddalvik_system_DexFile.cpp356 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/
DOP_INVOKE_STATIC.S46 movl offGlue_methodClassDex(%edx), %ecx # %edx<- pDvmDex
48 movl offDvmDex_pResMethods(%ecx), %ecx # %edx<- pDvmDex->pResMethods
DOP_CONST_CLASS.S36 movl offGlue_methodClassDex(%edx), %eax # %eax<- pDvmDex
37 movl offDvmDex_pResClasses(%eax), %eax # %eax<- pDvmDex->pResClasses
DOP_IPUT_WIDE.S34 movl offGlue_methodClassDex(%eax), %ecx # %ecx<- pDvmDex
36 FETCH 1, %edx # %edx<- pDvmDex->pResFields
/dalvik/vm/reflect/
DAnnotation.cpp239 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 …]

1234