Skip to content
  • barraclough@apple.com's avatar
    JavaScriptCore: Bug 37906 - Remove JSC::UStringImpl; unify with StringImpl. · 185ce916
    barraclough@apple.com authored
    Reviewed by Oliver Hunt, Darin Adler.
    
    JSC::UStringImpl and WebCore::StringImpl (soon to be renamed to
    WTF::StringImpl) are almost identical.  Remove duplication of code by unifying
    the two, move missing features from UStringImpl into StringImpl & delete the
    class UStringImpl.
    
    * API/JSClassRef.cpp:
    * API/JSContextRef.cpp:
    * GNUmakefile.am:
    * JavaScriptCore.exp:
    * JavaScriptCore.pro:
    * JavaScriptCore.xcodeproj/project.pbxproj:
    * bytecode/EvalCodeCache.h:
    * bytecode/JumpTable.cpp:
    * profiler/ProfileNode.cpp:
    * runtime/Identifier.cpp:
    (JSC::Identifier::add):
    * runtime/Identifier.h:
    (JSC::Identifier::equal):
    * runtime/UString.cpp:
    * runtime/UString.h:
    (WTF::):
    * runtime/UStringImpl.cpp: Removed.
    * runtime/UStringImpl.h:
    * wtf/text/StringHash.h:
    (WebCore::StringHash::equal):
    (WebCore::CaseFoldingHash::equal):
    * wtf/text/StringImpl.cpp:
    (WebCore::StringImpl::~StringImpl):
    (WebCore::StringImpl::empty):
    (WebCore::StringImpl::sharedBuffer):
    (WebCore::equal):
    * wtf/text/StringImpl.h:
    (WebCore::StringImpl::StringImpl):
    (WebCore::StringImpl::create):
    (WebCore::StringImpl::tryCreateUninitialized):
    (WebCore::StringImpl::cost):
    (WebCore::StringImpl::isIdentifier):
    (WebCore::StringImpl::setIsIdentifier):
    (WebCore::StringImpl::computeHash):
    (WebCore::StringImpl::copyChars):
    (WebCore::StringImpl::):
    
    JavaScriptGlue: Bug 37906 - Remove JSC::UStringImpl; unify with StringImpl.
    Add forwarding header.
    
    Reviewed by Oliver Hunt, Darin Adler.
    
    * ForwardingHeaders/wtf/ASCIICType.h: Added.
    * ForwardingHeaders/wtf/text/StringImpl.h: Added.
    
    WebCore: Bug 37906 - Remove JSC::UStringImpl; unify with StringImpl.
    Add include for StringHash.h.
    
    Reviewed by Oliver Hunt, Darin Adler.
    
    * WebCore.xcodeproj/project.pbxproj:
    * bridge/c/c_class.cpp:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    185ce916