1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +00:00

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
parent 092ed1cc8a
commit 4c4e1e1aed
8 changed files with 184 additions and 0 deletions

View file

@ -3,6 +3,7 @@ set(SOURCES
AST/ASTPrinting.cpp
Compiler/FunctionCallCanonicalizationPass.cpp
Compiler/GenericASTPass.cpp
Compiler/IfBranchMergingPass.cpp
Parser/Lexer.cpp
Parser/ParseError.cpp
Parser/SpecParser.cpp