AST pretty printer fix.
authorishell <ishell@chromium.org>
Tue, 29 Sep 2015 12:22:39 +0000 (05:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 29 Sep 2015 12:23:03 +0000 (12:23 +0000)
It was broken by https://codereview.chromium.org/1376443002.

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

Cr-Commit-Position: refs/heads/master@{#31003}

src/ast.h
src/prettyprinter.cc

index bc29920df885230d6a40c79103a9bdcc972d8046..4764918849dfe2aa6097dac6df94dea07edb5c74 100644 (file)
--- a/src/ast.h
+++ b/src/ast.h
@@ -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.
index 282057d739c10bc3c474c9812908cf051b51ea32..59db57ac7e0b93647fa6f459b592b0f2392293f5 100644 (file)
@@ -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;
 }