s390x: [baseline] fix interrupt budge handling

Change-Id: If34e7927b8d243a22cbcc0e717541c237993ef4e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3470563
Reviewed-by: Milad Farazmand <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/main@{#79145}
This commit is contained in:
Junliang Yan 2022-02-17 08:36:00 -05:00 committed by V8 LUCI CQ
parent 53ed0530cd
commit f146851da5

View File

@ -476,7 +476,7 @@ void BaselineAssembler::AddToInterruptBudgetAndJumpIfNotExceeded(
interrupt_budget, interrupt_budget,
FieldMemOperand(feedback_cell, FeedbackCell::kInterruptBudgetOffset)); FieldMemOperand(feedback_cell, FeedbackCell::kInterruptBudgetOffset));
// Remember to set flags as part of the add! // Remember to set flags as part of the add!
__ AddU32(interrupt_budget, Operand(weight)); __ AddS32(interrupt_budget, Operand(weight));
__ StoreU32( __ StoreU32(
interrupt_budget, interrupt_budget,
FieldMemOperand(feedback_cell, FeedbackCell::kInterruptBudgetOffset), r0); FieldMemOperand(feedback_cell, FeedbackCell::kInterruptBudgetOffset), r0);
@ -501,7 +501,7 @@ void BaselineAssembler::AddToInterruptBudgetAndJumpIfNotExceeded(
interrupt_budget, interrupt_budget,
FieldMemOperand(feedback_cell, FeedbackCell::kInterruptBudgetOffset)); FieldMemOperand(feedback_cell, FeedbackCell::kInterruptBudgetOffset));
// Remember to set flags as part of the add! // Remember to set flags as part of the add!
__ AddU32(interrupt_budget, interrupt_budget, weight); __ AddS32(interrupt_budget, interrupt_budget, weight);
__ StoreU32( __ StoreU32(
interrupt_budget, interrupt_budget,
FieldMemOperand(feedback_cell, FeedbackCell::kInterruptBudgetOffset)); FieldMemOperand(feedback_cell, FeedbackCell::kInterruptBudgetOffset));