Index: src/ast/prettyprinter.cc |
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc |
index b29eb88845d97dde10eaf24fad3f50844d1ef4e2..2f939554abfa3f68df9b96afb6616366acd21aa3 100644 |
--- a/src/ast/prettyprinter.cc |
+++ b/src/ast/prettyprinter.cc |
@@ -370,6 +370,11 @@ void CallPrinter::VisitEmptyParentheses(EmptyParentheses* node) { |
UNREACHABLE(); |
} |
+void CallPrinter::VisitGetIterator(GetIterator* node) { |
+ Print("GetIterator("); |
+ Find(node->iterable(), true); |
+ Print(")"); |
+} |
void CallPrinter::VisitThisFunction(ThisFunction* node) {} |
@@ -1181,6 +1186,10 @@ void AstPrinter::VisitEmptyParentheses(EmptyParentheses* node) { |
IndentedScope indent(this, "()", node->position()); |
} |
+void AstPrinter::VisitGetIterator(GetIterator* node) { |
+ IndentedScope indent(this, "GET-ITERATOR", node->position()); |
+ Visit(node->iterable()); |
+} |
void AstPrinter::VisitThisFunction(ThisFunction* node) { |
IndentedScope indent(this, "THIS-FUNCTION", node->position()); |