Changeset 37321 in webkit for trunk/JavaScriptCore/kjs/PropertyMap.cpp
- Timestamp:
- Oct 5, 2008, 5:58:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/PropertyMap.cpp
r36847 r37321 115 115 } 116 116 117 voidPropertyMap::put(const Identifier& propertyName, JSValue* value, unsigned attributes, bool checkReadOnly, JSObject* slotBase, PutPropertySlot& slot, PropertyStorage& propertyStorage)117 size_t PropertyMap::put(const Identifier& propertyName, JSValue* value, unsigned attributes, bool checkReadOnly, JSObject* slotBase, PutPropertySlot& slot, PropertyStorage& propertyStorage) 118 118 { 119 119 ASSERT(!propertyName.isNull()); … … 145 145 if (m_table->entries()[entryIndex - 1].key == rep) { 146 146 if (checkReadOnly && (m_table->entries()[entryIndex - 1].attributes & ReadOnly)) 147 return ;147 return WTF::notFound; 148 148 // Put a new value in an existing hash table entry. 149 149 propertyStorage[entryIndex - 2] = value; 150 150 // Attributes are intentionally not updated. 151 151 slot.setExistingProperty(slotBase, entryIndex - 2); 152 return ;152 return entryIndex - 2; 153 153 } else if (entryIndex == deletedSentinelIndex) { 154 154 // If we find a deleted-element sentinel, remember it for use later. … … 203 203 checkConsistency(propertyStorage); 204 204 slot.setNewProperty(slotBase, entryIndex - 2); 205 return entryIndex - 2; 205 206 } 206 207
Note:
See TracChangeset
for help on using the changeset viewer.