OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/ast/prettyprinter.h" | 5 #include "src/ast/prettyprinter.h" |
6 | 6 |
7 #include <stdarg.h> | 7 #include <stdarg.h> |
8 | 8 |
9 #include "src/ast/ast-value-factory.h" | 9 #include "src/ast/ast-value-factory.h" |
10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 switch (node->catch_prediction()) { | 890 switch (node->catch_prediction()) { |
891 case HandlerTable::UNCAUGHT: | 891 case HandlerTable::UNCAUGHT: |
892 prediction = "UNCAUGHT"; | 892 prediction = "UNCAUGHT"; |
893 break; | 893 break; |
894 case HandlerTable::CAUGHT: | 894 case HandlerTable::CAUGHT: |
895 prediction = "CAUGHT"; | 895 prediction = "CAUGHT"; |
896 break; | 896 break; |
897 case HandlerTable::PROMISE: | 897 case HandlerTable::PROMISE: |
898 prediction = "PROMISE"; | 898 prediction = "PROMISE"; |
899 break; | 899 break; |
| 900 case HandlerTable::DESUGARING: |
| 901 prediction = "DESUGARING"; |
| 902 break; |
900 } | 903 } |
901 Print(" %s\n", prediction); | 904 Print(" %s\n", prediction); |
902 } | 905 } |
903 | 906 |
904 void AstPrinter::VisitDebuggerStatement(DebuggerStatement* node) { | 907 void AstPrinter::VisitDebuggerStatement(DebuggerStatement* node) { |
905 IndentedScope indent(this, "DEBUGGER", node->position()); | 908 IndentedScope indent(this, "DEBUGGER", node->position()); |
906 } | 909 } |
907 | 910 |
908 | 911 |
909 void AstPrinter::VisitFunctionLiteral(FunctionLiteral* node) { | 912 void AstPrinter::VisitFunctionLiteral(FunctionLiteral* node) { |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 | 1190 |
1188 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) { | 1191 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) { |
1189 Visit(node->expression()); | 1192 Visit(node->expression()); |
1190 } | 1193 } |
1191 | 1194 |
1192 | 1195 |
1193 #endif // DEBUG | 1196 #endif // DEBUG |
1194 | 1197 |
1195 } // namespace internal | 1198 } // namespace internal |
1196 } // namespace v8 | 1199 } // namespace v8 |
OLD | NEW |