Changeset 34378 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jun 5, 2008, 10:54:59 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r34374 r34378 1 2008-06-05 Maciej Stachowiak <[email protected]> 2 3 Reviewed by Hyatt. 4 5 - force inlining of a template function that only has one call site per specialization 6 1.3% speedup on SunSpider 7 8 * kjs/collector.cpp: 9 (KJS::Collector::heapAllocate): This template function is only 10 called from allocate() and allocateNumber() (once per 11 specialization) and the extra call overhead for GC allocation 12 shows up, so force inlining. 13 1 14 2008-06-05 Maciej Stachowiak <[email protected]> 2 15 -
trunk/JavaScriptCore/kjs/collector.cpp
r34360 r34378 179 179 }; 180 180 181 template <Collector::HeapType heapType> void* Collector::heapAllocate(size_t s)181 template <Collector::HeapType heapType> ALWAYS_INLINE void* Collector::heapAllocate(size_t s) 182 182 { 183 183 typedef typename HeapConstants<heapType>::Block Block;
Note:
See TracChangeset
for help on using the changeset viewer.