Changeset 30534 in webkit for trunk/JavaScriptCore/kjs/JSVariableObject.h
- Timestamp:
- Feb 23, 2008, 9:01:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSVariableObject.h
r29943 r30534 43 43 void saveLocalStorage(SavedProperties&) const; 44 44 void restoreLocalStorage(const SavedProperties&); 45 46 virtual void initializeVariable(ExecState*, const Identifier&, JSValue*, unsigned attributes) = 0; 45 47 46 48 virtual bool deleteProperty(ExecState*, const Identifier&); … … 78 80 79 81 bool symbolTableGet(const Identifier&, PropertySlot&); 80 bool symbolTablePut(const Identifier&, JSValue*, bool checkReadOnly); 82 bool symbolTablePut(const Identifier&, JSValue*); 83 bool symbolTableInitializeVariable(const Identifier&, JSValue*, unsigned attributes); 81 84 82 85 JSVariableObjectData* d; … … 105 108 } 106 109 107 inline bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue* value , bool checkReadOnly)110 inline bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue* value) 108 111 { 109 112 size_t index = symbolTable().get(propertyName.ustring().rep()); … … 111 114 return false; 112 115 LocalStorageEntry& entry = d->localStorage[index]; 113 if ( checkReadOnly && (entry.attributes & ReadOnly))116 if (entry.attributes & ReadOnly) 114 117 return true; 115 118 entry.value = value; 119 return true; 120 } 121 122 inline bool JSVariableObject::symbolTableInitializeVariable(const Identifier& propertyName, JSValue* value, unsigned attributes) 123 { 124 size_t index = symbolTable().get(propertyName.ustring().rep()); 125 if (index == missingSymbolMarker()) 126 return false; 127 LocalStorageEntry& entry = d->localStorage[index]; 128 entry.value = value; 129 entry.attributes = attributes; 116 130 return true; 117 131 }
Note:
See TracChangeset
for help on using the changeset viewer.