Executable.cpp 369 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibJS/Bytecode/Executable.h>
  7. namespace JS::Bytecode {
  8. void Executable::dump() const
  9. {
  10. for (auto& block : basic_blocks)
  11. block.dump(*this);
  12. if (!string_table->is_empty()) {
  13. outln();
  14. string_table->dump();
  15. }
  16. }
  17. }