mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibJS/JIT: Only try JIT compilation when LIBJS_JIT is set in environment
Instead of adding a flag to everything everywhere, let's try using an environment variable this time.
This commit is contained in:
parent
ae273e8e20
commit
8eba60d015
Notes:
sideshowbarker
2024-07-18 00:54:03 +09:00
Author: https://github.com/awesomekling
Commit: 8eba60d015
Pull-request: https://github.com/SerenityOS/serenity/pull/21619
Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 1 additions and 1 deletions
|
@ -820,7 +820,7 @@ void Compiler::compile_set_variable(Bytecode::Op::SetVariable const& op)
|
||||||
|
|
||||||
OwnPtr<NativeExecutable> Compiler::compile(Bytecode::Executable& bytecode_executable)
|
OwnPtr<NativeExecutable> Compiler::compile(Bytecode::Executable& bytecode_executable)
|
||||||
{
|
{
|
||||||
if (getenv("LIBJS_NO_JIT"))
|
if (!getenv("LIBJS_JIT"))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
Compiler compiler { bytecode_executable };
|
Compiler compiler { bytecode_executable };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue