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 }; };