Changeset 30042 in webkit
- Timestamp:
- Feb 6, 2008 9:53:53 AM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r30041 r30042 1 2008-02-06 Geoffrey Garen <ggaren@apple.com> 2 3 Reviewed by Darin Adler. 4 5 PLT speedup related to <rdar://problem/5659272> REGRESSION: PLT .4% 6 slower due to r28884 (global variable symbol table optimization) 7 8 Tweaked RefCounted::deref() to be a little more efficient. 9 10 1% - 1.5% speedup on my machine. .7% speedup on Stephanie's machine. 11 12 * wtf/RefCounted.h: 13 (WTF::RefCounted::deref): Don't modify m_refCount if we're just going 14 to delete the object anyway. Also, use a simple == test, which might be 15 faster than <= on some hardware. 16 1 17 2008-02-06 Darin Adler <darin@apple.com> 2 18 -
trunk/JavaScriptCore/wtf/RefCounted.h
r29470 r30042 46 46 { 47 47 ASSERT(!m_deletionHasBegun); 48 if ( --m_refCount <= 0) {48 if (m_refCount == 1) { 49 49 #ifndef NDEBUG 50 50 m_deletionHasBegun = true; 51 51 #endif 52 52 delete static_cast<T*>(this); 53 } 53 } else 54 --m_refCount; 54 55 } 55 56
Note: See TracChangeset
for help on using the changeset viewer.