mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibJS: Add JumpUndefined bytecode
This commit is contained in:
parent
3ee627909a
commit
f39ab2e60a
4 changed files with 31 additions and 1 deletions
|
@ -58,7 +58,7 @@ void GenerateCFG::perform(PassPipelineExecutable& executable)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (instruction.type() == Instruction::Type::JumpConditional || instruction.type() == Instruction::Type::JumpNullish) {
|
||||
if (instruction.type() == Instruction::Type::JumpConditional || instruction.type() == Instruction::Type::JumpNullish || instruction.type() == Instruction::Type::JumpUndefined) {
|
||||
auto& true_target = static_cast<Op::Jump const&>(instruction).true_target();
|
||||
enter_label(true_target, current_block);
|
||||
auto& false_target = static_cast<Op::Jump const&>(instruction).false_target();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue