Changeset 43372 in webkit for trunk/JavaScriptCore/wtf/Platform.h


Ignore:
Timestamp:
May 7, 2009, 3:52:19 PM (16 years ago)
Author:
[email protected]
Message:

Improve native call performance

Reviewed by Gavin Barraclough.

Fix the windows build by adding calling convention declarations everywhere,
chose fastcall as that seemed most sensible given we were having to declare
the convention explicitly. In addition switched to fastcall on mac in the
deluded belief that documented fastcall behavior on windows would match
actual its actual behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Platform.h

    r43047 r43372  
    500500#endif
    501501
     502#if PLATFORM(X86_64)
     503    #define JSC_HOST_CALL
     504#elif COMPILER(MSVC)
     505    #define JSC_HOST_CALL __fastcall
     506#elif COMPILER(GCC) && PLATFORM(X86)
     507    #define JSC_HOST_CALL __attribute__ ((fastcall))
     508#else
     509    #if ENABLE(JIT)
     510    #error Need to support register calling convention in this compiler
     511    #else
     512    #define JSC_HOST_CALL
     513    #endif
     514#endif
     515
    502516/* Yet Another Regex Runtime. */
    503517/* YARR supports x86 & x86-64, and has been tested on Mac and Windows. */
Note: See TracChangeset for help on using the changeset viewer.