Lines Matching refs:vdata
72 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()
166 if (!addToPredecessor(vdata, curBlock, handlerList[handlerIdx])) in setPredecessors()
171 if (!addToPredecessor(vdata, curBlock, nextIdx)) in setPredecessors()
182 assert(absOffset >= 0 && (u4) absOffset < vdata->insnsSize); in setPredecessors()
184 if (!addToPredecessor(vdata, curBlock, absOffset)) in setPredecessors()
222 assert(absOffset >= 0 && (u4) absOffset < vdata->insnsSize); in setPredecessors()
224 if (!addToPredecessor(vdata, curBlock, absOffset)) in setPredecessors()
242 static void dumpBasicBlocks(const VerifierData* vdata) in dumpBasicBlocks() argument
248 LOGI("Basic blocks for %s.%s:%s", vdata->method->clazz->descriptor, in dumpBasicBlocks()
249 vdata->method->name, vdata->method->shorty); in dumpBasicBlocks()
250 for (idx = 0; idx < vdata->insnsSize; idx++) { in dumpBasicBlocks()
251 VfyBasicBlock* block = vdata->basicBlocks[idx]; in dumpBasicBlocks()
295 bool dvmComputeVfyBasicBlocks(VerifierData* vdata) in dvmComputeVfyBasicBlocks() argument
297 const InsnFlags* insnFlags = vdata->insnFlags; in dvmComputeVfyBasicBlocks()
298 const Method* meth = vdata->method; in dvmComputeVfyBasicBlocks()
299 const u4 insnsSize = vdata->insnsSize; in dvmComputeVfyBasicBlocks()
326 vdata->basicBlocks = in dvmComputeVfyBasicBlocks()
328 if (vdata->basicBlocks == NULL) in dvmComputeVfyBasicBlocks()
487 assert(vdata->basicBlocks[idx] == NULL); in dvmComputeVfyBasicBlocks()
494 VfyBasicBlock* curBlock = vdata->basicBlocks[blockStartAddr]; in dvmComputeVfyBasicBlocks()
496 curBlock = allocVfyBasicBlock(vdata, blockStartAddr); in dvmComputeVfyBasicBlocks()
499 vdata->basicBlocks[blockStartAddr] = curBlock; in dvmComputeVfyBasicBlocks()
505 if (!setPredecessors(vdata, curBlock, idx, opFlags, nextIdx, in dvmComputeVfyBasicBlocks()
524 dumpBasicBlocks(vdata); in dvmComputeVfyBasicBlocks()
534 void dvmFreeVfyBasicBlocks(VerifierData* vdata) in dvmFreeVfyBasicBlocks() argument
538 if (vdata->basicBlocks == NULL) in dvmFreeVfyBasicBlocks()
541 for (idx = 0; idx < vdata->insnsSize; idx++) { in dvmFreeVfyBasicBlocks()
542 VfyBasicBlock* block = vdata->basicBlocks[idx]; in dvmFreeVfyBasicBlocks()