[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}
This commit is contained in:
parent
086f566ed8
commit
ae9a39b010
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user