summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjaanttil <janne.anttila@digia.com>2011-08-24 09:49:48 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-06 13:59:46 (GMT)
commite93c5aae8366d430d69827d409f3b6d31eb5dfb6 (patch)
tree40c52d4078e613aa1483219deffa3c523814d65f /src
parent5db73d288450abda07f4c7c214923872e6ba0b5b (diff)
downloadQt-e93c5aae8366d430d69827d409f3b6d31eb5dfb6.zip
Qt-e93c5aae8366d430d69827d409f3b6d31eb5dfb6.tar.gz
Qt-e93c5aae8366d430d69827d409f3b6d31eb5dfb6.tar.bz2
Fixes to JSCore for WinCE.
Moved WINCE specific code before desktop windows code. This is needed because in WinCE both OS(WINCE) and OS(WINDOWS) are true. Task-number: QTBUG-22502 Change-Id: Icf9ad1a155dc705e37e5e057bb23bc7f5c2d4931 Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
index 42e2a35..a7744dd 100644
--- a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
@@ -581,6 +581,15 @@ static inline void* currentThreadStackBase()
#if OS(DARWIN)
pthread_t thread = pthread_self();
return pthread_get_stackaddr_np(thread);
+#elif OS(WINCE)
+ AtomicallyInitializedStatic(Mutex&, mutex = *new Mutex);
+ MutexLocker locker(mutex);
+ if (g_stackBase)
+ return g_stackBase;
+ else {
+ int dummy;
+ return getStackBase(&dummy);
+ }
#elif OS(WINDOWS) && CPU(X86) && COMPILER(MSVC)
// offset 0x18 from the FS segment register gives a pointer to
// the thread information block for the current thread
@@ -662,15 +671,6 @@ static inline void* currentThreadStackBase()
stackThread = thread;
}
return static_cast<char*>(stackBase) + stackSize;
-#elif OS(WINCE)
- AtomicallyInitializedStatic(Mutex&, mutex = *new Mutex);
- MutexLocker locker(mutex);
- if (g_stackBase)
- return g_stackBase;
- else {
- int dummy;
- return getStackBase(&dummy);
- }
#else
#error Need a way to get the stack base on this platform
#endif