Changeset 155232 in webkit
- Timestamp:
- Sep 6, 2013 7:35:57 PM (11 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r155231 r155232 1 2013-09-06 Andreas Kling <akling@apple.com> 2 3 Remove old workaround for Nokia's Harmattan GCC on Qt/ARM. 4 <https://webkit.org/b/37253> 5 6 Reviewed by Anders Carlsson. 7 8 Apparently this was a workaround for GCC getting stuck in an infinite loop 9 when building for ARM in a Nokia SDK over 2 years ago. 10 11 I think it's safe to remove this now, but if I'm wrong, and you're reading 12 this ChangeLog wondering why I did this to you, feel free to put it back in. 13 14 * wtf/PassRefPtr.h: 15 (WTF::refIfNotNull): 16 (WTF::derefIfNotNull): 17 1 18 2013-09-06 Andreas Kling <akling@apple.com> 2 19 -
trunk/Source/WTF/wtf/PassRefPtr.h
r149673 r155232 33 33 inline void adopted(const void*) { } 34 34 35 #if !(PLATFORM(QT) && CPU(ARM)) 36 #define REF_DEREF_INLINE ALWAYS_INLINE 37 #else 38 // Older version of gcc used by Harmattan SDK fails to build with ALWAYS_INLINE. 39 // See https://bugs.webkit.org/show_bug.cgi?id=37253 for details. 40 #define REF_DEREF_INLINE inline 41 #endif 42 43 template<typename T> REF_DEREF_INLINE void refIfNotNull(T* ptr) 35 template<typename T> ALWAYS_INLINE void refIfNotNull(T* ptr) 44 36 { 45 37 if (LIKELY(ptr != 0)) … … 47 39 } 48 40 49 template<typename T> REF_DEREF_INLINE void derefIfNotNull(T* ptr)41 template<typename T> ALWAYS_INLINE void derefIfNotNull(T* ptr) 50 42 { 51 43 if (LIKELY(ptr != 0)) 52 44 ptr->deref(); 53 45 } 54 55 #undef REF_DEREF_INLINE56 46 57 47 template<typename T> class PassRefPtr {
Note: See TracChangeset
for help on using the changeset viewer.