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

Unified Diff: src/execution.cc

Issue 11142013: Add methods to allow resuming execution after calling TerminateExecution(). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years 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/execution.cc
===================================================================
--- src/execution.cc (revision 12718)
+++ src/execution.cc (working copy)
@@ -420,6 +420,17 @@
}
+void StackGuard::ResumeExecution() {
+ ASSERT(thread_local_.interrupt_flags_ & TERMINATE);
+ ExecutionAccess access(isolate_);
+ thread_local_.interrupt_flags_ &= ~static_cast<int>(TERMINATE);
Yang 2012/12/07 15:03:48 If I'm not mistaken, this is already being done in
+ if (!should_postpone_interrupts(access) && !has_pending_interrupts(access)) {
+ reset_limits(access);
+ }
+ isolate_->ResumeExecution();
+}
+
+
void StackGuard::TerminateExecution() {
ExecutionAccess access(isolate_);
thread_local_.interrupt_flags_ |= TERMINATE;

Powered by Google App Engine
This is Rietveld 408576698