mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:47:35 +00:00
LibJS: Remove ability to disable bytecode VM
This commit is contained in:
parent
9a709e03a3
commit
e2c8d5859e
7 changed files with 2 additions and 24 deletions
|
@ -19,18 +19,6 @@
|
|||
|
||||
namespace JS::Bytecode {
|
||||
|
||||
static bool s_bytecode_interpreter_enabled = false;
|
||||
|
||||
bool Interpreter::enabled()
|
||||
{
|
||||
return s_bytecode_interpreter_enabled;
|
||||
}
|
||||
|
||||
void Interpreter::set_enabled(bool enabled)
|
||||
{
|
||||
s_bytecode_interpreter_enabled = enabled;
|
||||
}
|
||||
|
||||
bool g_dump_bytecode = false;
|
||||
|
||||
Interpreter::Interpreter(VM& vm)
|
||||
|
|
|
@ -36,9 +36,6 @@ struct CallFrame {
|
|||
|
||||
class Interpreter {
|
||||
public:
|
||||
[[nodiscard]] static bool enabled();
|
||||
static void set_enabled(bool);
|
||||
|
||||
explicit Interpreter(VM&);
|
||||
~Interpreter();
|
||||
|
||||
|
|
|
@ -208,8 +208,6 @@ Bytecode::Interpreter& VM::bytecode_interpreter()
|
|||
|
||||
Bytecode::Interpreter* VM::bytecode_interpreter_if_exists()
|
||||
{
|
||||
if (!Bytecode::Interpreter::enabled())
|
||||
return nullptr;
|
||||
return m_bytecode_interpreter;
|
||||
}
|
||||
|
||||
|
|
|
@ -134,8 +134,6 @@ int main(int argc, char** argv)
|
|||
AK::set_debug_enabled(false);
|
||||
}
|
||||
|
||||
JS::Bytecode::Interpreter::set_enabled(true);
|
||||
|
||||
DeprecatedString test_root;
|
||||
|
||||
if (!specified_test_root.is_empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue