mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibJS: Make Bytecode::Executable GC-allocated
This is a step towards making ExecutionContext easier to allocate.
This commit is contained in:
@@ -527,6 +527,10 @@ void ECMAScriptFunctionObject::visit_edges(Visitor& visitor)
|
||||
visitor.visit(m_realm);
|
||||
visitor.visit(m_home_object);
|
||||
|
||||
visitor.visit(m_bytecode_executable);
|
||||
for (auto& executable : m_default_parameter_bytecode_executables)
|
||||
visitor.visit(executable);
|
||||
|
||||
for (auto& field : m_fields) {
|
||||
if (auto* property_key_ptr = field.name.get_pointer<PropertyKey>(); property_key_ptr && property_key_ptr->is_symbol())
|
||||
visitor.visit(property_key_ptr->as_symbol());
|
||||
|
||||
Reference in New Issue
Block a user