diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-10 14:12:21 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-10 14:12:21 (GMT) |
commit | f5af011ede569bb88ec9b27ff7a65fe99f7d17fd (patch) | |
tree | 31d7c7aa8b762d109e9dfcceb778ab0067c1fd24 /src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalData.cpp | |
parent | ca417d507af506b2571453863f97093bf3d14667 (diff) | |
download | Qt-f5af011ede569bb88ec9b27ff7a65fe99f7d17fd.zip Qt-f5af011ede569bb88ec9b27ff7a65fe99f7d17fd.tar.gz Qt-f5af011ede569bb88ec9b27ff7a65fe99f7d17fd.tar.bz2 |
New class and new JSC::JSGlobalData attribute.
SourcePool's objects should be responsible for calling debugger each time
scriptLoad or scriptUnload event occurs.
This code is specific to Qt only.
Diffstat (limited to 'src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalData.cpp')
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalData.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalData.cpp b/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalData.cpp index 95b4d0c..85d881e 100644 --- a/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalData.cpp +++ b/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalData.cpp @@ -142,6 +142,9 @@ JSGlobalData::JSGlobalData(bool isShared, const VPtrSet& vptrSet) , scopeNodeBeingReparsed(0) , firstStringifierToMark(0) { +#ifdef QT_BUILD_SCRIPT_LIB + scriptpool = new SourcePool(); +#endif #if PLATFORM(MAC) startProfilerServerIfNeeded(); #endif @@ -187,6 +190,10 @@ JSGlobalData::~JSGlobalData() deleteIdentifierTable(identifierTable); delete clientData; +#ifdef QT_BUILD_SCRIPT_LIB + if (scriptpool) + delete scriptpool; +#endif } PassRefPtr<JSGlobalData> JSGlobalData::create(bool isShared) |