Fix duplicated function call in BytecodeBudgetInterruptFromBytecode()
Change-Id: I7b20a32973c7592c6e47477b1d98bb0d72b27e33 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3347571 Reviewed-by: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Hao A Xu <hao.a.xu@intel.com> Cr-Commit-Position: refs/heads/main@{#78487}
This commit is contained in:
parent
b8e8905bed
commit
a501e8497b
@ -346,7 +346,6 @@ namespace {
|
||||
|
||||
void BytecodeBudgetInterruptFromBytecode(Isolate* isolate,
|
||||
Handle<JSFunction> function) {
|
||||
function->SetInterruptBudget();
|
||||
bool should_mark_for_optimization = function->has_feedback_vector();
|
||||
if (!function->has_feedback_vector()) {
|
||||
IsCompiledScope is_compiled_scope(
|
||||
@ -357,6 +356,8 @@ void BytecodeBudgetInterruptFromBytecode(Isolate* isolate,
|
||||
// OSR. When we OSR functions with lazy feedback allocation we want to have
|
||||
// a non zero invocation count so we can inline functions.
|
||||
function->feedback_vector().set_invocation_count(1, kRelaxedStore);
|
||||
} else {
|
||||
function->SetInterruptBudget();
|
||||
}
|
||||
if (CanCompileWithBaseline(isolate, function->shared()) &&
|
||||
!function->ActiveTierIsBaseline()) {
|
||||
|
Loading…
Reference in New Issue
Block a user