Home | History | Annotate | Download | only in arm

Lines Matching full:cunit

29 static TGT_LIR *genRegImmCheck(CompilationUnit *cUnit,
34 TGT_LIR *branch = genCmpImmBranch(cUnit, cond, reg, checkValue);
35 if (cUnit->jitMode == kJitMethod) {
36 BasicBlock *bb = cUnit->curBlock;
38 ArmLIR *exceptionLabel = (ArmLIR *) cUnit->blockLabelList;
48 return genCheckCommon(cUnit, dOffset, branch, pcrLabel);
57 static TGT_LIR *genNullCheck(CompilationUnit *cUnit, int sReg, int mReg,
61 if (dvmIsBitSet(cUnit->regPool->nullCheckedRegs, sReg)) {
64 dvmSetBit(cUnit->regPool->nullCheckedRegs, sReg);
65 return genRegImmCheck(cUnit, kArmCondEq, mReg, 0, dOffset, pcrLabel);
72 static TGT_LIR *genRegRegCheck(CompilationUnit *cUnit,
78 res = opRegReg(cUnit, kOpCmp, reg1, reg2);
79 TGT_LIR *branch = opCondBranch(cUnit, cond);
80 genCheckCommon(cUnit, dOffset, branch, pcrLabel);
88 static TGT_LIR *genZeroCheck(CompilationUnit *cUnit, int mReg,
91 return genRegImmCheck(cUnit, kArmCondEq, mReg, 0, dOffset, pcrLabel);
95 static TGT_LIR *genBoundsCheck(CompilationUnit *cUnit, int rIndex,
98 return genRegRegCheck(cUnit, kArmCondCs, rIndex, rBound, dOffset,
106 static void genDispatchToHandler(CompilationUnit *cUnit, TemplateOpcode opcode)
116 dvmCompilerClobberHandlerRegs(cUnit);
117 newLIR2(cUnit, kThumbBlx1,
120 newLIR2(cUnit, kThumbBlx2,