Changeset 94890 in webkit
- Timestamp:
- Sep 9, 2011 5:05:28 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r94875 r94890 1 2011-09-09 Geoffrey Garen <ggaren@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 Removed ENABLE(SINGLE_THREADED) support, since it is always false 6 https://bugs.webkit.org/show_bug.cgi?id=67862 7 8 Next step toward making the baseline platform assumption that threads exist. 9 10 * wtf/wtf.pri: 11 * JavaScriptCore.gypi: 12 * JavaScriptCore.vcproj/WTF/WTF.vcproj: Removed references to 13 ThreadingNone.cpp, which was only compiled in single-threaded mode. 14 15 * wtf/Platform.h: 16 * wtf/ThreadSpecific.h: 17 (WTF::::destroy): 18 * wtf/qt/ThreadingQt.cpp: Removed now-dead code. 19 20 * wtf/ThreadingNone.cpp: Removed. 21 1 22 2011-09-09 Mark Hahnenberg <mhahnenberg@apple.com> 2 23 -
trunk/Source/JavaScriptCore/JavaScriptCore.gypi
r94814 r94890 626 626 'wtf/ThreadSpecificWin.cpp', 627 627 'wtf/Threading.cpp', 628 'wtf/ThreadingNone.cpp',629 628 'wtf/ThreadingPthreads.cpp', 630 629 'wtf/ThreadingWin.cpp', -
trunk/Source/JavaScriptCore/JavaScriptCore.vcproj/WTF/WTF.vcproj
r94452 r94890 1082 1082 </File> 1083 1083 <File 1084 RelativePath="..\..\wtf\ThreadingNone.cpp"1085 >1086 </File>1087 <File1088 1084 RelativePath="..\..\wtf\ThreadingPrimitives.h" 1089 1085 > -
trunk/Source/JavaScriptCore/wtf/Platform.h
r94872 r94890 1052 1052 #endif 1053 1053 1054 #if ENABLE(SINGLE_THREADED)1055 #undef ENABLE_LAZY_BLOCK_FREEING1056 #define ENABLE_LAZY_BLOCK_FREEING 01057 #else1058 #define ENABLE_LAZY_BLOCK_FREEING 11059 #endif1060 1061 1054 #ifndef ENABLE_LARGE_HEAP 1062 1055 #if CPU(X86) || CPU(X86_64) … … 1139 1132 #endif 1140 1133 1141 #if !defined(ENABLE_PARALLEL_JOBS) && !ENABLE(SINGLE_THREADED) &&(ENABLE(THREADING_GENERIC) || ENABLE(THREADING_LIBDISPATCH) || ENABLE(THREADING_OPENMP))1134 #if !defined(ENABLE_PARALLEL_JOBS) && (ENABLE(THREADING_GENERIC) || ENABLE(THREADING_LIBDISPATCH) || ENABLE(THREADING_OPENMP)) 1142 1135 #define ENABLE_PARALLEL_JOBS 1 1143 1136 #endif -
trunk/Source/JavaScriptCore/wtf/ThreadSpecific.h
r76248 r94890 102 102 #endif 103 103 104 #if ENABLE(SINGLE_THREADED)105 T* m_value;106 #else107 104 #if USE(PTHREADS) 108 105 pthread_key_t m_key; … … 114 111 int m_index; 115 112 #endif 116 #endif117 113 }; 118 114 119 #if ENABLE(SINGLE_THREADED)120 template<typename T>121 inline ThreadSpecific<T>::ThreadSpecific()122 : m_value(0)123 {124 }125 126 template<typename T>127 inline T* ThreadSpecific<T>::get()128 {129 return m_value;130 }131 132 template<typename T>133 inline void ThreadSpecific<T>::set(T* ptr)134 {135 ASSERT(!get());136 m_value = ptr;137 }138 #else139 115 #if USE(PTHREADS) 140 116 template<typename T> … … 260 236 #error ThreadSpecific is not implemented for this platform. 261 237 #endif 262 #endif263 238 264 239 template<typename T> 265 240 inline void ThreadSpecific<T>::destroy(void* ptr) 266 241 { 267 #if !ENABLE(SINGLE_THREADED)268 242 Data* data = static_cast<Data*>(ptr); 269 243 … … 298 272 #if !PLATFORM(QT) 299 273 delete data; 300 #endif301 274 #endif 302 275 } -
trunk/Source/JavaScriptCore/wtf/ThreadingNone.cpp
r55429 r94890 1 /*2 * Copyright (C) 2007 Apple Inc. All rights reserved.3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com)4 *5 * Redistribution and use in source and binary forms, with or without6 * modification, are permitted provided that the following conditions7 * are met:8 *9 * 1. Redistributions of source code must retain the above copyright10 * notice, this list of conditions and the following disclaimer.11 * 2. Redistributions in binary form must reproduce the above copyright12 * notice, this list of conditions and the following disclaimer in the13 * documentation and/or other materials provided with the distribution.14 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of15 * its contributors may be used to endorse or promote products derived16 * from this software without specific prior written permission.17 *18 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY19 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.28 */29 30 #include "config.h"31 #include "Threading.h"32 33 #if ENABLE(SINGLE_THREADED)34 35 namespace WTF {36 37 void initializeThreading() { }38 ThreadIdentifier createThreadInternal(ThreadFunction, void*, const char*) { return ThreadIdentifier(); }39 void initializeCurrentThreadInternal(const char*) { }40 int waitForThreadCompletion(ThreadIdentifier, void**) { return 0; }41 void detachThread(ThreadIdentifier) { }42 ThreadIdentifier currentThread() { return ThreadIdentifier(); }43 bool isMainThread() { return true; }44 45 Mutex::Mutex() { }46 Mutex::~Mutex() { }47 void Mutex::lock() { }48 bool Mutex::tryLock() { return false; }49 void Mutex::unlock() { }50 51 ThreadCondition::ThreadCondition() { }52 ThreadCondition::~ThreadCondition() { }53 void ThreadCondition::wait(Mutex&) { }54 bool ThreadCondition::timedWait(Mutex&, double) { return false; }55 void ThreadCondition::signal() { }56 void ThreadCondition::broadcast() { }57 58 void lockAtomicallyInitializedStaticMutex() { }59 void unlockAtomicallyInitializedStaticMutex() { }60 61 } // namespace WebCore62 63 #endif -
trunk/Source/JavaScriptCore/wtf/qt/ThreadingQt.cpp
r91906 r94890 30 30 #include "Threading.h" 31 31 32 #if !ENABLE(SINGLE_THREADED)33 34 32 #include "DateMath.h" 35 33 #include "dtoa.h" … … 297 295 298 296 #include "ThreadingQt.moc" 299 300 #endif -
trunk/Source/JavaScriptCore/wtf/wtf.pri
r94452 r94890 36 36 wtf/StackBounds.cpp \ 37 37 wtf/TCSystemAlloc.cpp \ 38 wtf/ThreadingNone.cpp \39 38 wtf/Threading.cpp \ 40 39 wtf/TypeTraits.cpp \ -
trunk/Source/WebCore/ChangeLog
r94889 r94890 1 2011-09-09 Geoffrey Garen <ggaren@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 Removed ENABLE(SINGLE_THREADED) support, since it is always false 6 https://bugs.webkit.org/show_bug.cgi?id=67862 7 8 Next step toward making the baseline platform assumption that threads exist. 9 10 * WebCore.pri: 11 * features.pri: 12 * platform/sql/SQLiteDatabase.cpp: 13 (WebCore::SQLiteDatabase::interrupt): Removed now-dead code. 14 1 15 2011-09-09 Fady Samuel <fsamuel@chromium.org> 2 16 -
trunk/Source/WebCore/WebCore.pri
r94866 r94890 185 185 DEFINES += SQLITE_CORE SQLITE_OMIT_LOAD_EXTENSION SQLITE_OMIT_COMPLETE 186 186 CONFIG(release, debug|release): DEFINES *= NDEBUG 187 contains(DEFINES, ENABLE_SINGLE_THREADED=1): DEFINES += SQLITE_THREADSAFE=0188 187 } else { 189 188 # Use sqlite3 from the underlying OS -
trunk/Source/WebCore/features.pri
r94499 r94890 42 42 DEFINES -= ENABLE_SVG_FONTS=1 43 43 DEFINES += ENABLE_SVG_FONTS=0 44 }45 46 contains(DEFINES, ENABLE_SINGLE_THREADED=1) {47 DEFINES+=ENABLE_DATABASE=0 ENABLE_DOM_STORAGE=0 ENABLE_ICONDATABASE=0 ENABLE_WORKERS=0 ENABLE_SHARED_WORKERS=048 44 } 49 45 -
trunk/Source/WebCore/platform/sql/SQLiteDatabase.cpp
r86542 r94890 108 108 void SQLiteDatabase::interrupt() 109 109 { 110 #if !ENABLE(SINGLE_THREADED)111 110 m_interrupted = true; 112 111 while (!m_lockingMutex.tryLock()) { … … 119 118 120 119 m_lockingMutex.unlock(); 121 #endif122 120 } 123 121
Note: See TracChangeset
for help on using the changeset viewer.