Commit 1e1e6951 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

When printing feedback vector, print precise binop and compare feedback.

Example before:
Slot #0 BinaryOp MONOMORPHIC
 [0]: 15
Slot #1 CompareOp MONOMORPHIC
 [1]: 1

And after:
Slot #0 BinaryOp MONOMORPHIC (NumberOrOddball)
 [0]: 15
Slot #1 CompareOp MONOMORPHIC (SignedSmall)
 [1]: 1

R=jarin@chromium.org

Bug: 
Change-Id: Ia22437c52289a13bcfd8847d6e5677ad44529b39
Reviewed-on: https://chromium-review.googlesource.com/725815Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48720}
parent d40756f8
......@@ -783,12 +783,14 @@ void FeedbackVector::FeedbackVectorPrint(std::ostream& os) { // NOLINT
}
case FeedbackSlotKind::kBinaryOp: {
BinaryOpICNexus nexus(this, slot);
os << Code::ICState2String(nexus.StateFromFeedback());
os << Code::ICState2String(nexus.StateFromFeedback()) << " ("
<< nexus.GetBinaryOperationFeedback() << ")";
break;
}
case FeedbackSlotKind::kCompareOp: {
CompareICNexus nexus(this, slot);
os << Code::ICState2String(nexus.StateFromFeedback());
os << Code::ICState2String(nexus.StateFromFeedback()) << " ("
<< nexus.GetCompareOperationFeedback() << ")";
break;
}
case FeedbackSlotKind::kForIn: {
......
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