Changeset 27178 in webkit for trunk/JavaScriptCore/kjs/function.cpp
- Timestamp:
- Oct 28, 2007, 3:19:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.cpp
r27177 r27178 422 422 423 423 // it's more efficient to just get and check for a special empty 424 // value of SIZE_T_MAXthan to do a separate contains check424 // value than to do a separate contains check 425 425 size_t index = symbolTable->get(propertyName.ustring().rep()); 426 if (index != SIZE_T_MAX) {426 if (index != missingSymbolMarker) { 427 427 slot.setValueSlot(this, &d->localStorage[index].value); 428 428 return true; … … 461 461 462 462 // it's more efficient to just get and check for a special empty 463 // value of SIZE_T_MAXthan to do a separate contains check463 // value than to do a separate contains check 464 464 size_t index = symbolTable->get(propertyName.ustring().rep()); 465 if (index != SIZE_T_MAX) {465 if (index != missingSymbolMarker) { 466 466 LocalStorageEntry& entry = d->localStorage[index]; 467 467 entry.value = value;
Note:
See TracChangeset
for help on using the changeset viewer.