Changeset 24715 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Jul 27, 2007, 1:34:00 AM (18 years ago)
Author:
hausmann
Message:

Fix compilation with Qt on Windows with MingW: Implemented currentThreadStackBase() for this platform.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/collector.cpp

    r24693 r24715  
    267267        MOV pTib, EAX
    268268    }
     269    return (void*)pTib->StackBase;
     270#elif PLATFORM(WIN_OS) && PLATFORM(X86) && COMPILER(GCC)
     271    // offset 0x18 from the FS segment register gives a pointer to
     272    // the thread information block for the current thread
     273    NT_TIB* pTib;
     274    asm ( "movl %%fs:0x18, %0\n"
     275          : "=r" (pTib)
     276        );
    269277    return (void*)pTib->StackBase;
    270278#elif PLATFORM(UNIX)
Note: See TracChangeset for help on using the changeset viewer.