1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

LibJS: Remove FinishUnwind instruction

This is essentially a LeaveUnwind+Jump, so lets just do that, that will
make it easier to optimize it, or see unwind state transitions
This commit is contained in:
Hendiadyoin1 2022-11-13 18:38:15 +01:00 committed by Ali Mohammad Pur
parent fc332be2e5
commit 133faa0acc
5 changed files with 2 additions and 46 deletions

View file

@ -90,11 +90,6 @@ 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();