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 #ifndef V8_AST_PRETTYPRINTER_H_ | 5 #ifndef V8_AST_PRETTYPRINTER_H_ |
6 #define V8_AST_PRETTYPRINTER_H_ | 6 #define V8_AST_PRETTYPRINTER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/base/compiler-specific.h" | 10 #include "src/base/compiler-specific.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void PrintDeclarations(ZoneList<Declaration*>* declarations); | 124 void PrintDeclarations(ZoneList<Declaration*>* declarations); |
125 void PrintParameters(Scope* scope); | 125 void PrintParameters(Scope* scope); |
126 void PrintArguments(ZoneList<Expression*>* arguments); | 126 void PrintArguments(ZoneList<Expression*>* arguments); |
127 void PrintCaseClause(CaseClause* clause); | 127 void PrintCaseClause(CaseClause* clause); |
128 void PrintLiteralIndented(const char* info, Handle<Object> value, bool quote); | 128 void PrintLiteralIndented(const char* info, Handle<Object> value, bool quote); |
129 void PrintLiteralWithModeIndented(const char* info, | 129 void PrintLiteralWithModeIndented(const char* info, |
130 Variable* var, | 130 Variable* var, |
131 Handle<Object> value); | 131 Handle<Object> value); |
132 void PrintLabelsIndented(ZoneList<const AstRawString*>* labels); | 132 void PrintLabelsIndented(ZoneList<const AstRawString*>* labels); |
133 void PrintProperties(ZoneList<ObjectLiteral::Property*>* properties); | 133 void PrintProperties(ZoneList<ObjectLiteral::Property*>* properties); |
| 134 void PrintTryStatement(TryStatement* try_statement); |
134 | 135 |
135 void inc_indent() { indent_++; } | 136 void inc_indent() { indent_++; } |
136 void dec_indent() { indent_--; } | 137 void dec_indent() { indent_--; } |
137 | 138 |
138 int indent_; | 139 int indent_; |
139 }; | 140 }; |
140 | 141 |
141 #endif // DEBUG | 142 #endif // DEBUG |
142 | 143 |
143 } // namespace internal | 144 } // namespace internal |
144 } // namespace v8 | 145 } // namespace v8 |
145 | 146 |
146 #endif // V8_AST_PRETTYPRINTER_H_ | 147 #endif // V8_AST_PRETTYPRINTER_H_ |
OLD | NEW |