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 "allocation.h" | 8 #include "src/allocation.h" |
9 #include "ast.h" | 9 #include "src/ast.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 #ifdef DEBUG | 14 #ifdef DEBUG |
15 | 15 |
16 class PrettyPrinter: public AstVisitor { | 16 class PrettyPrinter: public AstVisitor { |
17 public: | 17 public: |
18 explicit PrettyPrinter(Zone* zone); | 18 explicit PrettyPrinter(Zone* zone); |
19 virtual ~PrettyPrinter(); | 19 virtual ~PrettyPrinter(); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void dec_indent() { indent_--; } | 89 void dec_indent() { indent_--; } |
90 | 90 |
91 int indent_; | 91 int indent_; |
92 }; | 92 }; |
93 | 93 |
94 #endif // DEBUG | 94 #endif // DEBUG |
95 | 95 |
96 } } // namespace v8::internal | 96 } } // namespace v8::internal |
97 | 97 |
98 #endif // V8_PRETTYPRINTER_H_ | 98 #endif // V8_PRETTYPRINTER_H_ |
OLD | NEW |