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

LibJS: Add BytecodeGenerator helpers for reference get/put

This allows code sharing between all AST nodes that want to get and/or
put through a reference.
This commit is contained in:
Andreas Kling 2021-10-25 15:16:22 +02:00
parent b63d17e2f8
commit 1dc60b028f
2 changed files with 64 additions and 0 deletions

View file

@ -70,6 +70,9 @@ public:
return *static_cast<OpType*>(slot);
}
void emit_load_from_reference(JS::ASTNode const&);
void emit_store_to_reference(JS::ASTNode const&);
void begin_continuable_scope(Label continue_target);
void end_continuable_scope();
void begin_breakable_scope(Label breakable_target);