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_PRETTYPRINTER_H_ | 5 #ifndef V8_PRETTYPRINTER_H_ |
6 #define V8_PRETTYPRINTER_H_ | 6 #define V8_PRETTYPRINTER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void PrintStatements(ZoneList<Statement*>* statements); | 116 void PrintStatements(ZoneList<Statement*>* statements); |
117 void PrintDeclarations(ZoneList<Declaration*>* declarations); | 117 void PrintDeclarations(ZoneList<Declaration*>* declarations); |
118 void PrintParameters(Scope* scope); | 118 void PrintParameters(Scope* scope); |
119 void PrintArguments(ZoneList<Expression*>* arguments); | 119 void PrintArguments(ZoneList<Expression*>* arguments); |
120 void PrintCaseClause(CaseClause* clause); | 120 void PrintCaseClause(CaseClause* clause); |
121 void PrintLiteralIndented(const char* info, Handle<Object> value, bool quote); | 121 void PrintLiteralIndented(const char* info, Handle<Object> value, bool quote); |
122 void PrintLiteralWithModeIndented(const char* info, | 122 void PrintLiteralWithModeIndented(const char* info, |
123 Variable* var, | 123 Variable* var, |
124 Handle<Object> value); | 124 Handle<Object> value); |
125 void PrintLabelsIndented(ZoneList<const AstRawString*>* labels); | 125 void PrintLabelsIndented(ZoneList<const AstRawString*>* labels); |
| 126 void PrintProperties(ZoneList<ObjectLiteral::Property*>* properties); |
126 | 127 |
127 void inc_indent() { indent_++; } | 128 void inc_indent() { indent_++; } |
128 void dec_indent() { indent_--; } | 129 void dec_indent() { indent_--; } |
129 | 130 |
130 int indent_; | 131 int indent_; |
131 }; | 132 }; |
132 | 133 |
133 #endif // DEBUG | 134 #endif // DEBUG |
134 | 135 |
135 } } // namespace v8::internal | 136 } } // namespace v8::internal |
136 | 137 |
137 #endif // V8_PRETTYPRINTER_H_ | 138 #endif // V8_PRETTYPRINTER_H_ |
OLD | NEW |