1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 18:37:36 +00:00

LibJS/JIT: Compile the Yield instruction

This commit is contained in:
Simon Wanner 2023-11-02 21:53:20 +01:00 committed by Andreas Kling
parent e400682fb1
commit 4671520c0a
2 changed files with 42 additions and 1 deletions

View file

@ -140,7 +140,8 @@ private:
O(HasPrivateId, has_private_id) \
O(PutByValueWithThis, put_by_value_with_this) \
O(CopyObjectExcludingProperties, copy_object_excluding_properties) \
O(AsyncIteratorClose, async_iterator_close)
O(AsyncIteratorClose, async_iterator_close) \
O(Yield, yield)
# define DECLARE_COMPILE_OP(OpTitleCase, op_snake_case, ...) \
void compile_##op_snake_case(Bytecode::Op::OpTitleCase const&);
@ -160,6 +161,7 @@ private:
void store_accumulator(Assembler::Reg);
void compile_to_boolean(Assembler::Reg dst, Assembler::Reg src);
void compile_continuation(Optional<Bytecode::Label>, bool is_await);
void check_exception();
void handle_exception();