1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

JSSpecCompiler: Introduce Function and ExecutionContext classes

Currently, they are not extremely useful, but the plan is to store
all function-local state in JSSpecCompiler::Function and all
"translation unit" state in ExecutionContext.
This commit is contained in:
Dan Klishch 2023-08-20 14:05:48 -04:00 committed by Andrew Kaster
parent f05d291b41
commit cd8f4aaa7d
9 changed files with 74 additions and 9 deletions

View file

@ -312,11 +312,11 @@ protected:
class FunctionPointer : public Node {
public:
FunctionPointer(StringView function_name)
: m_function_name(function_name)
: m_function(function_name)
{
}
StringView m_function_name;
Variant<StringView, FunctionRef> m_function;
protected:
void dump_tree(StringBuilder& builder) override;