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

Unified Diff: src/execution.h

Issue 1021523002: Check for GC interrupt in JSON parser. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comment Created 5 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
« no previous file with comments | « no previous file | src/execution.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/execution.h
diff --git a/src/execution.h b/src/execution.h
index 47cbb08f03a9b191bef437c2fc5280912de21097..870bb9118465fbad32460d42827158f1908ef1c5 100644
--- a/src/execution.h
+++ b/src/execution.h
@@ -197,6 +197,10 @@ class StackGuard FINAL {
// stack overflow, then handle the interruption accordingly.
Object* HandleInterrupts();
+ bool InterruptRequested() { return GetCurrentStackPosition() < climit(); }
+
+ void CheckAndHandleGCInterrupt();
+
private:
StackGuard();
« no previous file with comments | « no previous file | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698