From c0ec924dc9624f6276f25852b3986844283a5099 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 4 Feb 2024 13:16:07 +0100 Subject: [PATCH] LibJS/Bytecode: Exclude extra tables from bytecode executable dumps --- Userland/Libraries/LibJS/Bytecode/Executable.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Userland/Libraries/LibJS/Bytecode/Executable.cpp b/Userland/Libraries/LibJS/Bytecode/Executable.cpp index 920dbd3960..4ed1756505 100644 --- a/Userland/Libraries/LibJS/Bytecode/Executable.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Executable.cpp @@ -41,17 +41,11 @@ Executable::~Executable() = default; void Executable::dump() const { - dbgln("\033[33;1mJS::Bytecode::Executable\033[0m ({})", name); + warnln("\033[37;1mJS bytecode executable\033[0m \"{}\"", name); for (auto& block : basic_blocks) block->dump(*this); - if (!string_table->is_empty()) { - outln(); - string_table->dump(); - } - if (!identifier_table->is_empty()) { - outln(); - identifier_table->dump(); - } + + warnln(""); } }