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

    r37981 r37989  
    9494        PropertyMap& operator=(const PropertyMap&);
    9595
    96         size_t get(const Identifier& propertyName);
    97         size_t get(const Identifier& propertyName, unsigned& attributes);
     96        size_t get(const Identifier& propertyName) const;
     97        size_t get(const Identifier& propertyName, unsigned& attributes) const;
    9898        size_t put(const Identifier& propertyName, unsigned attributes);
    9999        size_t remove(const Identifier& propertyName);
     
    101101        void getEnumerablePropertyNames(PropertyNameArray&) const;
    102102
    103         bool isEmpty() { return !m_table; }
     103        bool isEmpty() const { return !m_table; }
    104104        unsigned storageSize() const { return m_table ? m_table->keyCount + m_deletedOffsets.size() : 0; }
    105105
     
    133133    }
    134134
    135     inline size_t PropertyMap::get(const Identifier& propertyName)
     135    inline size_t PropertyMap::get(const Identifier& propertyName) const
    136136    {
    137137        ASSERT(!propertyName.isNull());
Note: See TracChangeset for help on using the changeset viewer.