if (s instanceof IRMethod) {
// FIXME: Expensive to do this explicitly? But, two advantages:
// (a) on inlining, we'll be able to get rid of these checks in almost every case.
// (b) compiler to bytecode will anyway generate this and this is explicit.
// For now, we are going explicit instruction route. But later, perhaps can make this implicit in the method setup preamble?
s.addInstr(new CheckArityInstr(required, opt, rest));
}
// Other args begin at index 0
int argIndex = 0;