Revision: 5535
Author: [email protected]
Date: Mon Sep 27 08:09:55 2010
Log: Add Debug::CancelDebugBreak method to api
http://code.google.com/p/v8/source/detail?r=5535

Modified:
 /branches/bleeding_edge/include/v8-debug.h
 /branches/bleeding_edge/src/api.cc

=======================================
--- /branches/bleeding_edge/include/v8-debug.h  Wed Jul 14 01:23:35 2010
+++ /branches/bleeding_edge/include/v8-debug.h  Mon Sep 27 08:09:55 2010
@@ -253,9 +253,12 @@
   static bool SetDebugEventListener(v8::Handle<v8::Object> that,
                                     Handle<Value> data = Handle<Value>());

-  // Break execution of JavaScript.
+  // Schedule a debugger break to happen when JavaScript code is run.
   static void DebugBreak();

+  // Remove scheduled debugger break if it has not happened yet.
+  static void CancelDebugBreak();
+
   // Break execution of JavaScript (this method can be invoked from a
   // non-VM thread) for further client command execution on a VM
   // thread. Client data is then passed in EventDetails to
=======================================
--- /branches/bleeding_edge/src/api.cc  Mon Sep 27 03:29:25 2010
+++ /branches/bleeding_edge/src/api.cc  Mon Sep 27 08:09:55 2010
@@ -4263,6 +4263,11 @@
   if (!i::V8::IsRunning()) return;
   i::StackGuard::DebugBreak();
 }
+
+
+void Debug::CancelDebugBreak() {
+  i::StackGuard::Continue(i::DEBUGBREAK);
+}


 void Debug::DebugBreakForCommand(ClientData* data) {

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to