mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
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:
committed by
Andreas Kling
parent
c25227d324
commit
1f6ca58e55
Notes:
github-actions[bot]
2026-03-20 02:57:01 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/1f6ca58e559 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8517
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user