Changeset 37500 in webkit for trunk/JavaScriptCore/VM/Machine.h


Ignore:
Timestamp:
Oct 10, 2008, 10:49:39 PM (17 years ago)
Author:
[email protected]
Message:

Use fastcall calling convention on GCC > 4.0

Reviewed by Cameron Zwarich

Results in a 2-3% improvement in GCC 4.2 performance, so
that it is no longer a regression vs. GCC 4.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Machine.h

    r37457 r37500  
    6262#endif
    6363
     64#if USE(FAST_CALL_CTI_ARGUMENT)
     65
    6466#if COMPILER(MSVC)
    65 #if USE(FAST_CALL_CTI_ARGUMENT)
    6667#define SFX_CALL __fastcall
     68#elif COMPILER(GCC)
     69#define SFX_CALL  __attribute__ ((fastcall))
    6770#else
     71#error Need to support fastcall calling convention in this compiler
     72#endif
     73
     74#else
     75
     76#if COMPILER(MSVC)
    6877#define SFX_CALL __cdecl
    69 #endif
    7078#else
    7179#define SFX_CALL
     80#endif
    7281
    7382#endif
Note: See TracChangeset for help on using the changeset viewer.