Changeset 37400 in webkit for trunk/JavaScriptCore/kjs/JSObject.h


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/JSObject.h

    r37388 r37400  
    153153        void removeDirect(const Identifier& propertyName);
    154154        bool hasCustomProperties() { return !m_structureID->propertyMap().isEmpty(); }
    155         bool hasGetterSetterProperties() { return m_structureID->propertyMap().hasGetterSetterProperties(); }
     155        bool hasGetterSetterProperties() { return m_structureID->hasGetterSetterProperties(); }
    156156
    157157        void putDirect(const Identifier& propertyName, JSValue* value, unsigned attr = 0);
     
    314314    unsigned attributes;
    315315    if (JSValue** location = getDirectLocation(propertyName, attributes)) {
    316         if (m_structureID->propertyMap().hasGetterSetterProperties() && location[0]->isGetterSetter()) {
     316        if (m_structureID->hasGetterSetterProperties() && location[0]->isGetterSetter()) {
    317317            slotIsWriteable = false;
    318318            fillGetterPropertySlot(slot, location);
     
    340340{
    341341    if (JSValue** location = getDirectLocation(propertyName)) {
    342         if (m_structureID->propertyMap().hasGetterSetterProperties() && location[0]->isGetterSetter())
     342        if (m_structureID->hasGetterSetterProperties() && location[0]->isGetterSetter())
    343343            fillGetterPropertySlot(slot, location);
    344344        else
Note: See TracChangeset for help on using the changeset viewer.