mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
js: Force optimizations when setting the -p flag
This commit is contained in:
parent
0fc673e759
commit
35db0c5e18
Notes:
sideshowbarker
2024-07-17 05:06:13 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 35db0c5e18
Pull-request: https://github.com/SerenityOS/serenity/pull/15971
Reviewed-by: https://github.com/FireFox317
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ static ErrorOr<bool> parse_and_run(JS::Interpreter& interpreter, StringView sour
|
||||||
auto executable = executable_result.release_value();
|
auto executable = executable_result.release_value();
|
||||||
executable->name = source_name;
|
executable->name = source_name;
|
||||||
if (s_opt_bytecode) {
|
if (s_opt_bytecode) {
|
||||||
auto& passes = JS::Bytecode::Interpreter::optimization_pipeline();
|
auto& passes = JS::Bytecode::Interpreter::optimization_pipeline(JS::Bytecode::Interpreter::OptimizationLevel::Optimize);
|
||||||
passes.perform(*executable);
|
passes.perform(*executable);
|
||||||
dbgln("Optimisation passes took {}us", passes.elapsed());
|
dbgln("Optimisation passes took {}us", passes.elapsed());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue