Index: src/ast-numbering.cc |
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc |
index a89b5fb60a298d674be4a9865570da38f3744641..cc615f6e4795643bfc00c139a46030b9c75e491a 100644 |
--- a/src/ast-numbering.cc |
+++ b/src/ast-numbering.cc |
@@ -65,21 +65,8 @@ class AstNumberingVisitor final : public AstVisitor { |
template <typename Node> |
void ReserveFeedbackSlots(Node* node) { |
- FeedbackVectorRequirements reqs = |
- node->ComputeFeedbackRequirements(isolate(), &ic_slot_cache_); |
- if (reqs.slots() > 0) { |
- node->SetFirstFeedbackSlot(FeedbackVectorSlot(properties_.slots())); |
- properties_.increase_slots(reqs.slots()); |
- } |
- if (reqs.ic_slots() > 0) { |
- int ic_slots = properties_.ic_slots(); |
- node->SetFirstFeedbackICSlot(FeedbackVectorICSlot(ic_slots), |
- &ic_slot_cache_); |
- properties_.increase_ic_slots(reqs.ic_slots()); |
- for (int i = 0; i < reqs.ic_slots(); i++) { |
- properties_.SetKind(ic_slots + i, node->FeedbackICSlotKind(i)); |
- } |
- } |
+ node->AssignFeedbackVectorSlots(isolate(), properties_.get_spec(), |
+ &ic_slot_cache_); |
} |
BailoutReason dont_optimize_reason() const { return dont_optimize_reason_; } |