Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1111)

Unified Diff: src/compiler/js-inlining-heuristic.cc

Issue 2336113002: [turbofan] Make the inlining heuristic deterministic. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-inlining-heuristic.cc
diff --git a/src/compiler/js-inlining-heuristic.cc b/src/compiler/js-inlining-heuristic.cc
index 2870a8d15b6d6bb08b6e0e4abd3e3a56cf8ec616..05307df7097ef2939bb5d0a4f9b59bc943dcdbec 100644
--- a/src/compiler/js-inlining-heuristic.cc
+++ b/src/compiler/js-inlining-heuristic.cc
@@ -285,7 +285,7 @@ bool JSInliningHeuristic::CandidateCompare::operator()(
if (left.calls != right.calls) {
return left.calls > right.calls;
}
- return left.node < right.node;
+ return left.node->id() > right.node->id();
}
void JSInliningHeuristic::PrintCandidates() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698