Ignore:
Timestamp:
Oct 1, 2010, 10:50:39 AM (15 years ago)
Author:
[email protected]
Message:

2010-10-01 Pratik Solanki <[email protected]>

Reviewed by Geoffrey Garen.
Specify ALWAYS_INLINE at function declaration not function definition
https://bugs.webkit.org/show_bug.cgi?id=46960

For functions defined with ALWAYS_INLINE, add the attribute to the declaration as well.

  • bytecompiler/BytecodeGenerator.h:
  • wtf/FastMalloc.cpp:

2010-10-01 Pratik Solanki <[email protected]>

Reviewed by Geoffrey Garen.
Specify ALWAYS_INLINE at function declaration not function definition
https://bugs.webkit.org/show_bug.cgi?id=46960

For functions defined with ALWAYS_INLINE, add the attribute to the declaration as well.

  • css/CSSStyleSelector.h:
  • rendering/InlineIterator.h:
  • rendering/style/RenderStyle.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r67371 r68899  
    21862186  size_t Size() const { return size_; }
    21872187
    2188   void* Allocate(size_t size);
     2188  ALWAYS_INLINE void* Allocate(size_t size);
    21892189  void Deallocate(void* ptr, size_t size_class);
    21902190
    2191   void FetchFromCentralCache(size_t cl, size_t allocationSize);
     2191  ALWAYS_INLINE void FetchFromCentralCache(size_t cl, size_t allocationSize);
    21922192  void ReleaseToCentralCache(size_t cl, int N);
    21932193  void Scavenge();
     
    22902290  // Release an object to spans.
    22912291  // May temporarily release lock_.
    2292   void ReleaseToSpans(void* object);
     2292  ALWAYS_INLINE void ReleaseToSpans(void* object);
    22932293
    22942294  // REQUIRES: lock_ is held
    22952295  // Populate cache by fetching from the page heap.
    22962296  // May temporarily release lock_.
    2297   void Populate();
     2297  ALWAYS_INLINE void Populate();
    22982298
    22992299  // REQUIRES: lock is held.
     
    23082308  // Returns true on success.
    23092309  // May temporarily lock a "random" size class.
    2310   static bool EvictRandomSizeClass(size_t locked_size_class, bool force);
     2310  static ALWAYS_INLINE bool EvictRandomSizeClass(size_t locked_size_class, bool force);
    23112311
    23122312  // REQUIRES: lock_ is *not* held.
     
    37063706
    37073707template <bool crashOnFailure>
    3708 void* malloc(size_t);
     3708ALWAYS_INLINE void* malloc(size_t);
    37093709
    37103710void* fastMalloc(size_t size)
     
    37673767#else
    37683768template <bool crashOnFailure>
    3769 void* calloc(size_t, size_t);
     3769ALWAYS_INLINE void* calloc(size_t, size_t);
    37703770
    37713771void* fastCalloc(size_t n, size_t elem_size)
     
    38313831#else
    38323832template <bool crashOnFailure>
    3833 void* realloc(void*, size_t);
     3833ALWAYS_INLINE void* realloc(void*, size_t);
    38343834
    38353835void* fastRealloc(void* old_ptr, size_t new_size)
Note: See TracChangeset for help on using the changeset viewer.