1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:28:12 +00:00

LibJS/JIT: Compile the NewFunction bytecode instruction

This commit is contained in:
Andreas Kling 2023-10-21 15:49:04 +02:00
parent 9f61cda27e
commit 9c93d100d1
3 changed files with 33 additions and 0 deletions

View file

@ -1003,6 +1003,10 @@ public:
ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const;
DeprecatedString to_deprecated_string_impl(Bytecode::Executable const&) const;
FunctionExpression const& function_node() const { return m_function_node; }
Optional<IdentifierTableIndex> const& lhs_name() const { return m_lhs_name; }
Optional<Register> const& home_object() const { return m_home_object; }
private:
FunctionExpression const& m_function_node;
Optional<IdentifierTableIndex> m_lhs_name;