mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
LibJS: Rename Cell::visit_children() => Cell::visit_edges()
The GC heap is really a graph of cells, so "children" didn't quite feel appropriate here.
This commit is contained in:
parent
97a05ac9ac
commit
98f2da9834
32 changed files with 48 additions and 48 deletions
|
@ -101,19 +101,19 @@ Shape::~Shape()
|
|||
{
|
||||
}
|
||||
|
||||
void Shape::visit_children(Cell::Visitor& visitor)
|
||||
void Shape::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Cell::visit_children(visitor);
|
||||
Cell::visit_edges(visitor);
|
||||
visitor.visit(m_global_object);
|
||||
visitor.visit(m_prototype);
|
||||
visitor.visit(m_previous);
|
||||
m_property_name.visit_children(visitor);
|
||||
m_property_name.visit_edges(visitor);
|
||||
for (auto& it : m_forward_transitions)
|
||||
visitor.visit(it.value);
|
||||
|
||||
if (m_property_table) {
|
||||
for (auto& it : *m_property_table)
|
||||
it.key.visit_children(visitor);
|
||||
it.key.visit_edges(visitor);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue