Changeset 143027 in webkit


Ignore:
Timestamp:
Feb 15, 2013 11:54:09 AM (11 years ago)
Author:
ggaren@apple.com
Message:

Merged the global function cache into the source code cache
https://bugs.webkit.org/show_bug.cgi?id=108660

Reviewed by Sam Weinig.

Responding to review comments by Darin Adler.

../JavaScriptCore:

  • runtime/CodeCache.h:

(JSC::SourceCodeKey::SourceCodeKey): Don't initialize m_name and m_flags
in the hash table deleted value because they're meaningless.

../WTF:

  • wtf/HashTraits.h: Added a using directive to simplify client code.
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r143024 r143027  
     12013-02-15  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Merged the global function cache into the source code cache
     4        https://bugs.webkit.org/show_bug.cgi?id=108660
     5
     6        Reviewed by Sam Weinig.
     7
     8        Responding to review comments by Darin Adler.
     9
     10        * runtime/CodeCache.h:
     11        (JSC::SourceCodeKey::SourceCodeKey): Don't initialize m_name and m_flags
     12        in the hash table deleted value because they're meaningless.
     13
    1142013-02-14  Filip Pizlo  <fpizlo@apple.com>
    215
  • trunk/Source/JavaScriptCore/runtime/CodeCache.h

    r142966 r143027  
    100100    SourceCodeKey(WTF::HashTableDeletedValueType)
    101101        : m_sourceString(WTF::HashTableDeletedValue)
    102         , m_name(WTF::HashTableDeletedValue)
    103         , m_flags(0)
    104102    {
    105103    }
     
    130128};
    131129
    132 struct SourceCodeKeyHashTraits : WTF::SimpleClassHashTraits<SourceCodeKey> {
     130struct SourceCodeKeyHashTraits : SimpleClassHashTraits<SourceCodeKey> {
    133131    static const bool hasIsEmptyValueFunction = true;
    134132    static bool isEmptyValue(const SourceCodeKey& sourceCodeKey) { return sourceCodeKey.isNull(); }
  • trunk/Source/WTF/ChangeLog

    r142924 r143027  
     12013-02-15  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Merged the global function cache into the source code cache
     4        https://bugs.webkit.org/show_bug.cgi?id=108660
     5
     6        Reviewed by Sam Weinig.
     7
     8        Responding to review comments by Darin Adler.
     9
     10        * wtf/HashTraits.h: Added a using directive to simplify client code.
     11
    1122013-02-14  Dan Bernstein  <mitz@apple.com>
    213
  • trunk/Source/WTF/wtf/HashTraits.h

    r131484 r143027  
    244244using WTF::PairHashTraits;
    245245using WTF::NullableHashTraits;
     246using WTF::SimpleClassHashTraits;
    246247
    247248#endif // WTF_HashTraits_h
Note: See TracChangeset for help on using the changeset viewer.