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

Unified Diff: src/isolate.cc

Issue 339883002: Interrupts must not mask stack overflow. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/isolate.h ('k') | src/runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 5fd30eb12a513da0e70dd11b579708c553d7aca7..9ec3c9b2896b4bc294853e6cd82b929d55b51547 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2344,4 +2344,16 @@ void Isolate::RunMicrotasks() {
}
+bool StackLimitCheck::JsHasOverflowed() const {
+ StackGuard* stack_guard = isolate_->stack_guard();
+#ifdef USE_SIMULATOR
+ // The simulator uses a separate JS stack.
+ Address jssp_address = Simulator::current(isolate_)->get_sp();
+ uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address);
+ if (jssp < stack_guard->real_jslimit()) return true;
+#endif // USE_SIMULATOR
+ return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit();
+}
+
+
} } // namespace v8::internal
« no previous file with comments | « src/isolate.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698