Commit 134180d4 authored by ishell's avatar ishell Committed by Commit bot

AST pretty printer fix.

It was broken by https://codereview.chromium.org/1376443002.

Review URL: https://codereview.chromium.org/1374923002

Cr-Commit-Position: refs/heads/master@{#31003}
parent ed110a17
......@@ -232,12 +232,6 @@ class AstNode: public ZoneObject {
FeedbackVectorSpec* spec,
ICSlotCache* cache) {}
// Each ICSlot stores a kind of IC which the participating node should know.
virtual FeedbackVectorSlotKind FeedbackICSlotKind(int index) {
UNREACHABLE();
return FeedbackVectorSlotKind::UNUSED;
}
private:
// Hidden to prevent accidental usage. It would have to load the
// current zone from the TLS.
......
......@@ -434,9 +434,7 @@ static int FormatICSlotNode(Vector<char>* buf, Expression* node,
const char* node_name, FeedbackVectorICSlot slot) {
int pos = SNPrintF(*buf, "%s", node_name);
if (!slot.IsInvalid()) {
const char* str =
TypeFeedbackVector::Kind2String(node->FeedbackICSlotKind(0));
pos = SNPrintF(*buf + pos, " ICSlot(%d, %s)", slot.ToInt(), str);
pos = SNPrintF(*buf + pos, " ICSlot(%d)", slot.ToInt());
}
return pos;
}
......
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