public int size() {
    return stackPtr;
  }
Gets the current stack size.

@return {@code >= 0, < getMaxStack();} the current stack size
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/code/ExecutionStack.java