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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 break; | 864 break; |
865 case HandlerTable::CAUGHT: | 865 case HandlerTable::CAUGHT: |
866 prediction = "CAUGHT"; | 866 prediction = "CAUGHT"; |
867 break; | 867 break; |
868 case HandlerTable::PROMISE: | 868 case HandlerTable::PROMISE: |
869 prediction = "PROMISE"; | 869 prediction = "PROMISE"; |
870 break; | 870 break; |
871 case HandlerTable::DESUGARING: | 871 case HandlerTable::DESUGARING: |
872 prediction = "DESUGARING"; | 872 prediction = "DESUGARING"; |
873 break; | 873 break; |
| 874 case HandlerTable::ASYNC_AWAIT: |
| 875 prediction = "ASYNC_AWAIT"; |
| 876 break; |
874 } | 877 } |
875 Print(" %s\n", prediction); | 878 Print(" %s\n", prediction); |
876 } | 879 } |
877 | 880 |
878 void AstPrinter::VisitDebuggerStatement(DebuggerStatement* node) { | 881 void AstPrinter::VisitDebuggerStatement(DebuggerStatement* node) { |
879 IndentedScope indent(this, "DEBUGGER", node->position()); | 882 IndentedScope indent(this, "DEBUGGER", node->position()); |
880 } | 883 } |
881 | 884 |
882 | 885 |
883 void AstPrinter::VisitFunctionLiteral(FunctionLiteral* node) { | 886 void AstPrinter::VisitFunctionLiteral(FunctionLiteral* node) { |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 | 1187 |
1185 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) { | 1188 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) { |
1186 Visit(node->expression()); | 1189 Visit(node->expression()); |
1187 } | 1190 } |
1188 | 1191 |
1189 | 1192 |
1190 #endif // DEBUG | 1193 #endif // DEBUG |
1191 | 1194 |
1192 } // namespace internal | 1195 } // namespace internal |
1193 } // namespace v8 | 1196 } // namespace v8 |
OLD | NEW |