Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: src/prettyprinter.h

Issue 1165613003: Fix issue with --print-ast and class expressions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed default case Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/prettyprinter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/prettyprinter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698