Ignore:
Timestamp:
Nov 23, 2010, 2:07:20 AM (15 years ago)
Author:
Patrick Gansterer
Message:

2010-11-23 Patrick Gansterer <Patrick Gansterer>

Reviewed by Sam Weinig.

Use WTF::StringHasher directly in JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=49893

  • profiler/CallIdentifier.h: (JSC::CallIdentifier::Hash::hash):
  • runtime/Identifier.cpp: (JSC::IdentifierCStringTranslator::hash): (JSC::IdentifierUCharBufferTranslator::hash):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Identifier.cpp

    r71375 r72592  
    9090    static unsigned hash(const char* c)
    9191    {
    92         return StringImpl::computeHash(c);
     92        return WTF::StringHasher::createHash<char>(c);
    9393    }
    9494
     
    150150    static unsigned hash(const UCharBuffer& buf)
    151151    {
    152         return StringImpl::computeHash(buf.s, buf.length);
     152        return WTF::StringHasher::createHash<UChar>(buf.s, buf.length);
    153153    }
    154154
Note: See TracChangeset for help on using the changeset viewer.