Disable TF in lite mode

When v8_enable_lite_mode is enabled at build-time, we can set
v8_enable_turbofan to false and thus completely omit TF from the
binary.

.. and we also piggy-back on top of existing lite-mode bots for
basic bot coverage.

Bug: v8:13629
Cq-Include-Trybots: luci.v8.try:v8_linux_arm_lite_compile_dbg,v8_linux_arm_lite_compile_rel,v8_linux_arm_lite_rel
Change-Id: I8104ccd918531714db80631c61c5134e856fafa6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4135887
Commit-Queue: Jakob Linke <jgruber@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/main@{#85242}
This commit is contained in:
Jakob Linke 2023-01-11 09:03:55 +01:00 committed by V8 LUCI CQ
parent 7b3b682818
commit d4bf44d820

View File

@ -150,8 +150,9 @@ if (v8_enable_webassembly == "") {
assert(!(v8_enable_webassembly && v8_enable_lite_mode), assert(!(v8_enable_webassembly && v8_enable_lite_mode),
"Webassembly is not available in lite mode.") "Webassembly is not available in lite mode.")
# Turbofan is enabled by default, except in lite mode.
if (v8_enable_turbofan == "") { if (v8_enable_turbofan == "") {
v8_enable_turbofan = true v8_enable_turbofan = !v8_enable_lite_mode
} }
assert(v8_enable_turbofan || !v8_enable_webassembly, assert(v8_enable_turbofan || !v8_enable_webassembly,
"Webassembly is not available when Turbofan is disabled.") "Webassembly is not available when Turbofan is disabled.")