LibJS: Move global "should dump bytecode" flag into LibJS

This will allow us to trigger bytecode executable dumps when generating
bytecode inside LibJS as well, not just in clients like js and test-js.
This commit is contained in:
Andreas Kling 2021-10-24 13:34:46 +02:00
parent da77e2aa4f
commit c95dde971b
Notes: sideshowbarker 2024-07-18 01:56:54 +09:00
5 changed files with 14 additions and 20 deletions

View file

@ -17,6 +17,7 @@
namespace JS::Bytecode {
static Interpreter* s_current;
bool g_dump_bytecode = false;
Interpreter* Interpreter::current()
{