Commit 70879048 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[turbofan] Ignore uninlineable functions when computing smallness

Change-Id: I94c29febf3f89d8b907dd879413d4a113ca1d0df
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1826723Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63997}
parent 99b75c11
......@@ -157,8 +157,8 @@ 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);
}
candidate_is_small = candidate_is_small && IsSmall(bytecode);
}
if (!can_inline_candidate) return NoChange();
......
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