Commit a8091a05 authored by Toon Verwaest's avatar Toon Verwaest Committed by Commit Bot

[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: 's avatarMythri Alle <mythria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72534}
parent b62bbd16
......@@ -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,
......
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