mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibJS: Disable bytecode optimizations by default
The optimization passes are not stable, which makes test262 flaky. Address this by introducing a new OptimizationLevel::None and making it the default. This removes all the flakiness from test262 in my testing. We can enable optimizations by default again once they have been made stable. :^)
This commit is contained in:
parent
8fc4c5d27b
commit
d9b543da68
Notes:
sideshowbarker
2024-07-18 03:35:30 +09:00
Author: https://github.com/awesomekling
Commit: d9b543da68
2 changed files with 6 additions and 2 deletions
|
@ -66,8 +66,10 @@ public:
|
|||
Executable const& current_executable() { return *m_current_executable; }
|
||||
|
||||
enum class OptimizationLevel {
|
||||
Default,
|
||||
None,
|
||||
Optimize,
|
||||
__Count,
|
||||
Default = None,
|
||||
};
|
||||
static Bytecode::PassManager& optimization_pipeline(OptimizationLevel = OptimizationLevel::Default);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue