int paramSize() {
    int result = 0;
    for (Local<?> local : parameters) {
      result += local.size();
    }
    return result;
  }
Returns the number of registers to hold the parameters. This includes the 'this' parameter if
it exists.
android/android_framework/dex-maker/src/main/java/com/android/dx/Code.java