mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
LibJS/Bytecode: Add Await and AsyncIteratorClose instructions
This commit is contained in:
parent
b645f87b7a
commit
d66eb4e3ba
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