Index: src/interpreter/interpreter-assembler.cc |
diff --git a/src/interpreter/interpreter-assembler.cc b/src/interpreter/interpreter-assembler.cc |
index a4fddffa16464d7c4a730de779c28158642ff351..1e8c37963dec1c84488a7ee4868d974888581eb9 100644 |
--- a/src/interpreter/interpreter-assembler.cc |
+++ b/src/interpreter/interpreter-assembler.cc |
@@ -938,6 +938,9 @@ Node* InterpreterAssembler::CallRuntimeN(Node* function_id, Node* context, |
} |
void InterpreterAssembler::UpdateInterruptBudget(Node* weight) { |
+ // TODO(rmcilroy): It might be worthwhile to only update the budget for |
+ // backwards branches. Those are distinguishable by the {JumpLoop} bytecode. |
+ |
Label ok(this), interrupt_check(this, Label::kDeferred), end(this); |
Node* budget_offset = |
IntPtrConstant(BytecodeArray::kInterruptBudgetOffset - kHeapObjectTag); |