Chromium Code Reviews| Index: src/prettyprinter.cc |
| diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc |
| index e71489fa7f2c401111468f7de94d55bf24075a4a..89af59377a3ce6bfb931dee7e300b1d9bfb63b94 100644 |
| --- a/src/prettyprinter.cc |
| +++ b/src/prettyprinter.cc |
| @@ -360,6 +360,11 @@ void CallPrinter::VisitSpread(Spread* node) { |
| } |
| +void CallPrinter::VisitEmptyParentheses(EmptyParentheses* node) { |
| + UNREACHABLE(); |
| +} |
| + |
| + |
| void CallPrinter::VisitThisFunction(ThisFunction* node) {} |
| @@ -845,6 +850,11 @@ void PrettyPrinter::VisitSpread(Spread* node) { |
| } |
| +void PrettyPrinter::VisitEmptyParentheses(EmptyParentheses* node) { |
| + Print("<empty-parentheses>"); |
|
rossberg
2015/08/25 12:55:56
I'd print "()" here.
|
| +} |
| + |
| + |
| void PrettyPrinter::VisitThisFunction(ThisFunction* node) { |
| Print("<this-function>"); |
| } |
| @@ -1565,6 +1575,11 @@ void AstPrinter::VisitSpread(Spread* node) { |
| } |
| +void AstPrinter::VisitEmptyParentheses(EmptyParentheses* node) { |
| + IndentedScope indent(this, "()"); |
| +} |
| + |
| + |
| void AstPrinter::VisitThisFunction(ThisFunction* node) { |
| IndentedScope indent(this, "THIS-FUNCTION"); |
| } |