mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS/Bytecode: Add Await and AsyncIteratorClose instructions
This commit is contained in:
parent
b645f87b7a
commit
d66eb4e3ba
Notes:
sideshowbarker
2024-07-16 23:52:22 +09:00
Author: https://github.com/Lubrsi
Commit: d66eb4e3ba
Pull-request: https://github.com/SerenityOS/serenity/pull/19934
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
4 changed files with 95 additions and 0 deletions
|
@ -92,6 +92,12 @@ static void generate_cfg_for_block(BasicBlock const& current_block, PassPipeline
|
|||
}
|
||||
return;
|
||||
}
|
||||
case Await: {
|
||||
auto const& continuation = static_cast<Op::Await const&>(instruction).continuation();
|
||||
executable.exported_blocks->set(&continuation.block());
|
||||
enter_label(continuation, current_block);
|
||||
return;
|
||||
}
|
||||
case EnterUnwindContext: {
|
||||
auto entry_point = static_cast<Op::EnterUnwindContext const&>(instruction).entry_point();
|
||||
auto handler_target = static_cast<Op::EnterUnwindContext const&>(instruction).handler_target();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue