[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:
parent
b62bbd1637
commit
a8091a0554
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user