Skip to content

Commit

Permalink
[V8] Disable lazy compilation iff adaptive execution is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucagretscher committed May 19, 2023
1 parent 2fe3425 commit 4abfc96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/backend/V8Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,16 +637,19 @@ void V8Engine::initialize()
M_insist(not isolate_);

/*----- Set V8 flags. --------------------------------------------------------------------------------------------*/
/* A documentation of these flags can be found at
* https://chromium.googlesource.com/v8/v8/+/67180425bcecc021a3aa8df23b44afa531ab6630/src/flags/flag-definitions.h.*/
std::ostringstream flags;
flags << "--stack_size 1000000 ";
if (options::wasm_adaptive) {
flags << "--opt "
<< "--liftoff "
<< "--wasm-tier-up "
<< "--wasm-dynamic-tiering "
<< "--wasm-lazy-compilation ";
<< "--wasm-lazy-compilation "; // compile code lazily at runtime if needed
} else {
flags << "--no-liftoff ";
flags << "--no-liftoff "
<< "--no-wasm-lazy-compilation "; // compile code before starting execution
}
if (options::cdt_port >= 1024) {
flags << "--wasm-bounds-checks "
Expand Down

0 comments on commit 4abfc96

Please sign in to comment.