diff options
Diffstat (limited to 'deps/v8/src/compiler/js-inlining-heuristic.cc')
-rw-r--r-- | deps/v8/src/compiler/js-inlining-heuristic.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/v8/src/compiler/js-inlining-heuristic.cc b/deps/v8/src/compiler/js-inlining-heuristic.cc index cd5637b0c4..0e0508bcd4 100644 --- a/deps/v8/src/compiler/js-inlining-heuristic.cc +++ b/deps/v8/src/compiler/js-inlining-heuristic.cc @@ -121,7 +121,10 @@ void JSInliningHeuristic::Finalize() { bool JSInliningHeuristic::CandidateCompare::operator()( const Candidate& left, const Candidate& right) const { - return left.node != right.node && left.calls >= right.calls; + if (left.calls != right.calls) { + return left.calls > right.calls; + } + return left.node < right.node; } |