Index: src/compiler/js-inlining-heuristic.cc |
diff --git a/src/compiler/js-inlining-heuristic.cc b/src/compiler/js-inlining-heuristic.cc |
index 05307df7097ef2939bb5d0a4f9b59bc943dcdbec..c5ede0a35f73dad33a28a5dfffb2e94fdd340861 100644 |
--- a/src/compiler/js-inlining-heuristic.cc |
+++ b/src/compiler/js-inlining-heuristic.cc |
@@ -132,12 +132,8 @@ Reduction JSInliningHeuristic::Reduce(Node* node) { |
DCHECK_EQ(IrOpcode::kJSCallConstruct, node->opcode()); |
CallConstructParameters p = CallConstructParametersOf(node->op()); |
if (p.feedback().IsValid()) { |
- int const extra_index = |
- p.feedback().vector()->GetIndex(p.feedback().slot()) + 1; |
- Object* feedback_extra = p.feedback().vector()->get(extra_index); |
- if (feedback_extra->IsSmi()) { |
- candidate.calls = Smi::cast(feedback_extra)->value(); |
- } |
+ CallICNexus nexus(p.feedback().vector(), p.feedback().slot()); |
+ candidate.calls = nexus.ExtractCallCount(); |
} |
} |