Skip to content

Commit 4dba853

Browse files
alexmarkovCommit Queue
authored andcommitted
[vm,compiler] Count DispatchTableCalls in call site count for inlining heuristics
TEST=ci Change-Id: I820b2f6ff25bddea4ab27a6c9594e3e0bf9534a5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404901 Commit-Queue: Alexander Markov <[email protected]> Reviewed-by: Slava Egorov <[email protected]>
1 parent 240d87e commit 4dba853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/vm/compiler/backend/inliner.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class GraphInfoCollector : public ValueObject {
190190
instruction_count_ += current->ArgumentCount();
191191
}
192192
if (current->IsInstanceCall() || current->IsStaticCall() ||
193-
current->IsClosureCall()) {
193+
current->IsClosureCall() || current->IsDispatchTableCall()) {
194194
++call_site_count_;
195195
continue;
196196
}

0 commit comments

Comments
 (0)