Ignore:
Timestamp:
Oct 7, 2008, 4:49:59 PM (17 years ago)
Author:
[email protected]
Message:

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

Reviewed by Cameron Zwarich.

Move hasGetterSetterProperties flag from PropertyMap to StructureID.

  • kjs/JSObject.cpp: (JSC::JSObject::put): (JSC::JSObject::defineGetter): (JSC::JSObject::defineSetter):
  • kjs/JSObject.h: (JSC::JSObject::hasGetterSetterProperties): (JSC::JSObject::getOwnPropertySlotForWrite): (JSC::JSObject::getOwnPropertySlot):
  • kjs/PropertyMap.h:
  • kjs/StructureID.cpp: (JSC::StructureID::StructureID): (JSC::StructureID::addPropertyTransition): (JSC::StructureID::toDictionaryTransition): (JSC::StructureID::changePrototypeTransition): (JSC::StructureID::getterSetterTransition):
  • kjs/StructureID.h: (JSC::StructureID::hasGetterSetterProperties): (JSC::StructureID::setHasGetterSetterProperties):
File:
1 edited

Legend:

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

    r37388 r37400  
    125125        void clearEnumerationCache();
    126126
     127        bool hasGetterSetterProperties() const { return m_hasGetterSetterProperties; }
     128        void setHasGetterSetterProperties(bool hasGetterSetterProperties) { m_hasGetterSetterProperties = hasGetterSetterProperties; }
     129
    127130    private:
    128131        typedef std::pair<RefPtr<UString::Rep>, unsigned> TransitionTableKey;
     
    136139
    137140        bool m_isDictionary;
     141
     142        bool m_hasGetterSetterProperties;
    138143
    139144        JSValue* m_prototype;
Note: See TracChangeset for help on using the changeset viewer.