docs: public void clearStack() {
          if (!isValid()) {
              throw new IllegalStateException("accessing top or bottom frame");
          }
          assert slotList.size() >= numLocals;
          if (slotList.size() > numLocals) {
              slotList.subList(numLocals, slotList.size()).clear();
          }
      }