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.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/deps/v8/src/ast/prettyprinter.h b/deps/v8/src/ast/prettyprinter.h
index 58849a6052..97c2437877 100644
--- a/deps/v8/src/ast/prettyprinter.h
+++ b/deps/v8/src/ast/prettyprinter.h
@@ -64,7 +64,7 @@ class CallPrinter final : public AstVisitor<CallPrinter> {
class AstPrinter final : public AstVisitor<AstPrinter> {
public:
- explicit AstPrinter(Isolate* isolate);
+ explicit AstPrinter(uintptr_t stack_limit);
~AstPrinter();
// The following routines print a node into a string.
@@ -89,7 +89,8 @@ class AstPrinter final : public AstVisitor<AstPrinter> {
void PrintLabels(ZoneList<const AstRawString*>* labels);
void PrintLiteral(const AstRawString* value, bool quote);
- void PrintLiteral(MaybeHandle<Object> maybe_value, bool quote);
+ void PrintLiteral(const AstConsString* value, bool quote);
+ void PrintLiteral(Literal* literal, bool quote);
void PrintIndented(const char* txt);
void PrintIndentedVisit(const char* s, AstNode* node);
@@ -98,11 +99,13 @@ class AstPrinter final : public AstVisitor<AstPrinter> {
void PrintParameters(DeclarationScope* scope);
void PrintArguments(ZoneList<Expression*>* arguments);
void PrintCaseClause(CaseClause* clause);
- void PrintLiteralIndented(const char* info, MaybeHandle<Object> maybe_value,
+ void PrintLiteralIndented(const char* info, Literal* literal, bool quote);
+ void PrintLiteralIndented(const char* info, const AstRawString* value,
bool quote);
- void PrintLiteralWithModeIndented(const char* info,
- Variable* var,
- Handle<Object> value);
+ void PrintLiteralIndented(const char* info, const AstConsString* value,
+ bool quote);
+ void PrintLiteralWithModeIndented(const char* info, Variable* var,
+ const AstRawString* value);
void PrintLabelsIndented(ZoneList<const AstRawString*>* labels);
void PrintObjectProperties(ZoneList<ObjectLiteral::Property*>* properties);
void PrintClassProperties(ZoneList<ClassLiteral::Property*>* properties);
@@ -112,7 +115,6 @@ class AstPrinter final : public AstVisitor<AstPrinter> {
DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
- Isolate* isolate_;
char* output_; // output string buffer
int size_; // output_ size
int pos_; // current printing position