Home
last modified time | relevance | path

Searched refs:pCode (Results 1 – 7 of 7) sorted by relevance

/dalvik/libdex/
DDexCatch.cpp26 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()
DDexCatch.h38 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()
DDexDebugInfo.cpp143 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 …]
DDexFile.cpp493 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()
DDexFile.h752 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/
DDexList.cpp98 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/dexdump/
DDexDump.cpp567 void dumpCatches(DexFile* pDexFile, const DexCode* pCode) in dumpCatches() argument
569 u4 triesSize = pCode->triesSize; in dumpCatches()
578 const DexTry* pTries = dexGetTries(pCode); in dumpCatches()
589 dexCatchIteratorInit(&iterator, pCode, pTry->handlerOff); in dumpCatches()
617 void dumpPositions(DexFile* pDexFile, const DexCode* pCode, in dumpPositions() argument
626 dexDecodeDebugInfo(pDexFile, pCode, classDescriptor, pMethodId->protoIdx, in dumpPositions()
642 void dumpLocals(DexFile* pDexFile, const DexCode* pCode, in dumpLocals() argument
652 dexDecodeDebugInfo(pDexFile, pCode, classDescriptor, pMethodId->protoIdx, in dumpLocals()
849 void dumpInstruction(DexFile* pDexFile, const DexCode* pCode, int insnIdx, in dumpInstruction() argument
854 const u2* insns = pCode->insns; in dumpInstruction()
[all …]