public ExecutionStack copy() {
    ExecutionStack result = new ExecutionStack(stack.length);

    System.arraycopy(stack, 0, result.stack, 0, stack.length);
    System.arraycopy(local, 0, result.local, 0, local.length);
    result.stackPtr = stackPtr;

    return result;
  }
Makes and returns a mutable copy of this instance.

@return {@code non-null;} the copy
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/code/ExecutionStack.java