/dalvik/libdex/ |
D | DexCatch.cpp | 26 u4 dexGetFirstHandlerOffset(const DexCode* pCode) { in dexGetFirstHandlerOffset() argument 27 if (pCode->triesSize == 0) { in dexGetFirstHandlerOffset() 31 const u1* baseData = dexGetCatchHandlerData(pCode); in dexGetFirstHandlerOffset() 40 u4 dexGetHandlersSize(const DexCode* pCode) { in dexGetHandlersSize() argument 41 if (pCode->triesSize == 0) { in dexGetHandlersSize() 45 const u1* data = dexGetCatchHandlerData(pCode); in dexGetHandlersSize() 86 const DexCode* pCode) { in dexCatchIteratorGetEndOffset() argument 89 return (u4) (pIterator->pEncodedData - dexGetCatchHandlerData(pCode)); in dexCatchIteratorGetEndOffset()
|
D | DexCatch.h | 38 u4 dexGetFirstHandlerOffset(const DexCode* pCode); 41 u4 dexGetHandlersSize(const DexCode* pCode); 83 const DexCode* pCode, u4 offset) in dexCatchIteratorInit() argument 86 dexGetCatchHandlerData(pCode) + offset); in dexCatchIteratorInit() 111 const DexCode* pCode); 121 const DexCode* pCode, u4 address) { in dexFindCatchHandler() argument 122 u2 triesSize = pCode->triesSize; in dexFindCatchHandler() 131 const DexTry* tries = dexGetTries(pCode); in dexFindCatchHandler() 148 offset = dexFindCatchHandlerOffset0(triesSize, dexGetTries(pCode), in dexFindCatchHandler() 157 dexCatchIteratorInit(pIterator, pCode, offset); in dexFindCatchHandler()
|
D | DexDebugInfo.cpp | 143 const DexCode* pCode, in dexDecodeDebugInfo0() argument 153 u4 insnsSize = pCode->insnsSize; in dexDecodeDebugInfo0() 156 u2 argReg = pCode->registersSize - pCode->insSize; in dexDecodeDebugInfo0() 166 assert(pCode->insSize == (dexProtoComputeArgsSize(&proto) + 1)); in dexDecodeDebugInfo0() 173 assert(pCode->insSize == dexProtoComputeArgsSize(&proto)); in dexDecodeDebugInfo0() 184 if ((argReg >= pCode->registersSize) || (descriptor == NULL)) { in dexDecodeDebugInfo0() 230 if (reg > pCode->registersSize) { in dexDecodeDebugInfo0() 253 if (reg > pCode->registersSize) { in dexDecodeDebugInfo0() 264 if (reg > pCode->registersSize) { in dexDecodeDebugInfo0() 314 const DexCode* pCode, in dexDecodeDebugInfo() argument [all …]
|
D | DexFile.cpp | 493 size_t dexGetDexCodeSize(const DexCode* pCode) in dexGetDexCodeSize() argument 503 if (pCode->triesSize != 0) { in dexGetDexCodeSize() 504 handlersSize = dexGetHandlersSize(pCode); in dexGetDexCodeSize() 505 offset = dexGetFirstHandlerOffset(pCode); in dexGetDexCodeSize() 513 dexCatchIteratorInit(&iterator, pCode, offset); in dexGetDexCodeSize() 514 offset = dexCatchIteratorGetEndOffset(&iterator, pCode); in dexGetDexCodeSize() 517 const u1* handlerData = dexGetCatchHandlerData(pCode); in dexGetDexCodeSize() 523 return (handlerData - (u1*) pCode) + offset; in dexGetDexCodeSize()
|
D | DexFile.h | 752 size_t dexGetDexCodeSize(const DexCode* pCode); 755 DEX_INLINE const DexTry* dexGetTries(const DexCode* pCode) { in dexGetTries() argument 756 const u2* insnsEnd = &pCode->insns[pCode->insnsSize]; in dexGetTries() 767 DEX_INLINE const u1* dexGetCatchHandlerData(const DexCode* pCode) { in dexGetCatchHandlerData() argument 768 const DexTry* pTries = dexGetTries(pCode); in dexGetCatchHandlerData() 769 return (const u1*) &pTries[pCode->triesSize]; in dexGetCatchHandlerData() 774 const DexCode* pCode) in dexGetDebugInfoStream() argument 776 if (pCode->debugInfoOff == 0) { in dexGetDebugInfoStream() 779 return pDexFile->baseAddr + pCode->debugInfoOff; in dexGetDebugInfoStream()
|
/dalvik/dexlist/ |
D | DexList.cpp | 98 const DexCode* pCode; in dumpMethod() local 112 pCode = dexGetCode(pDexFile, pDexMethod); in dumpMethod() 113 assert(pCode != NULL); in dumpMethod() 128 dexDecodeDebugInfo(pDexFile, pCode, classDescriptor, pMethodId->protoIdx, in dumpMethod() 143 insnsOff, pCode->insnsSize * 2, in dumpMethod()
|
/dalvik/vm/analysis/ |
D | VfyBasicBlock.cpp | 36 static u4 extractCatchHandlers(const DexCode* pCode, const DexTry* pTry, in extractCatchHandlers() argument 42 dexCatchIteratorInit(&iterator, pCode, pTry->handlerOff); in extractCatchHandlers() 300 const DexCode* pCode = dvmGetMethodCode(meth); in dvmComputeVfyBasicBlocks() local 340 if (pCode->triesSize != 0) { in dvmComputeVfyBasicBlocks() 341 pTries = dexGetTries(pCode); in dvmComputeVfyBasicBlocks() 358 if (tryIndex == pCode->triesSize) { in dvmComputeVfyBasicBlocks() 379 numHandlers = extractCatchHandlers(pCode, &pTries[tryIndex], in dvmComputeVfyBasicBlocks() 389 extractCatchHandlers(pCode, &pTries[tryIndex], in dvmComputeVfyBasicBlocks()
|
D | DexVerify.cpp | 140 const DexCode* pCode = dvmGetMethodCode(meth); in scanTryCatchBlocks() local 141 u4 triesSize = pCode->triesSize; in scanTryCatchBlocks() 149 pTries = dexGetTries(pCode); in scanTryCatchBlocks() 180 u4 handlersSize = dexGetHandlersSize(pCode); in scanTryCatchBlocks() 181 u4 offset = dexGetFirstHandlerOffset(pCode); in scanTryCatchBlocks() 184 dexCatchIteratorInit(&iterator, pCode, offset); in scanTryCatchBlocks() 205 offset = dexCatchIteratorGetEndOffset(&iterator, pCode); in scanTryCatchBlocks()
|
D | CodeVerify.cpp | 2916 const DexCode* pCode; in getCaughtExceptionType() local 2924 pCode = dvmGetMethodCode(meth); in getCaughtExceptionType() 2926 if (pCode->triesSize != 0) { in getCaughtExceptionType() 2927 handlersSize = dexGetHandlersSize(pCode); in getCaughtExceptionType() 2928 offset = dexGetFirstHandlerOffset(pCode); in getCaughtExceptionType() 2936 dexCatchIteratorInit(&iterator, pCode, offset); in getCaughtExceptionType() 2971 offset = dexCatchIteratorGetEndOffset(&iterator, pCode); in getCaughtExceptionType() 6296 const DexCode* pCode = dvmGetMethodCode(meth); in verifyInstruction() local 6300 if (dexFindCatchHandler(&iterator, pCode, insnIdx)) { in verifyInstruction()
|
/dalvik/dexdump/ |
D | DexDump.cpp | 564 void dumpCatches(DexFile* pDexFile, const DexCode* pCode) in dumpCatches() argument 566 u4 triesSize = pCode->triesSize; in dumpCatches() 575 const DexTry* pTries = dexGetTries(pCode); in dumpCatches() 586 dexCatchIteratorInit(&iterator, pCode, pTry->handlerOff); in dumpCatches() 614 void dumpPositions(DexFile* pDexFile, const DexCode* pCode, in dumpPositions() argument 623 dexDecodeDebugInfo(pDexFile, pCode, classDescriptor, pMethodId->protoIdx, in dumpPositions() 639 void dumpLocals(DexFile* pDexFile, const DexCode* pCode, in dumpLocals() argument 649 dexDecodeDebugInfo(pDexFile, pCode, classDescriptor, pMethodId->protoIdx, in dumpLocals() 843 void dumpInstruction(DexFile* pDexFile, const DexCode* pCode, int insnIdx, in dumpInstruction() argument 848 const u2* insns = pCode->insns; in dumpInstruction() [all …]
|
/dalvik/vm/oo/ |
D | Object.h | 800 const DexCode* pCode = dvmGetMethodCode(meth); in dvmGetMethodInsnsSize() local 801 return (pCode == NULL) ? 0 : pCode->insnsSize; in dvmGetMethodInsnsSize()
|
/dalvik/vm/compiler/ |
D | Frontend.cpp | 854 const DexCode *pCode = dvmGetMethodCode(meth); in processTryCatchBlocks() local 855 int triesSize = pCode->triesSize; in processTryCatchBlocks() 863 const DexTry *pTries = dexGetTries(pCode); in processTryCatchBlocks() 879 offset = dexGetFirstHandlerOffset(pCode); in processTryCatchBlocks() 880 int handlersSize = dexGetHandlersSize(pCode); in processTryCatchBlocks() 884 dexCatchIteratorInit(&iterator, pCode, offset); in processTryCatchBlocks() 904 offset = dexCatchIteratorGetEndOffset(&iterator, pCode); in processTryCatchBlocks()
|
/dalvik/vm/ |
D | Exception.cpp | 615 const DexCode* pCode = dvmGetMethodCode(method); in findCatchInMethod() local 618 if (dexFindCatchHandler(&iterator, pCode, relPc)) { in findCatchInMethod()
|