Ignore:
Timestamp:
Oct 28, 2007, 3:19:47 AM (18 years ago)
Author:
mjs
Message:

Rubber stamped by Mark.


  • avoid using non-portable SIZE_T_MAX in favor of std::numeric_limits
  • kjs/SymbolTable.h: (KJS::SymbolTableIndexHashTraits::emptyValue):
  • kjs/function.cpp: (KJS::ActivationImp::getOwnPropertySlot): (KJS::ActivationImp::put):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/function.cpp

    r27177 r27178  
    422422
    423423    // it's more efficient to just get and check for a special empty
    424     // value of SIZE_T_MAX than to do a separate contains check
     424    // value than to do a separate contains check
    425425    size_t index = symbolTable->get(propertyName.ustring().rep());
    426     if (index != SIZE_T_MAX) {
     426    if (index != missingSymbolMarker) {
    427427        slot.setValueSlot(this, &d->localStorage[index].value);
    428428        return true;
     
    461461
    462462  // it's more efficient to just get and check for a special empty
    463   // value of SIZE_T_MAX than to do a separate contains check
     463  // value than to do a separate contains check
    464464  size_t index = symbolTable->get(propertyName.ustring().rep());
    465   if (index != SIZE_T_MAX) {
     465  if (index != missingSymbolMarker) {
    466466    LocalStorageEntry& entry = d->localStorage[index];
    467467    entry.value = value;
Note: See TracChangeset for help on using the changeset viewer.