[feedbackvector] Don't drop the interrupt budget when using a OneClosureCell

Change-Id: I783c41ca4192d686454728b7c8356935bc67cc98
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2675922
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Mythri Alle <mythria@chromium.org>
Auto-Submit: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72534}
This commit is contained in:
Toon Verwaest 2021-02-04 16:25:01 +01:00 committed by Commit Bot
parent b62bbd1637
commit a8091a0554

View File

@ -299,6 +299,8 @@ void JSFunction::EnsureClosureFeedbackCellArray(
if (function->raw_feedback_cell() == isolate->heap()->many_closures_cell()) {
Handle<FeedbackCell> feedback_cell =
isolate->factory()->NewOneClosureCell(feedback_cell_array);
feedback_cell->set_interrupt_budget(
function->raw_feedback_cell().interrupt_budget());
function->set_raw_feedback_cell(*feedback_cell, kReleaseStore);
} else {
function->raw_feedback_cell().set_value(*feedback_cell_array,