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