mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user