summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/JavaScriptCore/debugger
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-10 12:24:54 (GMT)
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-10 12:24:54 (GMT)
commitb62ab93d001d2f3238e24faa133720cb877e3023 (patch)
treece27873972a150c6280b60fc8ff26b78496120d4 /src/3rdparty/webkit/JavaScriptCore/debugger
parent7c2621743bd71aac11bba3d6061707cc2d95b0f9 (diff)
downloadQt-b62ab93d001d2f3238e24faa133720cb877e3023.zip
Qt-b62ab93d001d2f3238e24faa133720cb877e3023.tar.gz
Qt-b62ab93d001d2f3238e24faa133720cb877e3023.tar.bz2
Debugger API develop. New events corresponding to QtScript old-backend
where created: scriptUnload, scriptLoad, contextPush, contextPop, evaluateStart, evaluateStop, exceptionThrow, exceptionCatch, functionExit Some of them are really similar to standard JSC events but not enough to implement correct old QtScript debugger behavior. Default empty implementation where created (the new events are not pure virtual methods as the others)
Diffstat (limited to 'src/3rdparty/webkit/JavaScriptCore/debugger')
-rw-r--r--src/3rdparty/webkit/JavaScriptCore/debugger/Debugger.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/debugger/Debugger.h b/src/3rdparty/webkit/JavaScriptCore/debugger/Debugger.h
index 0c75ecd..6d22318 100644
--- a/src/3rdparty/webkit/JavaScriptCore/debugger/Debugger.h
+++ b/src/3rdparty/webkit/JavaScriptCore/debugger/Debugger.h
@@ -40,6 +40,53 @@ namespace JSC {
void attach(JSGlobalObject*);
virtual void detach(JSGlobalObject*);
+#if PLATFORM(QT)
+#ifdef QT_BUILD_SCRIPT_LIB
+ virtual void scriptUnload(qint64 id)
+ {
+ UNUSED_PARAM(id);
+ };
+ virtual void scriptLoad(qint64 id, const UString &program,
+ const UString &fileName, int baseLineNumber)
+ {
+ UNUSED_PARAM(id);
+ UNUSED_PARAM(program);
+ UNUSED_PARAM(fileName);
+ UNUSED_PARAM(baseLineNumber);
+ };
+ virtual void contextPush() {};
+ virtual void contextPop() {};
+
+ virtual void evaluateStart(intptr_t sourceID)
+ {
+ UNUSED_PARAM(sourceID);
+ }
+ virtual void evaluateStop(const JSC::JSValue& returnValue, intptr_t sourceID)
+ {
+ UNUSED_PARAM(sourceID);
+ UNUSED_PARAM(returnValue);
+ }
+
+ virtual void exceptionThrow(const JSC::DebuggerCallFrame& frame, intptr_t sourceID, bool hasHandler)
+ {
+ UNUSED_PARAM(frame);
+ UNUSED_PARAM(sourceID);
+ UNUSED_PARAM(hasHandler);
+ };
+ virtual void exceptionCatch(const JSC::DebuggerCallFrame& frame, intptr_t sourceID)
+ {
+ UNUSED_PARAM(frame);
+ UNUSED_PARAM(sourceID);
+ };
+
+ virtual void functionExit(const JSC::JSValue& returnValue, intptr_t sourceID)
+ {
+ UNUSED_PARAM(returnValue);
+ UNUSED_PARAM(sourceID);
+ };
+#endif
+#endif
+
virtual void sourceParsed(ExecState*, const SourceCode&, int errorLine, const UString& errorMsg) = 0;
virtual void exception(const DebuggerCallFrame&, intptr_t sourceID, int lineno) = 0;
virtual void atStatement(const DebuggerCallFrame&, intptr_t sourceID, int lineno, int column) = 0;