Reviewers: vsevik, yurys, aandrey,
Description:
Expose function CheckDebugBreak in the debugger api
It is needed by blink change:
https://codereview.chromium.org/473923002
BUG=
Please review this at https://codereview.chromium.org/473913002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+9, -0 lines):
M include/v8-debug.h
M src/api.cc
Index: include/v8-debug.h
diff --git a/include/v8-debug.h b/include/v8-debug.h
index
e72415952d97c02eae4e46b87b95c251377f2cd2..08dc5097e74952aa20a30fa14fbecc2b10a2cdda
100644
--- a/include/v8-debug.h
+++ b/include/v8-debug.h
@@ -167,6 +167,9 @@ class V8_EXPORT Debug {
// happened yet.
static void CancelDebugBreak(Isolate* isolate);
+ // Check if a debugger break is scheduled in the given isolate
+ static bool CheckDebugBreak(Isolate* isolate);
+
// Break execution of JavaScript in the given isolate (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
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index
aaf6865bc8e6044b551f4e3bf81751494b3159e7..c287062126d3e903e55002d0cf1c2dc2898a448b
100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -6907,6 +6907,12 @@ void Debug::CancelDebugBreak(Isolate* isolate) {
}
+bool Debug::CheckDebugBreak(Isolate* isolate) {
+ i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate);
+ return internal_isolate->stack_guard()->CheckDebugBreak();
+}
+
+
void Debug::DebugBreakForCommand(Isolate* isolate, ClientData* data) {
i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate);
internal_isolate->debug()->EnqueueDebugCommand(data);
--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.