From d1d24569f86fc219514fbc95912772b32796115f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 7 Aug 2023 14:10:34 +0200 Subject: [PATCH] LibJS/Bytecode: Remove unused AST interpreter hacks from bytecode VM --- Userland/Libraries/LibJS/Bytecode/Interpreter.cpp | 8 -------- Userland/Libraries/LibJS/Bytecode/Interpreter.h | 3 --- 2 files changed, 11 deletions(-) diff --git a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp index 32c288632f..edf597041b 100644 --- a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -382,14 +382,6 @@ ThrowCompletionOr Interpreter::continue_pending_unwind(Label const& resume return {}; } -VM::InterpreterExecutionScope Interpreter::ast_interpreter_scope(Realm& realm) -{ - if (!m_ast_interpreter) - m_ast_interpreter = JS::Interpreter::create_with_existing_realm(realm); - - return { *m_ast_interpreter }; -} - size_t Interpreter::pc() const { return m_pc ? m_pc->offset() : 0; diff --git a/Userland/Libraries/LibJS/Bytecode/Interpreter.h b/Userland/Libraries/LibJS/Bytecode/Interpreter.h index 1c4e05883a..6696ce46c7 100644 --- a/Userland/Libraries/LibJS/Bytecode/Interpreter.h +++ b/Userland/Libraries/LibJS/Bytecode/Interpreter.h @@ -93,8 +93,6 @@ public: size_t pc() const; DeprecatedString debug_position() const; - VM::InterpreterExecutionScope ast_interpreter_scope(Realm&); - Optional& this_value() { return m_this_value; } void visit_edges(Cell::Visitor&); @@ -125,7 +123,6 @@ private: Optional m_return_value; Optional m_saved_exception; Executable* m_current_executable { nullptr }; - OwnPtr m_ast_interpreter; BasicBlock const* m_current_block { nullptr }; InstructionStreamIterator* m_pc { nullptr }; };