mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-22 19:12:53 +00:00
JSSpecCompiler: Add control flow building pass
This commit is contained in:
parent
c74e2d04d1
commit
ff44aea917
Notes:
sideshowbarker
2024-07-16 18:26:46 +09:00
Author: https://github.com/DanShaders
Commit: ff44aea917
Pull-request: https://github.com/SerenityOS/serenity/pull/22222
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