Changeset 144589 in webkit


Ignore:
Timestamp:
Mar 3, 2013 4:11:08 PM (11 years ago)
Author:
akling@apple.com
Message:

Shrink JSC::HashTable entries.
<http://webkit.org/b/111275>
<rdar://problem/13333511>

Reviewed by Anders Carlsson.

Move the Intrinsic value out of the function-specific part of the union,
and store it next to m_attributes. Reduces the size of HashEntry by 8 bytes.

990 kB progression on Membuster3. (PTUS: 797 kB)

  • runtime/Lookup.h:

(JSC::HashEntry::initialize):
(JSC::HashEntry::intrinsic):
(HashEntry):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r144521 r144589  
     12013-03-03  Andreas Kling  <akling@apple.com>
     2
     3        Shrink JSC::HashTable entries.
     4        <http://webkit.org/b/111275>
     5        <rdar://problem/13333511>
     6
     7        Reviewed by Anders Carlsson.
     8
     9        Move the Intrinsic value out of the function-specific part of the union,
     10        and store it next to m_attributes. Reduces the size of HashEntry by 8 bytes.
     11
     12        990 kB progression on Membuster3. (PTUS: 797 kB)
     13
     14        * runtime/Lookup.h:
     15        (JSC::HashEntry::initialize):
     16        (JSC::HashEntry::intrinsic):
     17        (HashEntry):
     18
    1192013-03-01  David Kilzer  <ddkilzer@apple.com>
    220
  • trunk/Source/JavaScriptCore/runtime/Lookup.h

    r120143 r144589  
    5454            m_u.store.value1 = v1;
    5555            m_u.store.value2 = v2;
    56             m_u.function.intrinsic = intrinsic;
     56            m_intrinsic = intrinsic;
    5757            m_next = 0;
    5858        }
     
    6666        {
    6767            ASSERT(m_attributes & Function);
    68             return m_u.function.intrinsic;
     68            return m_intrinsic;
    6969        }
    7070
     
    8383        StringImpl* m_key;
    8484        unsigned char m_attributes; // JSObject attributes
     85        Intrinsic m_intrinsic;
    8586
    8687        union {
     
    9293                NativeFunction functionValue;
    9394                intptr_t length; // number of arguments for function
    94                 Intrinsic intrinsic;
    9595            } function;
    9696            struct {
Note: See TracChangeset for help on using the changeset viewer.