Skip to content

Commit 4abfc96

Browse files
committed
[V8] Disable lazy compilation iff adaptive execution is disabled.
1 parent 2fe3425 commit 4abfc96

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/backend/V8Engine.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,16 +637,19 @@ void V8Engine::initialize()
637637
M_insist(not isolate_);
638638

639639
/*----- Set V8 flags. --------------------------------------------------------------------------------------------*/
640+
/* A documentation of these flags can be found at
641+
* https://chromium.googlesource.com/v8/v8/+/67180425bcecc021a3aa8df23b44afa531ab6630/src/flags/flag-definitions.h.*/
640642
std::ostringstream flags;
641643
flags << "--stack_size 1000000 ";
642644
if (options::wasm_adaptive) {
643645
flags << "--opt "
644646
<< "--liftoff "
645647
<< "--wasm-tier-up "
646648
<< "--wasm-dynamic-tiering "
647-
<< "--wasm-lazy-compilation ";
649+
<< "--wasm-lazy-compilation "; // compile code lazily at runtime if needed
648650
} else {
649-
flags << "--no-liftoff ";
651+
flags << "--no-liftoff "
652+
<< "--no-wasm-lazy-compilation "; // compile code before starting execution
650653
}
651654
if (options::cdt_port >= 1024) {
652655
flags << "--wasm-bounds-checks "

0 commit comments

Comments
 (0)