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

[turbofan] Be more verbose when failing monotonicity check.

R=jarin@chromium.org

Bug: chromium:906567
Change-Id: I280569e09529457814ebc1cb8f299a80aa40a6c4
Reviewed-on: https://chromium-review.googlesource.com/c/1345992Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57676}
parent 9a2298a9
......@@ -328,7 +328,14 @@ class Typer::Visitor : public Reducer {
current = Weaken(node, current, previous);
}
CHECK(previous.Is(current));
if (V8_UNLIKELY(!previous.Is(current))) {
std::ostringstream ostream;
previous.PrintTo(ostream);
ostream << " -> ";
current.PrintTo(ostream);
FATAL("UpdateType error for operator %s:\n%s\n",
IrOpcode::Mnemonic(node->opcode()), ostream.str().c_str());
}
NodeProperties::SetType(node, current);
if (!current.Is(previous)) {
......
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