Lines Matching refs:meth
37 bool dvmComputeCodeWidths(const Method* meth, InsnFlags* insnFlags, in dvmComputeCodeWidths() argument
40 const int insnCount = dvmGetMethodInsnsSize(meth); in dvmComputeCodeWidths()
41 const u2* insns = meth->insns; in dvmComputeCodeWidths()
66 LOG_VFY_METH(meth, in dvmComputeCodeWidths()
82 LOG_VFY_METH(meth, "VFY: insane width %d\n", width); in dvmComputeCodeWidths()
90 if (i != (int) dvmGetMethodInsnsSize(meth)) { in dvmComputeCodeWidths()
91 LOG_VFY_METH(meth, "VFY: code did not end where expected (%d vs. %d)\n", in dvmComputeCodeWidths()
92 i, dvmGetMethodInsnsSize(meth)); in dvmComputeCodeWidths()
113 bool dvmSetTryFlags(const Method* meth, InsnFlags* insnFlags) in dvmSetTryFlags() argument
115 u4 insnsSize = dvmGetMethodInsnsSize(meth); in dvmSetTryFlags()
116 DexFile* pDexFile = meth->clazz->pDvmDex->pDexFile; in dvmSetTryFlags()
117 const DexCode* pCode = dvmGetMethodCode(meth); in dvmSetTryFlags()
138 LOG_VFY_METH(meth, in dvmSetTryFlags()
145 LOG_VFY_METH(meth, in dvmSetTryFlags()
175 LOG_VFY_METH(meth, in dvmSetTryFlags()
194 bool dvmCheckSwitchTargets(const Method* meth, InsnFlags* insnFlags, in dvmCheckSwitchTargets() argument
197 const int insnCount = dvmGetMethodInsnsSize(meth); in dvmCheckSwitchTargets()
198 const u2* insns = meth->insns + curOffset; in dvmCheckSwitchTargets()
212 LOG_VFY_METH(meth, in dvmCheckSwitchTargets()
223 LOG_VFY_METH(meth, in dvmCheckSwitchTargets()
245 LOG_VFY_METH(meth, in dvmCheckSwitchTargets()
253 LOG_VFY_METH(meth, in dvmCheckSwitchTargets()
270 LOG_VFY_METH(meth, in dvmCheckSwitchTargets()
289 LOG_VFY_METH(meth, in dvmCheckSwitchTargets()
310 bool dvmCheckBranchTarget(const Method* meth, InsnFlags* insnFlags, in dvmCheckBranchTarget() argument
313 const int insnCount = dvmGetMethodInsnsSize(meth); in dvmCheckBranchTarget()
314 const u2* insns = meth->insns + curOffset; in dvmCheckBranchTarget()
318 if (!dvmGetBranchTarget(meth, insnFlags, curOffset, &offset, in dvmCheckBranchTarget()
323 LOG_VFY_METH(meth, "VFY: branch offset of zero not allowed at 0x%x\n", in dvmCheckBranchTarget()
334 LOG_VFY_METH(meth, "VFY: branch target overflow 0x%x +%d\n", in dvmCheckBranchTarget()
342 LOG_VFY_METH(meth, in dvmCheckBranchTarget()
358 void dvmLogVerifyFailure(const Method* meth, const char* format, ...) in dvmLogVerifyFailure() argument
372 if (meth != NULL) { in dvmLogVerifyFailure()
373 char* desc = dexProtoCopyMethodDescriptor(&meth->prototype); in dvmLogVerifyFailure()
375 meth->clazz->descriptor, meth->name, desc); in dvmLogVerifyFailure()
388 const Method* meth) in dvmLogUnableToResolveClass() argument
394 char* dotFromClass = dvmDescriptorToDot(meth->clazz->descriptor); in dvmLogUnableToResolveClass()
398 dotMissingClass, dotFromClass, meth->name/*, methodDescr*/); in dvmLogUnableToResolveClass()
410 bool dvmGetBranchTarget(const Method* meth, InsnFlags* insnFlags, in dvmGetBranchTarget() argument
413 const u2* insns = meth->insns + curOffset; in dvmGetBranchTarget()