public void dump() {
        for (int i = 0; i < framePointers.size(); i++) {
            System.out.print("[");
            int endFrame = runStack.size();
            if (i < framePointers.size() - 1) {
                endFrame = framePointers.get(i + 1);
            }
            for (int j = framePointers.get(i); j < endFrame; j++) {
                System.out.print(runStack.get(j));
                if (j < endFrame - 1) {
                    System.out.print(",");
                }
            }
            System.out.print("] ");
        }
        System.out.print("\n");
    }