Postpone termination exceptions in debug scope.

R=yurys@chromium.org
BUG=v8:3408
LOG=Y

Review URL: https://codereview.chromium.org/353393002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22144 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2014-07-02 08:15:52 +00:00
parent ae017be69c
commit ed693ecae3
2 changed files with 7 additions and 3 deletions

View File

@ -3074,9 +3074,12 @@ void Debug::ProcessDebugMessages(bool debug_command_only) {
}
DebugScope::DebugScope(Debug* debug) : debug_(debug),
prev_(debug->debugger_entry()),
save_(debug_->isolate_) {
DebugScope::DebugScope(Debug* debug)
: debug_(debug),
prev_(debug->debugger_entry()),
save_(debug_->isolate_),
no_termination_exceptons_(debug_->isolate_,
StackGuard::TERMINATE_EXECUTION) {
// Link recursive debugger entry.
debug_->thread_local_.current_debug_scope_ = this;

View File

@ -702,6 +702,7 @@ class DebugScope BASE_EMBEDDED {
int break_id_; // Previous break id.
bool failed_; // Did the debug context fail to load?
SaveContext save_; // Saves previous context.
PostponeInterruptsScope no_termination_exceptons_;
};