- 06 Jan, 2012 2 commits
-
-
weinig@apple.com authored
* wtf/TypeTraits.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=75737 Reviewed by Anders Carlsson. * wtf/TypeTraits.cpp: * wtf/TypeTraits.h: Added a DecayArray trait, that can convert T[] and T[3] -> T*. DecayArray is composed of some helpers which are also exposed, Conditional<>, which can provide one type or another based on a boolean predicate, IsArray<> which can deduce array types, and RemoveExtent<>, which removes the extent from an array type. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 01 Jan, 2011 1 commit
-
-
abarth@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=51604 Reviewed by Eric Seidel. Update references to JavaScriptCore to point to the new location. * Android.mk: * CMakeLists.txt: * DerivedSources.pro: * GNUmakefile.am: * Makefile: * WebKit.pri: * WebKit.pro: * wscript: Tools: Update references to JavaScriptCore to point to the new location. * BuildSlaveSupport/build.webkit.org-config/master.cfg: * DumpRenderTree/qt/DumpRenderTree.pro: * DumpRenderTree/qt/ImageDiff.pro: * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: * DumpRenderTree/wscript: * Scripts/build-jsc: * Scripts/build-webkit: * Scripts/do-file-rename: * Scripts/do-webcore-rename: * Scripts/run-javascriptcore-tests: * Scripts/update-javascriptcore-test-results: * Scripts/webkitdirs.pm: * Scripts/webkitpy/common/config/build_unittest.py: * Scripts/webkitpy/style/checker.py: * Scripts/webkitpy/style/checker_unittest.py: * Scripts/webkitpy/style/checkers/cpp_unittest.py: * WebKitTestRunner/InjectedBundle/qt/InjectedBundle.pro: * WebKitTestRunner/qt/WebKitTestRunner.pro: * wx/build/settings.py: WebCore: Update references to JavaScriptCore. * Android.derived.jscbindings.mk: * Android.v8bindings.mk: * CMakeLists.txt: * WebCore.gyp/WebCore.gyp: * WebCore.pro: - These changes are subtle and might not be 100% correct. * move-js-headers.sh: WebKit/chromium: * WebKit.gyp: - Point to JavaScriptCore in its new location. WebKit/gtk: * GNUmakefile.am: * docs/GNUmakefile.am: - Point to JavaScriptCore in its new location. WebKit/qt: * WebKit_pch.h: * docs/qtwebkit.qdocconf: - Point to JavaScriptCore in its new location. WebKit/win: * WebKit.vcproj/WebKit.sln: - Point to JavaScriptCore in its new location. WebKit/wx: * bindings/python/wscript: * wscript: - Point to JavaScriptCore in its new location. WebKit2: * WebKit2.pro: - Point to JavaScriptCore in its new location. Websites/bugs.webkit.org: * PrettyPatch/PrettyPatch.rb: - Remove reference to JavaScriptCore as a source directory. Websites/webkit.org: * coding/assertion-guidelines.html: - Update documentation to point to the new location of JavaScriptCore. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74855 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 06 Oct, 2010 1 commit
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=47304 Reviewed by Sam Weinig. JavaScriptCore: * wtf/TypeTraits.h: * wtf/TypeTraits.cpp: Add RemoveReference type trait. WebKit2: This is a first step towards simplifying all the handleMessage overloads we have. * Platform/CoreIPC/Arguments.h: (CoreIPC::Arguments1): Make Arguments1 a struct and get rid of the FirstArgumentType typedef. Instead, add a ValueType typedef which is defined to an Arguments1 type whose type parameter is not a reference type. * Platform/CoreIPC/HandleMessage.h: (CoreIPC::handleMessage): Update for the Arguments1 change. Rename "arguments" to "argumentDecoder" and "reply" to "replyEncoder". git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 17 Sep, 2010 1 commit
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=46018 Reviewed by Sam Weinig. * wtf/TypeTraits.h: * wtf/TypeTraits.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 Jan, 2010 1 commit
-
-
levin@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=33698 Reviewed by Oliver Hunt. JavaScriptCore: * wtf/TypeTraits.cpp: Added tests for the new type traits. * wtf/TypeTraits.h: (WTF::IsSubclass): Determines if a class is a derived from another class. (WTF::IsSubclassOfTemplate): Determines if a class is a derived from a template class (with one parameter that is unknown). (WTF::RemoveTemplate): Reveals the type for a template parameter. WebCore: Now the copier is able to handle types that derive from ThreadSafeShared. No change functionality so no new tests. * loader/WorkerThreadableLoader.cpp: (WebCore::WorkerThreadableLoader::MainThreadBridge::cancel): Remove unnecessary cast. (WebCore::WorkerThreadableLoader::MainThreadBridge::clearClientWrapper): Ditto. * loader/WorkerThreadableLoader.h: Change to use the derived class instead of the ThreadSafeShared version. * platform/CrossThreadCopier.cpp: Add the new template parameter throughout the classes and adjust the class that handles ThreadSafeShared to allow for derived types. * platform/CrossThreadCopier.h: Add another template parameter to be able to detect classes that derive from ThreadSafeShared. * websockets/WorkerThreadableWebSocketChannel.cpp: Removed unnecessary casts and changed a type to use the derived class instead of the ThreadSafeShared version. (WebCore::WorkerThreadableWebSocketChannel::Peer::Peer): (WebCore::workerContextDidSend): (WebCore::workerContextDidGetBufferedAmount): (WebCore::workerContextDidConnect): (WebCore::workerContextDidReceiveMessage): (WebCore::workerContextDidClose): (WebCore::WorkerThreadableWebSocketChannel::Bridge::setWebSocketChannel): (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel): (WebCore::WorkerThreadableWebSocketChannel::Bridge::send): (WebCore::WorkerThreadableWebSocketChannel::Bridge::bufferedAmount): (WebCore::WorkerThreadableWebSocketChannel::Bridge::clearClientWrapper): (WebCore::WorkerThreadableWebSocketChannel::Bridge::setMethodNotCompleted): (WebCore::WorkerThreadableWebSocketChannel::Bridge::waitForMethodCompletion): * websockets/WorkerThreadableWebSocketChannel.h: (WebCore::WorkerThreadableWebSocketChannel::Peer::create): Changed a type to use the derived class instead of the ThreadSafeShared version. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 05 Feb, 2009 1 commit
-
-
bfulgham@webkit.org authored
Reviewed by Darin Adler. Bug 23713: COMPILE_ASSERTS should be moved out of TypeTraits.h and into .cpp file <https://bugs.webkit.org/show_bug.cgi?id=23713> * GNUmakefile.am: * JavaScriptCore.pri: * JavaScriptCore.scons: * JavaScriptCore.vcproj/WTF/WTF.vcproj: * JavaScriptCore.xcodeproj/project.pbxproj: * JavaScriptCoreSources.bkl: * wtf/HashTraits.h: Remove unnecessary header file that I missed when moving out the type traits form this file. * wtf/TypeTraits.cpp: Added. (WTF::): * wtf/TypeTraits.h: Moved the compile asserts into TypeTraits.cpp file. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-