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

Unified Diff: src/isolate.h

Issue 178073002: Raise StackOverflow during bootstrapping (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Raise StackOverflow during bootstrapping Created 6 years, 9 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
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index ef1dd30b227b1ec9a263d27c85ce1ec940715b32..b1c1b48b1a9b09310d9a09ce27d8b84a49a998ea 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1449,6 +1449,11 @@ class StackLimitCheck BASE_EMBEDDED {
StackGuard* stack_guard = isolate_->stack_guard();
return (reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit());
}
+ bool WillOverflow(uint32_t additionalUsage) const {
+ StackGuard* stack_guard = isolate_->stack_guard();
+ return (reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit() +
+ additionalUsage);
+ }
private:
Isolate* isolate_;
};
« no previous file with comments | « src/bootstrapper.cc ('k') | test/cctest/test-api.cc » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698