Changeset 52490 in webkit


Ignore:
Timestamp:
Dec 22, 2009 10:36:41 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-22 Kwang Yul Seo <skyul@company100.net>

Reviewed by Darin Adler.

Define ALWAYS_INLINE and WTF_PRIVATE_INLINE to forceinline for RVCT
https://bugs.webkit.org/show_bug.cgi?id=32853

Use forceinline forces RVCT to compile a C or C++ function
inline. The compiler attempts to inline the function, regardless of
the characteristics of the function.

  • wtf/AlwaysInline.h:
  • wtf/FastMalloc.h:
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r52482 r52490  
     12009-12-22  Kwang Yul Seo  <skyul@company100.net>
     2
     3        Reviewed by Darin Adler.
     4
     5        Define ALWAYS_INLINE and WTF_PRIVATE_INLINE to __forceinline for RVCT
     6        https://bugs.webkit.org/show_bug.cgi?id=32853
     7
     8        Use __forceinline forces RVCT to compile a C or C++ function
     9        inline. The compiler attempts to inline the function, regardless of
     10        the characteristics of the function.
     11
     12        * wtf/AlwaysInline.h:
     13        * wtf/FastMalloc.h:
     14
    1152009-12-21  Simon Hausmann  <simon.hausmann@nokia.com>
    216
  • trunk/JavaScriptCore/wtf/AlwaysInline.h

    r40230 r52490  
    2424#if COMPILER(GCC) && defined(NDEBUG) && !COMPILER(MINGW)
    2525#define ALWAYS_INLINE inline __attribute__((__always_inline__))
    26 #elif COMPILER(MSVC) && defined(NDEBUG)
     26#elif (COMPILER(MSVC) || COMPILER(RVCT)) && defined(NDEBUG)
    2727#define ALWAYS_INLINE __forceinline
    2828#else
  • trunk/JavaScriptCore/wtf/FastMalloc.h

    r51908 r52490  
    199199#elif COMPILER(GCC)
    200200#define WTF_PRIVATE_INLINE inline __attribute__((always_inline))
    201 #elif COMPILER(MSVC)
     201#elif COMPILER(MSVC) || COMPILER(RVCT)
    202202#define WTF_PRIVATE_INLINE __forceinline
    203203#else
Note: See TracChangeset for help on using the changeset viewer.