mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:35:07 +00:00
JSSpecCompiler: Add control flow building pass
This commit is contained in:
parent
c74e2d04d1
commit
ff44aea917
10 changed files with 222 additions and 2 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibMain/Main.h>
|
||||
|
||||
#include "Compiler/Passes/CFGBuildingPass.h"
|
||||
#include "Compiler/Passes/FunctionCallCanonicalizationPass.h"
|
||||
#include "Compiler/Passes/IfBranchMergingPass.h"
|
||||
#include "Compiler/Passes/ReferenceResolvingPass.h"
|
||||
|
@ -100,6 +101,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
pipeline.add_compilation_pass<FunctionCallCanonicalizationPass>();
|
||||
pipeline.add_compilation_pass<IfBranchMergingPass>();
|
||||
pipeline.add_compilation_pass<ReferenceResolvingPass>();
|
||||
pipeline.add_compilation_pass<CFGBuildingPass>();
|
||||
|
||||
pipeline.for_each_step_in(passes_to_dump_ast, [](CompilationStepWithDumpOptions& step) {
|
||||
step.dump_ast = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue