| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 | 1166 |
| 1164 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) { | 1167 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) { |
| 1165 Visit(node->expression()); | 1168 Visit(node->expression()); |
| 1166 } | 1169 } |
| 1167 | 1170 |
| 1168 | 1171 |
| 1169 #endif // DEBUG | 1172 #endif // DEBUG |
| 1170 | 1173 |
| 1171 } // namespace internal | 1174 } // namespace internal |
| 1172 } // namespace v8 | 1175 } // namespace v8 |
| OLD | NEW |