Reviewers: yurys_ooo,

Description:
Postpone termination exceptions in debug scope.

[email protected]
BUG=v8:3404

Please review this at https://codereview.chromium.org/353393002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+7, -3 lines):
  M src/debug.h
  M src/debug.cc


Index: src/debug.cc
diff --git a/src/debug.cc b/src/debug.cc
index d99e6f54970accfd5b05e1aaea2afe3b10f42e68..3bd84021c50e121822f49f5184265a8581238307 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -3047,9 +3047,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;

Index: src/debug.h
diff --git a/src/debug.h b/src/debug.h
index c295df2654bcf1b30c878d8a900386ba7becd430..4e7194bc032b30421570f2590e35411355f53858 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -699,6 +699,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_;
 };




--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to