mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibJS/JIT: Compile the Await instruction
This commit is contained in:
parent
4671520c0a
commit
c810d4784e
Notes:
sideshowbarker
2024-07-17 03:30:41 +09:00
Author: https://github.com/skyrising Commit: https://github.com/SerenityOS/serenity/commit/c810d4784e Pull-request: https://github.com/SerenityOS/serenity/pull/21755
2 changed files with 7 additions and 1 deletions
|
@ -1724,6 +1724,11 @@ void Compiler::compile_yield(Bytecode::Op::Yield const& op)
|
|||
compile_continuation(op.continuation(), false);
|
||||
}
|
||||
|
||||
void Compiler::compile_await(Bytecode::Op::Await const& op)
|
||||
{
|
||||
compile_continuation(op.continuation(), true);
|
||||
}
|
||||
|
||||
void Compiler::jump_to_exit()
|
||||
{
|
||||
m_assembler.jump(m_exit_label);
|
||||
|
|
|
@ -141,7 +141,8 @@ private:
|
|||
O(PutByValueWithThis, put_by_value_with_this) \
|
||||
O(CopyObjectExcludingProperties, copy_object_excluding_properties) \
|
||||
O(AsyncIteratorClose, async_iterator_close) \
|
||||
O(Yield, yield)
|
||||
O(Yield, yield) \
|
||||
O(Await, await)
|
||||
|
||||
# define DECLARE_COMPILE_OP(OpTitleCase, op_snake_case, ...) \
|
||||
void compile_##op_snake_case(Bytecode::Op::OpTitleCase const&);
|
||||
|
|
Loading…
Reference in a new issue