use of org.apache.bcel.generic.INVOKESTATIC in project jop by jop-devel.
the class MethodHelper method getArgSize.
public static int getArgSize(InvokeInstruction m, ConstantPoolGen cp) {
int retval = 0;
if (!(m instanceof INVOKESTATIC)) {
retval += 1;
}
Type[] at = m.getArgumentTypes(cp);
for (Type type : at) {
retval += type.getSize();
}
return retval;
}
Aggregations