Chromium Code Reviews| 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; |