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

LibJS: Remove usage of bytecode_interpreter_if_exists()

There is no need to check if bytecode interpreter exists after we
switched away from AST interpreter.
This commit is contained in:
Aliaksandr Kalenik 2023-08-11 17:23:56 +02:00 committed by Andreas Kling
parent 0abe2a5023
commit d978c762bc
5 changed files with 7 additions and 14 deletions

View file

@ -271,8 +271,7 @@ void Heap::mark_live_cells(HashTable<Cell*> const& roots)
MarkingVisitor visitor(roots);
if (auto* bytecode_interpreter = vm().bytecode_interpreter_if_exists())
bytecode_interpreter->visit_edges(visitor);
vm().bytecode_interpreter().visit_edges(visitor);
visitor.mark_all_live_cells();