mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
LibJS: Make Cell::Visitor::visit_impl() take a Cell&
Passing a null cell pointer is not supported.
This commit is contained in:
parent
789d20ebb7
commit
0de954e86b
3 changed files with 7 additions and 7 deletions
|
@ -155,13 +155,13 @@ class MarkingVisitor final : public Cell::Visitor {
|
|||
public:
|
||||
MarkingVisitor() { }
|
||||
|
||||
virtual void visit_impl(Cell* cell)
|
||||
virtual void visit_impl(Cell& cell)
|
||||
{
|
||||
if (cell->is_marked())
|
||||
if (cell.is_marked())
|
||||
return;
|
||||
dbgln_if(HEAP_DEBUG, " ! {}", cell);
|
||||
cell->set_marked(true);
|
||||
cell->visit_edges(*this);
|
||||
cell.set_marked(true);
|
||||
cell.visit_edges(*this);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue