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

    r37938 r37989  
    7070    m_structureID->mark();
    7171
    72     unsigned storageSize = m_structureID->propertyMap().storageSize();
    73     for (unsigned i = 0; i < storageSize; ++i) {
     72    size_t storageSize = m_structureID->propertyStorageSize();
     73    for (size_t i = 0; i < storageSize; ++i) {
    7474        JSValue* v = m_propertyStorage[i];
    7575        if (!v->marked())
     
    134134   
    135135    unsigned attributes;
    136     if ((m_structureID->propertyMap().get(propertyName, attributes) != WTF::notFound) && attributes & ReadOnly)
     136    if ((m_structureID->get(propertyName, attributes) != WTF::notFound) && attributes & ReadOnly)
    137137        return;
    138138
     
    200200{
    201201    unsigned attributes;
    202     if (m_structureID->propertyMap().get(propertyName, attributes) != WTF::notFound) {
     202    if (m_structureID->get(propertyName, attributes) != WTF::notFound) {
    203203        if ((attributes & DontDelete))
    204204            return false;
     
    410410bool JSObject::getPropertyAttributes(ExecState* exec, const Identifier& propertyName, unsigned& attributes) const
    411411{
    412     if (m_structureID->propertyMap().get(propertyName, attributes) != WTF::notFound)
     412    if (m_structureID->get(propertyName, attributes) != WTF::notFound)
    413413        return true;
    414414   
     
    468468    size_t offset;
    469469    if (m_structureID->isDictionary()) {
    470         offset = m_structureID->propertyMap().remove(propertyName);
     470        offset = m_structureID->remove(propertyName);
    471471        if (offset != WTF::notFound) {
    472472            m_propertyStorage[offset] = jsUndefined();
     
    477477
    478478    RefPtr<StructureID> structureID = StructureID::toDictionaryTransition(m_structureID);
    479     offset = structureID->propertyMap().remove(propertyName);
     479    offset = structureID->remove(propertyName);
    480480    if (offset != WTF::notFound)
    481481        m_propertyStorage[offset] = jsUndefined();
Note: See TracChangeset for help on using the changeset viewer.