| Index: src/ast/prettyprinter.cc
|
| diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc
|
| index a411b7066af3cfdb3b9e471506ab13ad7ea246f0..d3218729fb032ba46d8decc198d072acb12c8267 100644
|
| --- a/src/ast/prettyprinter.cc
|
| +++ b/src/ast/prettyprinter.cc
|
| @@ -9,6 +9,8 @@
|
| #include "src/ast/ast-value-factory.h"
|
| #include "src/ast/scopes.h"
|
| #include "src/base/platform/platform.h"
|
| +#include "src/execution.h"
|
| +#include "src/isolate.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -21,7 +23,7 @@ CallPrinter::CallPrinter(Isolate* isolate, bool is_builtin)
|
| found_ = false;
|
| done_ = false;
|
| is_builtin_ = is_builtin;
|
| - InitializeAstVisitor(isolate);
|
| + InitializeAstVisitor(isolate->stack_guard()->real_climit());
|
| }
|
|
|
| Handle<String> CallPrinter::Print(FunctionLiteral* program, int position) {
|
| @@ -569,7 +571,7 @@ class IndentedScope BASE_EMBEDDED {
|
|
|
| AstPrinter::AstPrinter(Isolate* isolate)
|
| : isolate_(isolate), output_(nullptr), size_(0), pos_(0), indent_(0) {
|
| - InitializeAstVisitor(isolate);
|
| + InitializeAstVisitor(isolate->stack_guard()->real_climit());
|
| }
|
|
|
| AstPrinter::~AstPrinter() {
|
|
|