mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Handle FinishUnwind in GenerateCFG
This commit is contained in:
committed by
Ali Mohammad Pur
parent
6998b72d22
commit
a00c421d61
Notes:
sideshowbarker
2024-07-17 05:05:51 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/a00c421d61 Pull-request: https://github.com/SerenityOS/serenity/pull/15971 Reviewed-by: https://github.com/FireFox317 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/kleinesfilmroellchen ✅
@@ -90,6 +90,11 @@ void GenerateCFG::perform(PassPipelineExecutable& executable)
|
||||
enter_label(&resume_target, current_block);
|
||||
continue;
|
||||
}
|
||||
case FinishUnwind: {
|
||||
auto const& next_target = static_cast<Op::FinishUnwind const&>(instruction).next_target();
|
||||
enter_label(&next_target, current_block);
|
||||
continue;
|
||||
}
|
||||
default:
|
||||
// Otherwise, pop the current block off, it doesn't jump anywhere.
|
||||
iterators.take_last();
|
||||
|
||||
Reference in New Issue
Block a user