mirror of
https://github.com/RGBCube/serenity
synced 2025-07-01 21:12:12 +00:00
LibJS: Make Bytecode::Executable GC-allocated
This is a step towards making ExecutionContext easier to allocate.
This commit is contained in:
parent
ece961f882
commit
ecfcc9aef3
13 changed files with 34 additions and 19 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue