1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:07:44 +00:00

LibJS/Bytecode: Remove unused AST interpreter hacks from bytecode VM

This commit is contained in:
Andreas Kling 2023-08-07 14:10:34 +02:00
parent 196e04d1c7
commit d1d24569f8
2 changed files with 0 additions and 11 deletions

View file

@ -382,14 +382,6 @@ ThrowCompletionOr<void> 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;

View file

@ -93,8 +93,6 @@ public:
size_t pc() const;
DeprecatedString debug_position() const;
VM::InterpreterExecutionScope ast_interpreter_scope(Realm&);
Optional<Value>& this_value() { return m_this_value; }
void visit_edges(Cell::Visitor&);
@ -125,7 +123,6 @@ private:
Optional<Value> m_return_value;
Optional<Value> m_saved_exception;
Executable* m_current_executable { nullptr };
OwnPtr<JS::Interpreter> m_ast_interpreter;
BasicBlock const* m_current_block { nullptr };
InstructionStreamIterator* m_pc { nullptr };
};