mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:07:35 +00:00
LibJS/JIT: Compile the Yield instruction
This commit is contained in:
parent
e400682fb1
commit
4671520c0a
2 changed files with 42 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue