Commit a501e849 authored by Hao Xu's avatar Hao Xu Committed by V8 LUCI CQ

Fix duplicated function call in BytecodeBudgetInterruptFromBytecode()

Change-Id: I7b20a32973c7592c6e47477b1d98bb0d72b27e33
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3347571Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
Commit-Queue: Hao A Xu <hao.a.xu@intel.com>
Cr-Commit-Position: refs/heads/main@{#78487}
parent b8e8905b
...@@ -346,7 +346,6 @@ namespace { ...@@ -346,7 +346,6 @@ namespace {
void BytecodeBudgetInterruptFromBytecode(Isolate* isolate, void BytecodeBudgetInterruptFromBytecode(Isolate* isolate,
Handle<JSFunction> function) { Handle<JSFunction> function) {
function->SetInterruptBudget();
bool should_mark_for_optimization = function->has_feedback_vector(); bool should_mark_for_optimization = function->has_feedback_vector();
if (!function->has_feedback_vector()) { if (!function->has_feedback_vector()) {
IsCompiledScope is_compiled_scope( IsCompiledScope is_compiled_scope(
...@@ -357,6 +356,8 @@ void BytecodeBudgetInterruptFromBytecode(Isolate* isolate, ...@@ -357,6 +356,8 @@ void BytecodeBudgetInterruptFromBytecode(Isolate* isolate,
// OSR. When we OSR functions with lazy feedback allocation we want to have // OSR. When we OSR functions with lazy feedback allocation we want to have
// a non zero invocation count so we can inline functions. // a non zero invocation count so we can inline functions.
function->feedback_vector().set_invocation_count(1, kRelaxedStore); function->feedback_vector().set_invocation_count(1, kRelaxedStore);
} else {
function->SetInterruptBudget();
} }
if (CanCompileWithBaseline(isolate, function->shared()) && if (CanCompileWithBaseline(isolate, function->shared()) &&
!function->ActiveTierIsBaseline()) { !function->ActiveTierIsBaseline()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment