Home | History | Annotate | Download | only in compiler

Lines Matching refs:curBlock

902 static void processCanBranch(CompilationUnit *cUnit, BasicBlock *curBlock,
940 &curBlock);
941 curBlock->taken = takenBlock;
942 dvmCompilerSetBit(takenBlock->predecessors, curBlock->id);
964 &curBlock);
965 curBlock->fallThrough = fallthroughBlock;
966 dvmCompilerSetBit(fallthroughBlock->predecessors, curBlock->id);
982 static void processCanSwitch(CompilationUnit *cUnit, BasicBlock *curBlock,
1025 if (curBlock->successorBlockList.blockListType != kNotUsed) {
1027 curBlock->successorBlockList.blockListType);
1030 curBlock->successorBlockList.blockListType =
1033 dvmInitGrowableList(&curBlock->successorBlockList.blocks, size);
1042 &curBlock);
1049 dvmInsertGrowableList(&curBlock->successorBlockList.blocks,
1051 dvmCompilerSetBit(caseBlock->predecessors, curBlock->id);
1063 curBlock->fallThrough = fallthroughBlock;
1064 dvmCompilerSetBit(fallthroughBlock->predecessors, curBlock->id);
1068 static void processCanThrow(CompilationUnit *cUnit, BasicBlock *curBlock,
1086 if (curBlock->successorBlockList.blockListType != kNotUsed) {
1088 curBlock->successorBlockList.blockListType);
1091 curBlock->successorBlockList.blockListType = kCatch;
1092 dvmInitGrowableList(&curBlock->successorBlockList.blocks, 2);
1114 dvmInsertGrowableList(&curBlock->successorBlockList.blocks,
1116 dvmCompilerSetBit(catchBlock->predecessors, curBlock->id);
1121 curBlock->taken = ehBlock;
1124 dvmCompilerSetBit(ehBlock->predecessors, curBlock->id);
1150 curBlock->fallThrough = fallthroughBlock;
1151 dvmCompilerSetBit(fallthroughBlock->predecessors, curBlock->id);
1210 BasicBlock *curBlock = dvmCompilerNewBB(kDalvikByteCode, numBlocks++);
1211 curBlock->startOffset = 0;
1212 dvmInsertGrowableList(&cUnit.blockList, (intptr_t) curBlock);
1213 entryBlock->fallThrough = curBlock;
1214 dvmCompilerSetBit(curBlock->predecessors, entryBlock->id);
1236 dvmCompilerAppendMIR(curBlock, insn);
1242 processCanBranch(&cUnit, curBlock, insn, curOffset, width, flags,
1245 curBlock->fallThrough = exitBlock;
1246 dvmCompilerSetBit(exitBlock->predecessors, curBlock->id);
1267 processCanThrow(&cUnit, curBlock, insn, curOffset, width, flags,
1270 processCanSwitch(&cUnit, curBlock, insn, curOffset, width, flags);
1287 assert(curBlock->fallThrough == NULL ||
1288 curBlock->fallThrough == nextBlock ||
1289 curBlock->fallThrough == exitBlock);
1291 if ((curBlock->fallThrough == NULL) &&
1293 curBlock->fallThrough = nextBlock;
1294 dvmCompilerSetBit(nextBlock->predecessors, curBlock->id);
1296 curBlock = nextBlock;
1356 /* Extending the trace by crawling the code from curBlock */
1357 curBlock)
1359 unsigned int curOffset = curBlock->startOffset;
1362 if (curBlock->visited == true) return false;
1364 curBlock->visited = true;
1366 if (curBlock->blockType == kEntryBlock ||
1367 curBlock->blockType == kExitBlock) {
1375 if (curBlock->firstMIRInsn != NULL) {
1377 if (curBlock->taken)
1378 changed |= exhaustTrace(cUnit, curBlock->taken);
1379 if (curBlock->fallThrough)
1380 changed |= exhaustTrace(cUnit, curBlock->fallThrough);
1393 dvmCompilerAppendMIR(curBlock, insn);
1400 curBlock->fallThrough = cUnit->exitBlock;
1401 dvmCompilerSetBit(cUnit->exitBlock->predecessors, curBlock->id);
1404 processCanBranch(cUnit, curBlock, insn, curOffset, width, flags,
1406 if (curBlock->taken) {
1407 exhaustTrace(cUnit, curBlock->taken);
1409 if (curBlock->fallThrough) {
1410 exhaustTrace(cUnit, curBlock->fallThrough);
1429 assert(curBlock->fallThrough == NULL ||
1430 curBlock->fallThrough == nextBlock ||
1431 curBlock->fallThrough == cUnit->exitBlock);
1433 if ((curBlock->fallThrough == NULL) &&
1435 curBlock->needFallThroughBranch = true;
1436 curBlock->fallThrough = nextBlock;
1437 dvmCompilerSetBit(nextBlock->predecessors, curBlock->id);
1443 curBlock = nextBlock;
1483 BasicBlock *curBlock = dvmCompilerNewBB(kDalvikByteCode, numBlocks++);
1484 curBlock->startOffset = curOffset;
1486 dvmInsertGrowableList(&cUnit->blockList, (intptr_t) curBlock);
1487 entryBlock->fallThrough = curBlock;
1488 dvmCompilerSetBit(curBlock->predecessors, entryBlock->id);
1501 changed = exhaustTrace(cUnit, curBlock);