Commit b47097d8 authored by Pan, Tao's avatar Pan, Tao Committed by Commit Bot

[turbofan] Improve --trace-turbo-inlining

Add inlined bytecode size to candidate print, both bytecode size and
inlined bytecode size decide whether candidate to be inlined.

Change-Id: I6d659bb59819b0e9daad5289f47f329aa3ce9f7e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2191631Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67730}
parent cf83949e
......@@ -784,6 +784,13 @@ void JSInliningHeuristic::PrintCandidates() {
os << " - target: " << shared;
if (candidate.bytecode[i].has_value()) {
os << ", bytecode size: " << candidate.bytecode[i]->length();
if (candidate.functions[i].has_value()) {
JSFunctionRef function = candidate.functions[i].value();
if (function.IsOptimized()) {
os << ", existing opt code's inlined bytecode size: "
<< function.code().inlined_bytecode_size();
}
}
} else {
os << ", no bytecode";
}
......
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