Index: src/compiler/js-inlining-heuristic.cc |
diff --git a/src/compiler/js-inlining-heuristic.cc b/src/compiler/js-inlining-heuristic.cc |
index cd5637b0c42ba0ffbb3b8e5b8338fe55cf5e5758..0e0508bcd4ccd64f600280580ab002dde1162d6c 100644 |
--- a/src/compiler/js-inlining-heuristic.cc |
+++ b/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; |
} |