| Index: src/compiler/js-inlining-heuristic.cc
|
| diff --git a/src/compiler/js-inlining-heuristic.cc b/src/compiler/js-inlining-heuristic.cc
|
| index 515618da759c7147f43e5be36ea2a7693f425015..68fded170090d8343e2fddd5f22b65eec1734502 100644
|
| --- a/src/compiler/js-inlining-heuristic.cc
|
| +++ b/src/compiler/js-inlining-heuristic.cc
|
| @@ -56,8 +56,11 @@ Reduction JSInliningHeuristic::Reduce(Node* node) {
|
|
|
| // Gather feedback on how often this call site has been hit before.
|
| CallFunctionParameters p = CallFunctionParametersOf(node->op());
|
| - CallICNexus nexus(p.feedback().vector(), p.feedback().slot());
|
| - int calls = nexus.ExtractCallCount();
|
| + int calls = -1; // Same default as CallICNexus::ExtractCallCount.
|
| + if (p.feedback().IsValid()) {
|
| + CallICNexus nexus(p.feedback().vector(), p.feedback().slot());
|
| + calls = nexus.ExtractCallCount();
|
| + }
|
|
|
| // ---------------------------------------------------------------------------
|
| // Everything above this line is part of the inlining heuristic.
|
|
|