aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/debugger/qv8debugservice.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-03-05 13:07:23 +0100
committerLars Knoll <lars.knoll@digia.com>2013-04-15 13:03:03 +0200
commite75f3e6bd2d30cc7237493b77d078831c63c9d3e (patch)
tree22f249ff9d278824e375dea84b8bc59d369fc488 /src/qml/debugger/qv8debugservice.cpp
parent2cd8a90bd4d171ed2404822b6046455a94d4b6ed (diff)
Fix compilation with v4vm's v8 compatibility headers
Some code is also commented out - it will disappear during the removal of the v8 code later. Change-Id: I46e07be47ed7d4bc12423a6348d674d2fca489f7 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/debugger/qv8debugservice.cpp')
-rw-r--r--src/qml/debugger/qv8debugservice.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/qml/debugger/qv8debugservice.cpp b/src/qml/debugger/qv8debugservice.cpp
index f41907a032..19008d9ede 100644
--- a/src/qml/debugger/qv8debugservice.cpp
+++ b/src/qml/debugger/qv8debugservice.cpp
@@ -88,6 +88,7 @@ void DebugMessageDispatchHandler()
QMetaObject::invokeMethod(v8ServiceInstancePtr, "processDebugMessages", Qt::QueuedConnection);
}
+/* ### FIXME: v4
void DebugMessageHandler(const v8::Debug::Message& message)
{
v8::DebugEvent event = message.GetEvent();
@@ -102,6 +103,7 @@ void DebugMessageHandler(const v8::Debug::Message& message)
v8ServiceInstancePtr->debugMessageHandler(QJSConverter::toString(message.GetJSON()));
}
+*/
class QV8DebugServicePrivate : public QQmlDebugServicePrivate
{
@@ -186,18 +188,20 @@ void QV8DebugService::signalEmitted(const QString &signal)
// executed in the gui thread
void QV8DebugService::init()
{
- v8::Debug::SetMessageHandler2(DebugMessageHandler);
- v8::Debug::SetDebugMessageDispatchHandler(DebugMessageDispatchHandler);
+// ### FIXME: v4
+// v8::Debug::SetMessageHandler2(DebugMessageHandler);
+// v8::Debug::SetDebugMessageDispatchHandler(DebugMessageDispatchHandler);
QV4Compiler::enableV4(false);
}
// executed in the gui thread
void QV8DebugService::scheduledDebugBreak(bool schedule)
{
- if (schedule)
- v8::Debug::DebugBreak();
- else
- v8::Debug::CancelDebugBreak();
+// ### FIXME: v4
+// if (schedule)
+// v8::Debug::DebugBreak();
+// else
+// v8::Debug::CancelDebugBreak();
}
// executed in the debugger thread
@@ -267,7 +271,7 @@ void QV8DebugService::messageReceived(const QByteArray &message)
void QV8DebugService::sendDebugMessage(const QString &message)
{
- v8::Debug::SendCommand(message.utf16(), message.size());
+// ### FIXME: v4 v8::Debug::SendCommand(message.utf16(), message.size());
}
void QV8DebugService::processDebugMessages()
@@ -275,7 +279,7 @@ void QV8DebugService::processDebugMessages()
Q_D(QV8DebugService);
v8::HandleScope handleScope;
v8::Context::Scope contextScope(d->engine->context());
- v8::Debug::ProcessDebugMessages();
+// ### FIXME: v4 v8::Debug::ProcessDebugMessages();
}
QByteArray QV8DebugServicePrivate::packMessage(const QString &type, const QString &message)