Changeset 128900 in webkit
- Timestamp:
- Sep 18, 2012 9:13:11 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r128898 r128900 1 2012-09-18 Mark Hahnenberg <mhahnenberg@apple.com> 2 3 Use WTF::HasTrivialDestructor instead of compiler-specific versions in JSC::NeedsDestructor 4 https://bugs.webkit.org/show_bug.cgi?id=96980 5 6 Reviewed by Benjamin Poulain. 7 8 * runtime/JSCell.h: 9 (JSC): 10 (NeedsDestructor): 11 1 12 2012-09-18 Filip Pizlo <fpizlo@apple.com> 2 13 -
trunk/Source/JavaScriptCore/runtime/JSCell.h
r128851 r128900 34 34 #include "WriteBarrier.h" 35 35 #include <wtf/Noncopyable.h> 36 #include <wtf/TypeTraits.h> 36 37 37 38 namespace JSC { … … 309 310 } 310 311 311 #if COMPILER(CLANG)312 312 template<class T> 313 313 struct NeedsDestructor { 314 static const bool value = ! __has_trivial_destructor(T);314 static const bool value = !WTF::HasTrivialDestructor<T>::value; 315 315 }; 316 #else317 // Write manual specializations for this struct template if you care about non-clang compilers.318 template<class T>319 struct NeedsDestructor {320 static const bool value = true;321 };322 #endif323 316 324 317 template<typename T> -
trunk/Source/WTF/ChangeLog
r128829 r128900 1 2012-09-18 Mark Hahnenberg <mhahnenberg@apple.com> 2 3 Use WTF::HasTrivialDestructor instead of compiler-specific versions in JSC::NeedsDestructor 4 https://bugs.webkit.org/show_bug.cgi?id=96980 5 6 Reviewed by Benjamin Poulain. 7 8 * wtf/TypeTraits.h: 9 (WTF): 10 1 11 2012-09-17 Glenn Adams <glenn@skynav.com> 2 12 -
trunk/Source/WTF/wtf/TypeTraits.h
r115893 r128900 252 252 typedef IntegralConstant<bool, false> false_type; 253 253 254 #if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__INTEL_COMPILER)254 #if COMPILER(CLANG) || (defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__INTEL_COMPILER)) 255 255 // VC8 (VS2005) and later have built-in compiler support for HasTrivialConstructor / HasTrivialDestructor, 256 256 // but for some unexplained reason it doesn't work on built-in types.
Note: See TracChangeset
for help on using the changeset viewer.