Changeset 31226 for trunk/JavaScriptCore/kjs/JSVariableObject.h
- Timestamp:
- 03/21/08 21:59:20 (8 months ago)
- Files:
-
- 1 modified
-
trunk/JavaScriptCore/kjs/JSVariableObject.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSVariableObject.h
r31225 r31226 87 87 bool symbolTablePut(const Identifier&, JSValue*); 88 88 bool symbolTableInitializeVariable(const Identifier&, JSValue*, unsigned attributes); 89 bool symbolTableInsert(const Identifier&, JSValue*, unsigned attributes); 89 90 90 91 JSVariableObjectData* d; … … 135 136 return true; 136 137 } 138 139 inline bool JSVariableObject::symbolTableInsert(const Identifier& propertyName, JSValue* value, unsigned attributes) 140 { 141 if (symbolTable().get(propertyName.ustring().rep()) != missingSymbolMarker()) 142 return false; 137 143 144 ASSERT((attributes & DontDelete) != 0); 145 size_t localStorageIndex = d->localStorage.size(); 146 d->localStorage.append(LocalStorageEntry(value, attributes)); 147 symbolTable().add(propertyName.ustring().rep(), localStorageIndex); 148 return true; 149 } 138 150 } // namespace KJS 139 151