Commit ae9a39b0 authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Make the inlining heuristic deterministic.

Don't sort inline candidates by comparing Node pointers, where the order
depends on the allocation order and the concrete Zone memory layout at
runtime. Instead sort based on NodeId, which is deterministic.

R=mvstanton@chromium.org
BUG=v8:5267

Review-Url: https://codereview.chromium.org/2336113002
Cr-Commit-Position: refs/heads/master@{#39371}
parent 086f566e
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment