Changeset 24715 in webkit for trunk/JavaScriptCore


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.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r24714 r24715  
     12007-07-27  Simon Hausmann  <[email protected]>
     2
     3        Done with and reviewed by Lars and Zack.
     4
     5        Fix compilation with Qt on Windows with MingW: Implemented currentThreadStackBase() for this platform.
     6
     7        * kjs/collector.cpp:
     8        (KJS::currentThreadStackBase):
     9
    1102007-07-27  Simon Hausmann  <[email protected]>
    211
  • 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.