Skip to content
  • andersca@apple.com's avatar
    Begin moving off of TypeTraits.h · b4cc066a
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=121006
    
    Reviewed by Darin Adler.
    
    Source/JavaScriptCore:
    
    Convert uses of WTF type traits to STL type traits.
    
    * heap/PassWeak.h:
    * runtime/JSCell.h:
    (JSC::jsCast):
    (JSC::jsDynamicCast):
    * runtime/WriteBarrier.h:
    (JSC::validateCell):
    
    Source/WebKit2:
    
    Convert uses of WTF type traits to STL type traits.
    
    * Platform/CoreIPC/ArgumentCoder.h:
    * Platform/CoreIPC/ArgumentCoders.h:
    * Platform/CoreIPC/ArgumentDecoder.h:
    * Platform/CoreIPC/ArgumentEncoder.h:
    * Platform/CoreIPC/Arguments.h:
    * Shared/API/c/WKSharedAPICast.h:
    (WebKit::toImpl):
    
    Source/WTF:
    
    The C++11 has its own type traits implementation that is more complete and handles corner cases better
    since it ties into the compiler. Begin switching uses of WTF type traits to STL type traits.
    
    * wtf/CheckedArithmetic.h:
    * wtf/HashTraits.h:
    * wtf/NeverDestroyed.h:
    * wtf/OwnPtr.h:
    * wtf/PassOwnPtr.h:
    (WTF::adoptPtr):
    * wtf/RetainPtr.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b4cc066a