Ignore:
Timestamp:
May 7, 2009, 6:59:19 AM (16 years ago)
Author:
Simon Hausmann
Message:

2009-05-07 Simon Hausmann <[email protected]>

Reviewed by Tor Arne Vestbø.

Fix the build thread stack base determination build on Symbian,
by moving the code block before PLATFORM(UNIX), which is also
enabled on Symbian builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Collector.cpp

    r43122 r43343  
    429429    pthread_stackseg_np(thread, &stack);
    430430    return stack.ss_sp;
     431#elif PLATFORM(SYMBIAN)
     432    static void* stackBase = 0;
     433    if (stackBase == 0) {
     434        TThreadStackInfo info;
     435        RThread thread;
     436        thread.StackInfo(info);
     437        stackBase = (void*)info.iBase;
     438    }
     439    return (void*)stackBase;
    431440#elif PLATFORM(UNIX)
    432441    static void* stackBase = 0;
     
    451460    }
    452461    return static_cast<char*>(stackBase) + stackSize;
    453 #elif PLATFORM(SYMBIAN)
    454     static void* stackBase = 0;
    455     if (stackBase == 0) {
    456         TThreadStackInfo info;
    457         RThread thread;
    458         thread.StackInfo(info);
    459         stackBase = (void*)info.iBase;
    460     }
    461     return (void*)stackBase;
    462462#else
    463463#error Need a way to get the stack base on this platform
Note: See TracChangeset for help on using the changeset viewer.