LibJS: Make ExecutionContext::function_name a GCPtr<PrimitiveString>

This required setting things up so that all function objects can plop
a PrimitiveString there instead of an AK string.

This is a step towards making ExecutionContext easier to allocate.
This commit is contained in:
Andreas Kling
2023-11-27 13:38:19 +01:00
parent eda2a6d9f7
commit 845da3901d
Notes: sideshowbarker 2024-07-17 06:28:38 +09:00
9 changed files with 34 additions and 16 deletions

View File

@@ -112,6 +112,8 @@ private:
ThrowCompletionOr<void> function_declaration_instantiation();
DeprecatedFlyString m_name;
GCPtr<PrimitiveString> m_name_string;
GCPtr<Bytecode::Executable> m_bytecode_executable;
Vector<NonnullGCPtr<Bytecode::Executable>> m_default_parameter_bytecode_executables;
i32 m_function_length { 0 };