Changeset 28528 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Dec 7, 2007, 2:14:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSVariableObject.h
r28527 r28528 71 71 } 72 72 73 bool JSVariableObject::symbolTableGet(const Identifier& propertyName, PropertySlot& slot) 74 { 75 size_t index = symbolTable().get(propertyName.ustring().rep()); 76 if (index != missingSymbolMarker()) { 77 slot.setValueSlot(this, &d->localStorage[index].value); 78 return true; 79 } 80 81 return false; 82 } 83 84 bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue* value, int attr) 85 { 86 size_t index = symbolTable().get(propertyName.ustring().rep()); 87 if (index != missingSymbolMarker()) { 88 LocalStorageEntry& entry = d->localStorage[index]; 89 entry.value = value; 90 entry.attributes = attr; 91 return true; 92 } 93 94 return false; 95 } 73 bool symbolTableGet(const Identifier&, PropertySlot&); 74 bool symbolTablePut(const Identifier&, JSValue*, int attr); 96 75 97 76 JSVariableObjectData* d; 98 77 }; 99 78 79 inline bool JSVariableObject::symbolTableGet(const Identifier& propertyName, PropertySlot& slot) 80 { 81 size_t index = symbolTable().get(propertyName.ustring().rep()); 82 if (index != missingSymbolMarker()) { 83 slot.setValueSlot(this, &d->localStorage[index].value); 84 return true; 85 } 86 87 return false; 88 } 89 90 inline bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue* value, int attr) 91 { 92 size_t index = symbolTable().get(propertyName.ustring().rep()); 93 if (index != missingSymbolMarker()) { 94 LocalStorageEntry& entry = d->localStorage[index]; 95 entry.value = value; 96 entry.attributes = attr; 97 return true; 98 } 99 100 return false; 101 } 102 100 103 } // namespace KJS 101 104
Note:
See TracChangeset
for help on using the changeset viewer.