Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1224)

Unified Diff: src/api.cc

Issue 20491: Add host callback for debug break.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8-debug.h ('k') | src/debug.h » ('j') | src/debug.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
===================================================================
--- src/api.cc (revision 1312)
+++ src/api.cc (working copy)
@@ -2924,6 +2924,19 @@
}
+void Debug::SetHostDispatchHandler(v8::DebugHostDispatchHandler handler,
+ void* data) {
+ EnsureInitialized("v8::Debug::SetHostDispatchHandler");
+ i::Debugger::SetHostDispatchHandler(handler, data);
+}
+
+
+void Debug::SendHostDispatch(void* dispatch) {
+ if (!i::V8::HasBeenSetup()) return;
+ i::Debugger::ProcessHostDispatch(dispatch);
+}
+
+
Handle<Value> Debug::Call(v8::Handle<v8::Function> fun,
v8::Handle<v8::Value> data) {
if (!i::V8::HasBeenSetup()) return Handle<Value>();
« no previous file with comments | « include/v8-debug.h ('k') | src/debug.h » ('j') | src/debug.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698