[compiler] faster TurboFan tier-up for small functions

Trigger tier-up faster for small functions, while waiting longer
for big functions, while trying to keep the overall amount of
optimization roughly the same.

Change-Id: I279daa21e151e9db20340089f9fa111141c6e645
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3779910
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82026}
This commit is contained in:
Tobias Tebbi 2022-07-27 21:24:23 +00:00 committed by V8 LUCI CQ
parent 1036f176ab
commit c0aaa0d932

View File

@ -652,12 +652,12 @@ DEFINE_INT(interrupt_budget_for_maglev, 40 * KB,
"interrupt budget which should be used for the profiler counter")
// Tiering: Turbofan.
DEFINE_INT(interrupt_budget, 132 * KB,
DEFINE_INT(interrupt_budget, 66 * KB,
"interrupt budget which should be used for the profiler counter")
DEFINE_INT(ticks_before_optimization, 3,
"the number of times we have to go through the interrupt budget "
"before considering this function for optimization")
DEFINE_INT(bytecode_size_allowance_per_tick, 1100,
DEFINE_INT(bytecode_size_allowance_per_tick, 150,
"increases the number of ticks required for optimization by "
"bytecode.length/X")
DEFINE_INT(