| Index: src/prettyprinter.cc
|
| diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
|
| index 1824efa7f5986dcefbe36da13b2c3feb351103d9..b1bac4cd4a70028d00151504d084303d5741e16f 100644
|
| --- a/src/prettyprinter.cc
|
| +++ b/src/prettyprinter.cc
|
| @@ -38,11 +38,11 @@ namespace internal {
|
|
|
| #ifdef DEBUG
|
|
|
| -PrettyPrinter::PrettyPrinter() {
|
| +PrettyPrinter::PrettyPrinter(Isolate* isolate) {
|
| output_ = NULL;
|
| size_ = 0;
|
| pos_ = 0;
|
| - InitializeAstVisitor();
|
| + InitializeAstVisitor(isolate);
|
| }
|
|
|
|
|
| @@ -480,8 +480,8 @@ const char* PrettyPrinter::PrintProgram(FunctionLiteral* program) {
|
| }
|
|
|
|
|
| -void PrettyPrinter::PrintOut(AstNode* node) {
|
| - PrettyPrinter printer;
|
| +void PrettyPrinter::PrintOut(Isolate* isolate, AstNode* node) {
|
| + PrettyPrinter printer(isolate);
|
| PrintF("%s", printer.Print(node));
|
| }
|
|
|
| @@ -658,7 +658,7 @@ class IndentedScope BASE_EMBEDDED {
|
| //-----------------------------------------------------------------------------
|
|
|
|
|
| -AstPrinter::AstPrinter() : indent_(0) {
|
| +AstPrinter::AstPrinter(Isolate* isolate) : PrettyPrinter(isolate), indent_(0) {
|
| }
|
|
|
|
|
|
|