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

Unified Diff: src/ast/prettyprinter.cc

Issue 2301423002: includes: Make ast.h not need isolate.h any more. (Closed)
Patch Set: rebased Created 4 years, 3 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
« no previous file with comments | « src/ast/modules.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « src/ast/modules.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698