Changeset 29818 in webkit for trunk/JavaScriptCore/kjs/JSVariableObject.h
- Timestamp:
- Jan 27, 2008, 1:38:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSVariableObject.h
r29663 r29818 83 83 84 84 bool symbolTableGet(const Identifier&, PropertySlot&); 85 bool symbolTablePut(const Identifier&, JSValue*, int attr);85 bool symbolTablePut(const Identifier&, JSValue*, bool checkReadOnly); 86 86 87 87 JSVariableObjectData* d; … … 111 111 } 112 112 113 inline bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue* value, int attr)113 inline bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue* value, bool checkReadOnly) 114 114 { 115 115 size_t index = symbolTable().get(propertyName.ustring().rep()); 116 if (index != missingSymbolMarker()) {117 LocalStorageEntry& entry = d->localStorage[index];118 entry.value = value;119 entry.attributes = attr;116 if (index == missingSymbolMarker()) 117 return false; 118 LocalStorageEntry& entry = d->localStorage[index]; 119 if (checkReadOnly && (entry.attributes & ReadOnly)) 120 120 return true; 121 } 122 123 return false; 121 entry.value = value; 122 return true; 124 123 } 125 124
Note:
See TracChangeset
for help on using the changeset viewer.