Ignore:
Timestamp:
Dec 8, 2018, 3:53:29 PM (6 years ago)
Author:
[email protected]
Message:

Reduce size of PropertySlot and PutPropertySlot.
https://bugs.webkit.org/show_bug.cgi?id=192526

Reviewed by Keith Miller.

With some minor adjustments, we can reduce the size of PropertySlot from 80 bytes
(19 padding bytes) to 64 bytes (3 padding bytes), and PutPropertySlot from 40
bytes (4 padding bytes) to 32 bytes (0 padding bytes but with 6 unused bits).
These measurements are for a 64-bit build.

  • runtime/PropertySlot.h:
  • runtime/PutPropertySlot.h:

(JSC::PutPropertySlot::PutPropertySlot):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/PropertySlot.h

    r230129 r239013  
    371371    JS_EXPORT_PRIVATE JSValue customAccessorGetter(ExecState*, PropertyName) const;
    372372
    373     unsigned m_attributes;
    374373    union {
    375374        EncodedJSValue value;
     
    385384    } m_data;
    386385
     386    unsigned m_attributes;
    387387    PropertyOffset m_offset;
    388388    JSValue m_thisValue;
     
    393393    InternalMethodType m_internalMethodType;
    394394    AdditionalDataType m_additionalDataType;
     395    bool m_isTaintedByOpaqueObject;
    395396    union {
    396397        DOMAttributeAnnotation domAttribute;
    397398        ModuleNamespaceSlot moduleNamespaceSlot;
    398399    } m_additionalData;
    399     bool m_isTaintedByOpaqueObject;
    400400};
    401401
Note: See TracChangeset for help on using the changeset viewer.