JSSpecCompiler: Add if branch merging pass

It merges standalone IfBranch/ElseIfBranch nodes into IfElseIfChain
nodes. This will ease CFG generation later.
This commit is contained in:
Dan Klishch 2023-08-18 21:16:53 -04:00 committed by Andrew Kaster
commit 4c4e1e1aed
Notes: sideshowbarker 2024-07-17 06:51:10 +09:00
8 changed files with 184 additions and 0 deletions

View file

@ -29,6 +29,7 @@ class ReturnExpression;
class AssertExpression;
class IfBranch;
class ElseIfBranch;
class IfElseIfChain;
class TreeList;
class RecordDirectListInitialization;
class FunctionCall;