mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:37:34 +00:00
LibJS+LibWeb: Normalize calls to Base::visit_edges in GC objects
This commit is contained in:
parent
98ed74087f
commit
82eeee2008
17 changed files with 20 additions and 15 deletions
|
@ -30,6 +30,7 @@ public:
|
|||
|
||||
void visit_edges(Cell::Visitor& visitor) override
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_getter);
|
||||
visitor.visit(m_setter);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ Environment::Environment(Environment* outer_environment)
|
|||
|
||||
void Environment::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Cell::visit_edges(visitor);
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_outer_environment);
|
||||
}
|
||||
|
||||
|
|
|
@ -345,6 +345,7 @@ JS_ENUMERATE_BUILTIN_NAMESPACE_OBJECTS
|
|||
|
||||
void Intrinsics::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_realm);
|
||||
visitor.visit(m_empty_object_shape);
|
||||
visitor.visit(m_new_object_shape);
|
||||
|
|
|
@ -1341,7 +1341,7 @@ Optional<Completion> Object::enumerate_object_properties(Function<Optional<Compl
|
|||
|
||||
void Object::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Cell::visit_edges(visitor);
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_shape);
|
||||
|
||||
for (auto& value : m_storage)
|
||||
|
|
|
@ -51,7 +51,7 @@ PrimitiveString::~PrimitiveString()
|
|||
|
||||
void PrimitiveString::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Cell::visit_edges(visitor);
|
||||
Base::visit_edges(visitor);
|
||||
if (m_is_rope) {
|
||||
visitor.visit(m_lhs);
|
||||
visitor.visit(m_rhs);
|
||||
|
|
|
@ -47,7 +47,7 @@ bool PrivateName::operator==(PrivateName const& rhs) const
|
|||
|
||||
void PrivateEnvironment::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Cell::visit_edges(visitor);
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_outer_environment);
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ PromiseCapability::PromiseCapability(GCPtr<Object> promise, GCPtr<FunctionObject
|
|||
|
||||
void PromiseCapability::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_promise);
|
||||
visitor.visit(m_resolve);
|
||||
visitor.visit(m_reject);
|
||||
|
|
|
@ -24,7 +24,7 @@ PromiseReaction::PromiseReaction(Type type, GCPtr<PromiseCapability> capability,
|
|||
|
||||
void PromiseReaction::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Cell::visit_edges(visitor);
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_capability);
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace JS {
|
|||
|
||||
void PromiseValueList::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Cell::visit_edges(visitor);
|
||||
Base::visit_edges(visitor);
|
||||
for (auto& val : m_values)
|
||||
visitor.visit(val);
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@ Shape::Shape(Shape& previous_shape, Object* new_prototype)
|
|||
|
||||
void Shape::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Cell::visit_edges(visitor);
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_realm);
|
||||
visitor.visit(m_prototype);
|
||||
visitor.visit(m_previous);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue