Home
last modified time | relevance | path

Searched refs:vdata (Results 1 – 9 of 9) sorted by relevance

/dalvik/vm/analysis/
DVfyBasicBlock.cpp72 static VfyBasicBlock* allocVfyBasicBlock(VerifierData* vdata, u4 idx) in allocVfyBasicBlock() argument
94 newBlock->liveRegs = dvmAllocBitVector(vdata->insnRegCount, false); in allocVfyBasicBlock()
107 static bool addToPredecessor(VerifierData* vdata, VfyBasicBlock* curBlock, in addToPredecessor() argument
110 assert(targetIdx < vdata->insnsSize); in addToPredecessor()
119 VfyBasicBlock* targetBlock = vdata->basicBlocks[targetIdx]; in addToPredecessor()
121 targetBlock = allocVfyBasicBlock(vdata, targetIdx); in addToPredecessor()
124 vdata->basicBlocks[targetIdx] = targetBlock; in addToPredecessor()
157 static bool setPredecessors(VerifierData* vdata, VfyBasicBlock* curBlock, in setPredecessors() argument
161 const InsnFlags* insnFlags = vdata->insnFlags; in setPredecessors()
162 const Method* meth = vdata->method; in setPredecessors()
[all …]
DLiveness.cpp24 static bool processInstruction(VerifierData* vdata, u4 curIdx,
26 static bool markDebugLocals(VerifierData* vdata);
27 static void dumpLiveState(const VerifierData* vdata, u4 curIdx,
38 static InstructionWidth* createBackwardWidthTable(VerifierData* vdata) in createBackwardWidthTable() argument
43 calloc(vdata->insnsSize, sizeof(InstructionWidth)); in createBackwardWidthTable()
48 for (u4 idx = 0; idx < vdata->insnsSize; ) { in createBackwardWidthTable()
50 insnWidth = dvmInsnGetWidth(vdata->insnFlags, idx); in createBackwardWidthTable()
60 bool dvmComputeLiveness(VerifierData* vdata) in dvmComputeLiveness() argument
62 const InsnFlags* insnFlags = vdata->insnFlags; in dvmComputeLiveness()
70 const Method* meth = vdata->method; in dvmComputeLiveness()
[all …]
DDexVerify.cpp28 static bool verifyInstructions(VerifierData* vdata);
83 static bool computeWidthsAndCountOps(VerifierData* vdata) in computeWidthsAndCountOps() argument
85 const Method* meth = vdata->method; in computeWidthsAndCountOps()
86 InsnFlags* insnFlags = vdata->insnFlags; in computeWidthsAndCountOps()
87 size_t insnCount = vdata->insnsSize; in computeWidthsAndCountOps()
114 if (i != (int) vdata->insnsSize) { in computeWidthsAndCountOps()
121 vdata->newInstanceCount = newInstanceCount; in computeWidthsAndCountOps()
122 vdata->monitorEnterCount = monitorEnterCount; in computeWidthsAndCountOps()
243 VerifierData vdata; in verifyMethod() local
245 memset(&vdata, 0x99, sizeof(vdata)); in verifyMethod()
[all …]
DVfyBasicBlock.h54 bool dvmComputeVfyBasicBlocks(struct VerifierData* vdata);
59 void dvmFreeVfyBasicBlocks(struct VerifierData* vdata);
DRegisterMap.cpp43 static bool verifyMap(VerifierData* vdata, const RegisterMap* pMap);
188 RegisterMap* dvmGenerateRegisterMapV(VerifierData* vdata) in dvmGenerateRegisterMapV() argument
199 if (vdata->method->registersSize >= 2048) { in dvmGenerateRegisterMapV()
201 vdata->method->registersSize); in dvmGenerateRegisterMapV()
204 regWidth = (vdata->method->registersSize + 7) / 8; in dvmGenerateRegisterMapV()
213 if (vdata->insnsSize < 256) { in dvmGenerateRegisterMapV()
228 for (i = 0; i < (int) vdata->insnsSize; i++) { in dvmGenerateRegisterMapV()
229 if (dvmInsnIsGcPoint(vdata->insnFlags, i)) in dvmGenerateRegisterMapV()
245 vdata->method->clazz->descriptor, vdata->method->name, in dvmGenerateRegisterMapV()
258 for (i = 0; i < (int) vdata->insnsSize; i++) { in dvmGenerateRegisterMapV()
[all …]
DLiveness.h25 bool dvmComputeLiveness(struct VerifierData* vdata);
DCodeVerify.cpp115 static bool doCodeVerification(VerifierData* vdata, RegisterTable* regTable);
120 static void dumpRegTypes(const VerifierData* vdata, \
3022 static bool initRegisterTable(const VerifierData* vdata, in initRegisterTable() argument
3025 const Method* meth = vdata->method; in initRegisterTable()
3026 const int insnsSize = vdata->insnsSize; in initRegisterTable()
3027 const InsnFlags* insnFlags = vdata->insnFlags; in initRegisterTable()
3091 trackMonitors = (vdata->monitorEnterCount != 0); in initRegisterTable()
3161 static void freeRegisterLineInnards(VerifierData* vdata) in freeRegisterLineInnards() argument
3165 if (vdata->registerLines == NULL) in freeRegisterLineInnards()
3168 for (idx = 0; idx < vdata->insnsSize; idx++) { in freeRegisterLineInnards()
[all …]
DRegisterMap.h237 RegisterMap* dvmGenerateRegisterMapV(VerifierData* vdata);
DCodeVerify.h330 bool dvmVerifyCodeFlow(VerifierData* vdata);