LibJS: Remove C++ AST constructor from SharedFunctionInstanceData

Remove the constructor that took C++ AST nodes (FunctionParameters,
Statement), along with create_for_function_node() and the
m_formal_parameters / m_ecmascript_code fields. These were only used
by the now-removed C++ compilation pipeline.

Also remove the dead EvalDeclarationData::create(VM&, Program&, bool)
and ECMAScriptFunctionObject::ecmascript_code() accessor.
This commit is contained in:
Andreas Kling
2026-03-19 13:15:04 -05:00
committed by Andreas Kling
parent c25227d324
commit 1f6ca58e55
Notes: github-actions[bot] 2026-03-20 02:57:01 +00:00
5 changed files with 12 additions and 406 deletions

View File

@@ -54,11 +54,6 @@ public:
[[nodiscard]] bool is_module_wrapper() const { return shared_data().m_is_module_wrapper; }
void set_is_module_wrapper(bool b) { const_cast<SharedFunctionInstanceData&>(shared_data()).m_is_module_wrapper = b; }
Statement const& ecmascript_code() const
{
VERIFY(shared_data().m_ecmascript_code);
return *shared_data().m_ecmascript_code;
}
[[nodiscard]] u32 formal_parameter_count() const { return shared_data().m_formal_parameter_count; }
[[nodiscard]] ReadonlySpan<Utf16FlyString> parameter_names_for_mapped_arguments() const { return shared_data().m_parameter_names_for_mapped_arguments; }