[turbofan] Ignore uninlineable functions when computing smallness

Change-Id: I94c29febf3f89d8b907dd879413d4a113ca1d0df
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1826723
Reviewed-by: Maya Lekova <mslekova@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63997}
This commit is contained in:
Georg Neis 2019-09-26 16:18:33 +02:00 committed by Commit Bot
parent 99b75c112a
commit 70879048fa

View File

@ -157,9 +157,9 @@ Reduction JSInliningHeuristic::Reduce(Node* node) {
if (candidate.can_inline_function[i]) {
can_inline_candidate = true;
candidate.total_size += bytecode.length();
}
candidate_is_small = candidate_is_small && IsSmall(bytecode);
}
}
if (!can_inline_candidate) return NoChange();
// Gather feedback on how often this call site has been hit before.