From b62ab93d001d2f3238e24faa133720cb877e3023 Mon Sep 17 00:00:00 2001 From: Jedrzej Nowacki Date: Mon, 10 Aug 2009 14:24:54 +0200 Subject: 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) --- .../webkit/JavaScriptCore/debugger/Debugger.h | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) 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; -- cgit v0.12