Changeset 27297 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Oct 31, 2007, 12:20:00 AM (18 years ago)
Author:
aroben
Message:

Change ALWAYS_INLINE and WTF_PRIVATE_INLINE to use forceinline on Windows

Speeds up SunSpider by 0.4%.

Reviewed by Steve and Maciej.

  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Disable a warning during LTCG in release builds about double -> float conversion.
  • wtf/AlwaysInline.h:
  • wtf/FastMalloc.h:
Location:
trunk/JavaScriptCore/wtf
Files:
2 edited

Legend:

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

    r26995 r27297  
    2323#if COMPILER(GCC) && defined(NDEBUG)
    2424#define ALWAYS_INLINE inline __attribute__ ((__always_inline__))
     25#elif COMPILER(MSVC) && defined(NDEBUG)
     26#define ALWAYS_INLINE __forceinline
    2527#else
    2628#define ALWAYS_INLINE inline
  • trunk/JavaScriptCore/wtf/FastMalloc.h

    r23518 r27297  
    5656#elif COMPILER(GCC)
    5757#define WTF_PRIVATE_INLINE inline __attribute__((always_inline))
     58#elif COMPILER(MSVC)
     59#define WTF_PRIVATE_INLINE __forceinline
    5860#else
    5961#define WTF_PRIVATE_INLINE inline
Note: See TracChangeset for help on using the changeset viewer.