Ignore:
Timestamp:
Oct 29, 2008, 3:27:31 PM (17 years ago)
Author:
[email protected]
Message:

2008-10-29 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Fix for https://bugs.webkit.org/show_bug.cgi?id=21958
Pack bits in StructureID to reduce the size of each StructureID by 2 words.

  • runtime/PropertyMap.h: (JSC::PropertyMap::propertyMapSize):
  • runtime/StructureID.cpp: (JSC::StructureID::dumpStatistics): Add additional size statistics when dumping. (JSC::StructureID::StructureID):
  • runtime/StructureID.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/StructureID.h

    r37938 r37981  
    150150        TypeInfo m_typeInfo;
    151151
    152         bool m_isDictionary;
    153 
    154         bool m_hasGetterSetterProperties;
    155 
    156152        JSValue* m_prototype;
    157153        RefPtr<StructureIDChain> m_cachedPrototypeChain;
     
    159155        RefPtr<StructureID> m_previous;
    160156        UString::Rep* m_nameInPrevious;
    161         unsigned m_attributesInPrevious;
    162157
    163158        size_t m_transitionCount;
    164         bool m_usingSingleTransitionSlot;
    165159        union {
    166160            StructureID* singleTransition;
     
    174168
    175169        size_t m_cachedTransistionOffset;
     170
     171        bool m_isDictionary : 1;
     172        bool m_hasGetterSetterProperties : 1;
     173        bool m_usingSingleTransitionSlot : 1;
     174        unsigned m_attributesInPrevious : 5;
    176175    };
    177176
Note: See TracChangeset for help on using the changeset viewer.