Commit 4a11f432 authored by hausmann@webkit.org's avatar hausmann@webkit.org

2008-11-06 Norbert Leser <norbert.leser@nokia.com>

        Reviewed by Simon Hausmann.

        Implemented currentThreadStackBase for Symbian.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38175 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4d2a757b
2008-11-06 Norbert Leser <norbert.leser@nokia.com>
Reviewed by Simon Hausmann.
Implemented currentThreadStackBase for Symbian.
* runtime/Collector.cpp:
(JSC::currentThreadStackBase):
2008-11-06 Laszlo Gombos <laszlo.1.gombos@nokia.com>
Reviewed by Simon Hausmann.
......
......@@ -446,6 +446,16 @@ static inline void* currentThreadStackBase()
stackThread = thread;
}
return static_cast<char*>(stackBase) + stackSize;
#elif PLATFORM(SYMBIAN)
static void* stackBase = 0;
if (stackBase == 0) {
TThreadStackInfo info;
RThread thread;
thread.StackInfo(info);
stackBase = (void*)info.iBase;
}
//fixme
return (void*)stackBase;
#else
#error Need a way to get the stack base on this platform
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment