Changeset 34378 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Jun 5, 2008, 10:54:59 AM (17 years ago)
Author:
[email protected]
Message:

2008-06-05 Maciej Stachowiak <[email protected]>

Reviewed by Hyatt.


  • force inlining of a template function that only has one call site per specialization 1.3% speedup on SunSpider
  • kjs/collector.cpp: (KJS::Collector::heapAllocate): This template function is only called from allocate() and allocateNumber() (once per specialization) and the extra call overhead for GC allocation shows up, so force inlining.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/collector.cpp

    r34360 r34378  
    179179};
    180180
    181 template <Collector::HeapType heapType> void* Collector::heapAllocate(size_t s)
     181template <Collector::HeapType heapType> ALWAYS_INLINE void* Collector::heapAllocate(size_t s)
    182182{
    183183    typedef typename HeapConstants<heapType>::Block Block;
Note: See TracChangeset for help on using the changeset viewer.