mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
js: Force optimizations when setting the -p flag
This commit is contained in:
parent
0fc673e759
commit
35db0c5e18
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();
|
||||
executable->name = source_name;
|
||||
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);
|
||||
dbgln("Optimisation passes took {}us", passes.elapsed());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue