mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 03:56:16 +00:00
LibJS: Inline Cell::Visitor::visit() functions
This allows the calls to MarkingVisitor::visit_impl() during GC to be devirtualized in Heap::mark_live_cells().
This commit is contained in:
parent
c81b3e1ee3
commit
91656d63c7
Notes:
sideshowbarker
2024-07-18 17:25:13 +09:00
Author: https://github.com/awesomekling
Commit: 91656d63c7
4 changed files with 11 additions and 28 deletions
|
@ -33,7 +33,11 @@ public:
|
|||
|
||||
class Visitor {
|
||||
public:
|
||||
void visit(Cell*);
|
||||
void visit(Cell* cell)
|
||||
{
|
||||
if (cell)
|
||||
visit_impl(cell);
|
||||
}
|
||||
void visit(Value);
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue