Ignore:
Timestamp:
Oct 29, 2008, 7:44:46 PM (17 years ago)
Author:
[email protected]
Message:

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

Reviewed by Oliver Hunt.

Remove direct use of PropertyMap.

  • JavaScriptCore.exp:
  • runtime/JSObject.cpp: (JSC::JSObject::mark): (JSC::JSObject::put): (JSC::JSObject::deleteProperty): (JSC::JSObject::getPropertyAttributes): (JSC::JSObject::removeDirect):
  • runtime/JSObject.h: (JSC::JSObject::getDirect): (JSC::JSObject::getDirectLocation): (JSC::JSObject::hasCustomProperties): (JSC::JSObject::JSObject): (JSC::JSObject::putDirect):
  • runtime/PropertyMap.cpp: (JSC::PropertyMap::get):
  • runtime/PropertyMap.h: (JSC::PropertyMap::isEmpty): (JSC::PropertyMap::get):
  • runtime/StructureID.cpp: (JSC::StructureID::dumpStatistics):
  • runtime/StructureID.h: (JSC::StructureID::propertyStorageSize): (JSC::StructureID::get): (JSC::StructureID::put): (JSC::StructureID::remove): (JSC::StructureID::isEmpty):
File:
1 edited

Legend:

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

    r37985 r37989  
    9797        StructureIDChain* cachedPrototypeChain() const { return m_cachedPrototypeChain.get(); }
    9898
    99         const PropertyMap& propertyMap() const { return m_propertyMap; }
    100         PropertyMap& propertyMap() { return m_propertyMap; }
    101 
    10299        void setCachedTransistionOffset(size_t offset) { m_cachedTransistionOffset = offset; }
    103100        size_t cachedTransistionOffset() const { return m_cachedTransistionOffset; }
     
    105102        void growPropertyStorageCapacity();
    106103        size_t propertyStorageCapacity() const { return m_propertyStorageCapacity; }
     104        size_t propertyStorageSize() const { return m_propertyMap.storageSize(); }
     105
     106        size_t get(const Identifier& propertyName) const { return m_propertyMap.get(propertyName); }
     107        size_t get(const Identifier& propertyName, unsigned& attributes) const { return m_propertyMap.get(propertyName, attributes); }
     108        size_t put(const Identifier& propertyName, unsigned attributes) { return m_propertyMap.put(propertyName, attributes); }
     109        size_t remove(const Identifier& propertyName) { return m_propertyMap.remove(propertyName); }
    107110
    108111        void getEnumerablePropertyNames(ExecState*, PropertyNameArray&, JSObject*);
     
    112115        void setHasGetterSetterProperties(bool hasGetterSetterProperties) { m_hasGetterSetterProperties = hasGetterSetterProperties; }
    113116
     117        bool isEmpty() const { return m_propertyMap.isEmpty(); }
     118
    114119    private:
    115120        StructureID(JSValue* prototype, const TypeInfo&);
    116        
     121
    117122        static const size_t s_maxTransitionLength = 64;
    118123
Note: See TracChangeset for help on using the changeset viewer.