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

Unified Diff: src/prettyprinter.h

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: All platforms Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: src/prettyprinter.h
diff --git a/src/prettyprinter.h b/src/prettyprinter.h
index c07421a05ad94a1932460c3e8140b2fb26a67749..76f6667ec7dd209e49496f9e2cb6e45cced34b75 100644
--- a/src/prettyprinter.h
+++ b/src/prettyprinter.h
@@ -13,7 +13,7 @@ namespace internal {
class CallPrinter : public AstVisitor {
public:
- explicit CallPrinter(Zone* zone);
+ explicit CallPrinter(Isolate* isolate, Zone* zone);
Michael Starzinger 2015/01/23 14:21:11 nit: No longer needs to be marked "explicit".
danno 2015/01/23 14:45:20 Done.
virtual ~CallPrinter();
// The following routine prints the node with position |position| into a
@@ -52,7 +52,7 @@ class CallPrinter : public AstVisitor {
class PrettyPrinter: public AstVisitor {
public:
- explicit PrettyPrinter(Zone* zone);
+ explicit PrettyPrinter(Isolate* isolate, Zone* zone);
Michael Starzinger 2015/01/23 14:21:11 nit: No longer needs to be marked "explicit".
danno 2015/01/23 14:45:20 Done.
virtual ~PrettyPrinter();
// The following routines print a node into a string.
@@ -64,7 +64,7 @@ class PrettyPrinter: public AstVisitor {
void Print(const char* format, ...);
// Print a node to stdout.
- static void PrintOut(Zone* zone, AstNode* node);
+ static void PrintOut(Isolate* isolate, Zone* zone, AstNode* node);
// Individual nodes
#define DECLARE_VISIT(type) void Visit##type(type* node) OVERRIDE;
@@ -98,7 +98,7 @@ class PrettyPrinter: public AstVisitor {
// Prints the AST structure
class AstPrinter: public PrettyPrinter {
public:
- explicit AstPrinter(Zone* zone);
+ explicit AstPrinter(Isolate* isolate, Zone* zone);
Michael Starzinger 2015/01/23 14:21:11 nit: No longer needs to be marked "explicit".
danno 2015/01/23 14:45:20 Done.
virtual ~AstPrinter();
const char* PrintProgram(FunctionLiteral* program);

Powered by Google App Engine
This is Rietveld 408576698