Home | History | Annotate | Download | only in analysis

Lines Matching defs:insnRegCount

122     const int insnRegCount, const DecodedInstruction* pDecInsn,
124 static void verifyRegisterType(const RegType* insnRegs, const int insnRegCount,\
1045 const int insnRegCount, const DecodedInstruction* pDecInsn,
1176 actualArgType = getInvocationThis(insnRegs, insnRegCount, pDecInsn,
1221 verifyRegisterType(insnRegs, insnRegCount, getReg,
1237 verifyRegisterType(insnRegs, insnRegCount, getReg,
1248 verifyRegisterType(insnRegs, insnRegCount, getReg,
1253 verifyRegisterType(insnRegs, insnRegCount, getReg,
1258 verifyRegisterType(insnRegs, insnRegCount, getReg,
1263 verifyRegisterType(insnRegs, insnRegCount, getReg,
1268 verifyRegisterType(insnRegs, insnRegCount, getReg,
1273 verifyRegisterType(insnRegs, insnRegCount, getReg,
1278 verifyRegisterType(insnRegs, insnRegCount, getReg,
1283 verifyRegisterType(insnRegs, insnRegCount, getReg,
1370 const int insnRegCount, u4 vsrc, VerifyError* pFailure)
1372 if (vsrc >= (u4) insnRegCount) {
1389 const int insnRegCount, u4 vsrc, VerifyError* pFailure)
1395 type = getRegisterType(insnRegs, insnRegCount, vsrc, pFailure);
1432 const int insnRegCount, const DecodedInstruction* pDecInsn,
1444 thisType = getRegisterType(insnRegs, insnRegCount, pDecInsn->vC, pFailure);
1468 static void setRegisterType(RegType* insnRegs, const int insnRegCount,
1484 if (vdst >= (u4) insnRegCount) {
1492 if (vdst+1 >= (u4) insnRegCount) {
1508 if (vdst >= (u4) insnRegCount) {
1550 static void verifyRegisterType(const RegType* insnRegs, const int insnRegCount,
1553 if (vsrc >= (u4) insnRegCount) {
1578 if (vsrc+1 >= (u4) insnRegCount) {
1580 vsrc, insnRegCount);
1664 * "insnRegCount" to encompass the result register.
1666 static void setResultRegisterType(RegType* insnRegs, const int insnRegCount,
1669 setRegisterType(insnRegs, insnRegCount + kExtraRegs,
1670 RESULT_REGISTER(insnRegCount), newType, pFailure);
1680 static void markRefsAsInitialized(RegType* insnRegs, int insnRegCount,
1697 for (i = 0; i < insnRegCount; i++) {
1716 static void markUninitRefsAsInvalid(RegType* insnRegs, int insnRegCount,
1722 for (i = 0; i < insnRegCount; i++) {
1855 * "insnRegCount" is the number of registers available. The "vdst" and
1858 static void copyRegister1(RegType* insnRegs, int insnRegCount, u4 vdst,
1861 RegType type = getRegisterType(insnRegs, insnRegCount, vsrc, pFailure);
1865 setRegisterType(insnRegs, insnRegCount, vdst, type, pFailure);
1876 static void copyRegister2(RegType* insnRegs, int insnRegCount, u4 vdst,
1879 RegType typel = getRegisterType(insnRegs, insnRegCount, vsrc, pFailure);
1880 RegType typeh = getRegisterType(insnRegs, insnRegCount, vsrc+1, pFailure);
1886 setRegisterType(insnRegs, insnRegCount, vdst, typel, pFailure);
1897 * We can't just call copyRegister1 with an altered insnRegCount,
1900 static void copyResultRegister1(RegType* insnRegs, const int insnRegCount,
1906 vsrc = RESULT_REGISTER(insnRegCount);
1907 type = getRegisterType(insnRegs, insnRegCount + kExtraRegs, vsrc, pFailure);
1911 setRegisterType(insnRegs, insnRegCount, vdst, type, pFailure);
1925 * We can't just call copyRegister2 with an altered insnRegCount,
1928 static void copyResultRegister2(RegType* insnRegs, const int insnRegCount,
1934 vsrc = RESULT_REGISTER(insnRegCount);
1935 typel = getRegisterType(insnRegs, insnRegCount + kExtraRegs, vsrc,
1937 typeh = getRegisterType(insnRegs, insnRegCount + kExtraRegs, vsrc+1,
1944 setRegisterType(insnRegs, insnRegCount, vdst, typel, pFailure);
1959 static void checkUnop(RegType* insnRegs, const int insnRegCount,
1963 verifyRegisterType(insnRegs, insnRegCount, pDecInsn->vB, srcType, pFailure);
1964 setRegisterType(insnRegs, insnRegCount, pDecInsn->vA, dstType, pFailure);
1983 static bool upcastBooleanOp(RegType* insnRegs, const int insnRegCount,
2008 static void checkLitop(RegType* insnRegs, const int insnRegCount,
2012 verifyRegisterType(insnRegs, insnRegCount, pDecInsn->vB, srcType, pFailure);
2016 if (upcastBooleanOp(insnRegs, insnRegCount, pDecInsn->vB, pDecInsn->vB)
2022 setRegisterType(insnRegs, insnRegCount, pDecInsn->vA, dstType, pFailure);
2030 static void checkBinop(RegType* insnRegs, const int insnRegCount,
2034 verifyRegisterType(insnRegs, insnRegCount, pDecInsn->vB, srcType1,
2036 verifyRegisterType(insnRegs, insnRegCount, pDecInsn->vC, srcType2,
2040 if (upcastBooleanOp(insnRegs, insnRegCount, pDecInsn->vB, pDecInsn->vC))
2043 setRegisterType(insnRegs, insnRegCount, pDecInsn->vA, dstType, pFailure);
2050 static void checkBinop2addr(RegType* insnRegs, const int insnRegCount,
2054 verifyRegisterType(insnRegs, insnRegCount, pDecInsn->vA, srcType1,
2056 verifyRegisterType(insnRegs, insnRegCount, pDecInsn->vB, srcType2,
2060 if (upcastBooleanOp(insnRegs, insnRegCount, pDecInsn->vA, pDecInsn->vB))
2063 setRegisterType(insnRegs, insnRegCount, pDecInsn->vA, dstType, pFailure);
2100 static RegType adjustForRightShift(RegType* workRegs, const int insnRegCount,
2104 RegType srcType = getRegisterType(workRegs, insnRegCount, reg, pFailure);
2435 const int insnRegCount = meth->registersSize;
2455 copyRegisters(targetRegs, workRegs, insnRegCount + kExtraRegs);
2467 for (i = 0; i < insnRegCount + kExtraRegs; i++) {
2677 const int insnRegCount)
2686 for (i = 0; i < insnRegCount; i++) {
2909 const RegType* insnRegs, const int insnRegCount,
2940 verifyRegisterType(insnRegs, insnRegCount, getReg, expectedType,
3498 const int insnRegCount = meth->registersSize;
3544 copyRegister1(workRegs, insnRegCount, decInsn.vA, decInsn.vB,
3550 copyRegister2(workRegs, insnRegCount, decInsn.vA, decInsn.vB, &failure);
3555 copyRegister1(workRegs, insnRegCount, decInsn.vA, decInsn.vB,
3571 copyResultRegister1(workRegs, insnRegCount, decInsn.vA,
3575 copyResultRegister2(workRegs, insnRegCount, decInsn.vA, &failure);
3578 copyResultRegister1(workRegs, insnRegCount, decInsn.vA,
3596 setRegisterType(workRegs, insnRegCount, decInsn.vA,
3602 if (!checkConstructorReturn(meth, workRegs, insnRegCount)) {
3610 if (!checkConstructorReturn(meth, workRegs, insnRegCount)) {
3620 returnType = getRegisterType(workRegs, insnRegCount, decInsn.vA,
3628 if (!checkConstructorReturn(meth, workRegs, insnRegCount)) {
3640 returnType = getRegisterType(workRegs, insnRegCount, decInsn.vA,
3642 returnTypeHi = getRegisterType(workRegs, insnRegCount,
3655 if (!checkConstructorReturn(meth, workRegs, insnRegCount)) {
3682 resClass = getClassFromRegister(workRegs, insnRegCount,
3704 setRegisterType(workRegs, insnRegCount, decInsn.vA,
3709 setRegisterType(workRegs, insnRegCount, decInsn.vA,
3717 setRegisterType(workRegs, insnRegCount, decInsn.vA,
3723 setRegisterType(workRegs, insnRegCount, decInsn.vA,
3737 setRegisterType(workRegs, insnRegCount, decInsn.vA,
3744 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vA, &failure);
3772 origType = getRegisterType(workRegs, insnRegCount, decInsn.vA,
3781 setRegisterType(workRegs, insnRegCount, decInsn.vA,
3787 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vB, &failure);
3806 setRegisterType(workRegs, insnRegCount, decInsn.vA,
3812 resClass = getClassFromRegister(workRegs, insnRegCount,
3821 setRegisterType(workRegs, insnRegCount, decInsn.vA, kRegTypeInteger,
3853 markUninitRefsAsInvalid(workRegs, insnRegCount, uninitMap,
3857 setRegisterType(workRegs, insnRegCount, decInsn.vA,
3874 verifyRegisterType(workRegs, insnRegCount, decInsn.vB,
3877 insnRegCount, decInsn.vA,
3897 verifyFilledNewArrayRegs(meth, workRegs, insnRegCount, &decInsn,
3900 setResultRegisterType(workRegs, insnRegCount,
3908 verifyRegisterType(workRegs, insnRegCount, decInsn.vB, kRegTypeFloat,
3910 verifyRegisterType(workRegs, insnRegCount, decInsn.vC, kRegTypeFloat,
3912 setRegisterType(workRegs, insnRegCount, decInsn.vA, kRegTypeBoolean,
3917 verifyRegisterType(workRegs, insnRegCount, decInsn.vB, kRegTypeDoubleLo,
3919 verifyRegisterType(workRegs, insnRegCount, decInsn.vC, kRegTypeDoubleLo,
3921 setRegisterType(workRegs, insnRegCount, decInsn.vA, kRegTypeBoolean,
3925 verifyRegisterType(workRegs, insnRegCount, decInsn.vB, kRegTypeLongLo,
3927 verifyRegisterType(workRegs, insnRegCount, decInsn.vC, kRegTypeLongLo,
3929 setRegisterType(workRegs, insnRegCount, decInsn.vA, kRegTypeBoolean,
3934 resClass = getClassFromRegister(workRegs, insnRegCount,
3954 verifyRegisterType(workRegs, insnRegCount, decInsn.vA,
3965 resClass = getClassFromRegister(workRegs, insnRegCount,
4039 type1 = getRegisterType(workRegs, insnRegCount, decInsn.vA,
4041 type2 = getRegisterType(workRegs, insnRegCount, decInsn.vB,
4063 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vA, &failure);
4071 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vB, &failure);
4082 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vA, &failure);
4095 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vA, &failure);
4122 indexType = getRegisterType(workRegs, insnRegCount, decInsn.vC,
4128 resClass = getClassFromRegister(workRegs, insnRegCount,
4156 setRegisterType(workRegs, insnRegCount, decInsn.vA,
4165 indexType = getRegisterType(workRegs, insnRegCount, decInsn.vC,
4171 resClass = getClassFromRegister(workRegs, insnRegCount,
4210 setRegisterType(workRegs, insnRegCount, decInsn.vA,
4219 indexType = getRegisterType(workRegs, insnRegCount, decInsn.vC,
4226 resClass = getClassFromRegister(workRegs, insnRegCount,
4271 setRegisterType(workRegs, insnRegCount, decInsn.vA,
4294 indexType = getRegisterType(workRegs, insnRegCount, decInsn.vC,
4301 srcType = getRegisterType(workRegs, insnRegCount, decInsn.vA,
4310 resClass = getClassFromRegister(workRegs, insnRegCount,
4341 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vC,
4347 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vA, &failure);
4350 getRegisterType(workRegs, insnRegCount, decInsn.vA+1, &failure);
4357 resClass = getClassFromRegister(workRegs, insnRegCount,
4386 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vC,
4393 resClass = getClassFromRegister(workRegs, insnRegCount,
4406 arrayClass = getClassFromRegister(workRegs, insnRegCount,
4467 objType = getRegisterType(workRegs, insnRegCount, decInsn.vB,
4488 setRegisterType(workRegs, insnRegCount, decInsn.vA, tmpType,
4499 objType = getRegisterType(workRegs, insnRegCount, decInsn.vB,
4524 setRegisterType(workRegs, insnRegCount, decInsn.vA,
4536 objType = getRegisterType(workRegs, insnRegCount, decInsn.vB,
4554 setRegisterType(workRegs, insnRegCount, decInsn.vA,
4580 srcType = getRegisterType(workRegs, insnRegCount, decInsn.vA,
4598 objType = getRegisterType(workRegs, insnRegCount, decInsn.vB,
4625 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vA, &failure);
4628 getRegisterType(workRegs, insnRegCount, decInsn.vA+1, &failure);
4636 objType = getRegisterType(workRegs, insnRegCount, decInsn.vB,
4671 objType = getRegisterType(workRegs, insnRegCount, decInsn.vB,
4691 valueType = getRegisterType(workRegs, insnRegCount, decInsn.vA,
4767 setRegisterType(workRegs, insnRegCount, decInsn.vA, tmpType,
4797 setRegisterType(workRegs, insnRegCount, decInsn.vA,
4823 setRegisterType(workRegs, insnRegCount, decInsn.vA,
4848 srcType = getRegisterType(workRegs, insnRegCount, decInsn.vA,
4892 tmpType = getRegisterType(workRegs, insnRegCount, decInsn.vA, &failure);
4895 getRegisterType(workRegs, insnRegCount, decInsn.vA+1, &failure);
4947 valueType = getRegisterType(workRegs, insnRegCount, decInsn.vA,
4996 calledMethod = verifyInvocationArgs(meth, workRegs, insnRegCount,
5002 setResultRegisterType(workRegs, insnRegCount, returnType, &failure);
5014 calledMethod = verifyInvocationArgs(meth, workRegs, insnRegCount,
5031 thisType = getInvocationThis(workRegs, insnRegCount,
5076 markRefsAsInitialized(workRegs, insnRegCount, uninitMap,
5082 setResultRegisterType(workRegs, insnRegCount,
5095 calledMethod = verifyInvocationArgs(meth, workRegs, insnRegCount,
5102 setResultRegisterType(workRegs, insnRegCount, returnType, &failure);
5114 absMethod = verifyInvocationArgs(meth, workRegs, insnRegCount,
5126 thisType = getInvocationThis(workRegs, insnRegCount,
5167 setResultRegisterType(workRegs, insnRegCount, returnType, &failure);
5174 checkUnop(workRegs, insnRegCount, &decInsn,
5179 checkUnop(workRegs, insnRegCount, &decInsn,
5183 checkUnop(workRegs, insnRegCount, &decInsn,
5187 checkUnop(workRegs, insnRegCount, &decInsn,
5191 checkUnop(workRegs, insnRegCount, &decInsn,
5195 checkUnop(workRegs, insnRegCount, &decInsn,
5199 checkUnop(workRegs, insnRegCount, &decInsn,
5203 checkUnop(workRegs, insnRegCount, &decInsn,
5207 checkUnop(workRegs, insnRegCount, &decInsn,
5211 checkUnop(workRegs, insnRegCount, &decInsn,
5215 checkUnop(workRegs, insnRegCount, &decInsn,
5219 checkUnop(workRegs, insnRegCount, &decInsn,
5223 checkUnop(workRegs, insnRegCount, &decInsn,
5227 checkUnop(workRegs, insnRegCount, &decInsn,
5231 checkUnop(workRegs, insnRegCount, &decInsn,
5235 checkUnop(workRegs, insnRegCount, &decInsn,
5239 checkUnop(workRegs, insnRegCount, &decInsn,
5243 checkUnop(workRegs, insnRegCount, &decInsn,
5247 checkUnop(workRegs, insnRegCount, &decInsn,
5259 checkBinop(workRegs, insnRegCount, &decInsn,
5265 checkBinop(workRegs, insnRegCount, &decInsn,
5276 checkBinop(workRegs, insnRegCount, &decInsn,
5283 checkBinop(workRegs, insnRegCount, &decInsn,
5291 checkBinop(workRegs, insnRegCount, &decInsn,
5299 checkBinop(workRegs, insnRegCount, &decInsn,
5310 checkBinop2addr(workRegs, insnRegCount, &decInsn,
5316 checkBinop2addr(workRegs, insnRegCount, &decInsn,
5320 checkBinop2addr(workRegs, insnRegCount, &decInsn,
5331 checkBinop2addr(workRegs, insnRegCount, &decInsn,
5337 checkBinop2addr(workRegs, insnRegCount, &decInsn,
5345 checkBinop2addr(workRegs, insnRegCount, &decInsn,
5353 checkBinop2addr(workRegs, insnRegCount, &decInsn,
5362 checkLitop(workRegs, insnRegCount, &decInsn,
5368 checkLitop(workRegs, insnRegCount, &decInsn,
5377 checkLitop(workRegs, insnRegCount, &decInsn,
5381 tmpType = adjustForRightShift(workRegs, insnRegCount,
5383 checkLitop(workRegs, insnRegCount, &decInsn,
5387 tmpType = adjustForRightShift(workRegs, insnRegCount,
5389 checkLitop(workRegs, insnRegCount, &decInsn,
5395 checkLitop(workRegs, insnRegCount, &decInsn,
5508 int reg = RESULT_REGISTER(insnRegCount);