Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index c43b9138bb8c81c7fc1e4a7bdb9c8be6fae18e68..232cb739a1db52769d3ea182658c821ac105033c 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -616,6 +616,14 @@ void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
// ---------------------------------------------------------------------------- |
// Implementation of AstVisitor |
+bool AstVisitor::CheckStackOverflow() { |
+ if (stack_overflow_) return true; |
+ StackLimitCheck check(isolate_); |
+ if (!check.HasOverflowed()) return false; |
+ return (stack_overflow_ = true); |
+} |
+ |
+ |
void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) { |
for (int i = 0; i < declarations->length(); i++) { |
Visit(declarations->at(i)); |