From 70879048fa5164991929706f678997d69509f325 Mon Sep 17 00:00:00 2001 From: Georg Neis Date: Thu, 26 Sep 2019 16:18:33 +0200 Subject: [PATCH] [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 Commit-Queue: Georg Neis Cr-Commit-Position: refs/heads/master@{#63997} --- src/compiler/js-inlining-heuristic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/js-inlining-heuristic.cc b/src/compiler/js-inlining-heuristic.cc index ae271b3af9..011881bc5b 100644 --- a/src/compiler/js-inlining-heuristic.cc +++ b/src/compiler/js-inlining-heuristic.cc @@ -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();