Changeset 209162 in webkit


Ignore:
Timestamp:
Nov 30, 2016 4:10:44 PM (7 years ago)
Author:
mark.lam@apple.com
Message:

TypeInfo::OutOfLineTypeFlags should be 16 bits in size.
https://bugs.webkit.org/show_bug.cgi?id=165224

Reviewed by Saam Barati.

There's no reason for OutOfLineTypeFlags to be constraint to 8 bits since the
space is available to us. Making OutOfLineTypeFlags 16 bits brings TypeInfo up
to 32 bits in size from the current 24 bits.

  • runtime/JSTypeInfo.h:

(JSC::TypeInfo::TypeInfo):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r209154 r209162  
     12016-11-30  Mark Lam  <mark.lam@apple.com>
     2
     3        TypeInfo::OutOfLineTypeFlags should be 16 bits in size.
     4        https://bugs.webkit.org/show_bug.cgi?id=165224
     5
     6        Reviewed by Saam Barati.
     7
     8        There's no reason for OutOfLineTypeFlags to be constraint to 8 bits since the
     9        space is available to us.  Making OutOfLineTypeFlags 16 bits brings TypeInfo up
     10        to 32 bits in size from the current 24 bits.
     11
     12        * runtime/JSTypeInfo.h:
     13        (JSC::TypeInfo::TypeInfo):
     14
    1152016-11-30  Joseph Pecoraro  <pecoraro@apple.com>
    216
  • trunk/Source/JavaScriptCore/runtime/JSTypeInfo.h

    r207652 r209162  
    5555public:
    5656    typedef uint8_t InlineTypeFlags;
    57     typedef uint8_t OutOfLineTypeFlags;
     57    typedef uint16_t OutOfLineTypeFlags;
    5858
    5959    TypeInfo(JSType type, unsigned flags = 0)
    6060        : TypeInfo(type, flags & 0xff, flags >> 8)
    6161    {
     62        ASSERT(!(flags >> 24));
    6263    }
    6364
     
    111112    bool isSetOnFlags2(unsigned flag) const { ASSERT(flag >= (1 << 8)); return m_flags2 & (flag >> 8); }
    112113
    113     unsigned char m_type;
    114     unsigned char m_flags;
    115     unsigned char m_flags2;
     114    uint8_t m_type;
     115    uint8_t m_flags;
     116    uint16_t m_flags2;
    116117};
    117118
Note: See TracChangeset for help on using the changeset viewer.