Commit f63f64ca authored by vegorov's avatar vegorov Committed by Commit bot

Fix positions printing in compiler/graph-visualizer.cc.

We are printing `inlining(...), pos:offset` where we should print `pos:inlining(...), offset`.

BUG=

Review-Url: https://codereview.chromium.org/2586823002
Cr-Commit-Position: refs/heads/master@{#41786}
parent 06ea4a2c
......@@ -497,10 +497,11 @@ void GraphC1Visualizer::PrintSchedule(const char* phase,
if (positions != nullptr) {
SourcePosition position = positions->GetSourcePosition(node);
if (position.IsKnown()) {
os_ << " pos:";
if (position.isInlined()) {
os_ << "inlining(" << position.InliningId() << "),";
}
os_ << " pos:" << position.ScriptOffset();
os_ << position.ScriptOffset();
}
}
os_ << " <|@\n";
......
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