summaryrefslogtreecommitdiff
path: root/deps/v8/src/ast/prettyprinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/ast/prettyprinter.h')
-rw-r--r--deps/v8/src/ast/prettyprinter.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/deps/v8/src/ast/prettyprinter.h b/deps/v8/src/ast/prettyprinter.h
index 71019fe264..e6f2766915 100644
--- a/deps/v8/src/ast/prettyprinter.h
+++ b/deps/v8/src/ast/prettyprinter.h
@@ -59,8 +59,8 @@ class CallPrinter final : public AstVisitor<CallPrinter> {
protected:
void PrintLiteral(Handle<Object> value, bool quote);
void PrintLiteral(const AstRawString* value, bool quote);
- void FindStatements(ZonePtrList<Statement>* statements);
- void FindArguments(ZonePtrList<Expression>* arguments);
+ void FindStatements(const ZonePtrList<Statement>* statements);
+ void FindArguments(const ZonePtrList<Expression>* arguments);
};
@@ -98,10 +98,10 @@ class AstPrinter final : public AstVisitor<AstPrinter> {
void PrintIndented(const char* txt);
void PrintIndentedVisit(const char* s, AstNode* node);
- void PrintStatements(ZonePtrList<Statement>* statements);
+ void PrintStatements(const ZonePtrList<Statement>* statements);
void PrintDeclarations(Declaration::List* declarations);
void PrintParameters(DeclarationScope* scope);
- void PrintArguments(ZonePtrList<Expression>* arguments);
+ void PrintArguments(const ZonePtrList<Expression>* arguments);
void PrintCaseClause(CaseClause* clause);
void PrintLiteralIndented(const char* info, Literal* literal, bool quote);
void PrintLiteralIndented(const char* info, const AstRawString* value,
@@ -112,8 +112,10 @@ class AstPrinter final : public AstVisitor<AstPrinter> {
const AstRawString* value);
void PrintLabelsIndented(ZonePtrList<const AstRawString>* labels,
const char* prefix = "");
- void PrintObjectProperties(ZonePtrList<ObjectLiteral::Property>* properties);
- void PrintClassProperties(ZonePtrList<ClassLiteral::Property>* properties);
+ void PrintObjectProperties(
+ const ZonePtrList<ObjectLiteral::Property>* properties);
+ void PrintClassProperties(
+ const ZonePtrList<ClassLiteral::Property>* properties);
void inc_indent() { indent_++; }
void dec_indent() { indent_--; }