Index: src/ast/ast.h |
diff --git a/src/ast/ast.h b/src/ast/ast.h |
index 596149db53d6a1164d74e87b7a42389d606c88e8..cc6a64390c9dd12c70a6bab1a4e7e70b0b242e77 100644 |
--- a/src/ast/ast.h |
+++ b/src/ast/ast.h |
@@ -11,7 +11,9 @@ |
#include "src/ast/variables.h" |
#include "src/bailout-reason.h" |
#include "src/base/flags.h" |
+#include "src/factory.h" |
#include "src/globals.h" |
+#include "src/isolate.h" |
#include "src/list.h" |
#include "src/parsing/token.h" |
#include "src/runtime/runtime.h" |
@@ -115,7 +117,6 @@ |
class BreakableStatement; |
class Expression; |
class IterationStatement; |
-class Isolate; |
class MaterializedLiteral; |
class Statement; |
class TypeFeedbackOracle; |
@@ -2903,6 +2904,11 @@ |
} \ |
\ |
private: \ |
+ void InitializeAstVisitor(Isolate* isolate) { \ |
+ stack_limit_ = isolate->stack_guard()->real_climit(); \ |
+ stack_overflow_ = false; \ |
+ } \ |
+ \ |
void InitializeAstVisitor(uintptr_t stack_limit) { \ |
stack_limit_ = stack_limit; \ |
stack_overflow_ = false; \ |
@@ -2931,6 +2937,11 @@ |
} \ |
\ |
private: \ |
+ void InitializeAstRewriter(Isolate* isolate) { \ |
+ InitializeAstVisitor(isolate); \ |
+ replacement_ = nullptr; \ |
+ } \ |
+ \ |
void InitializeAstRewriter(uintptr_t stack_limit) { \ |
InitializeAstVisitor(stack_limit); \ |
replacement_ = nullptr; \ |