Changeset 2800 in webkit for trunk/JavaScriptCore/kjs/ustring.cpp


Ignore:
Timestamp:
Nov 21, 2002, 7:39:47 AM (23 years ago)
Author:
darin
Message:
  • add self-check to property map in hopes of finding the cnet.com bug
  • kjs/property_map.h: Add check() function.
  • kjs/property_map.cpp: Add the checking, controlled by DO_CONSISTENCY_CHECK.
  • fixed UChar interface so it's not so slow in debug builds
  • kjs/ustring.h: Nothing in UChar needs to be private.
  • kjs/function.cpp: (GlobalFuncImp::call):
  • kjs/function_object.cpp: (FunctionObjectImp::construct):
  • kjs/identifier.cpp:
  • kjs/lexer.cpp: (Lexer::setCode), (Lexer::shift):
  • kjs/lookup.cpp: (keysMatch):
  • kjs/ustring.cpp: (UString::Rep::computeHash), (KJS::compare): Use the "uc" field instead of the "unicode()" inline function.
File:
1 edited

Legend:

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

    r2772 r2800  
    183183    unsigned h = length;
    184184    for (int i = 0; i < prefixLength; i++)
    185         h = 127 * h + s[i].unicode();
     185        h = 127 * h + s[i].uc;
    186186    for (int i = suffixPosition; i < length; i++)
    187         h = 127 * h + s[i].unicode();
     187        h = 127 * h + s[i].uc;
    188188    if (h == 0)
    189189        h = 0x80000000;
     
    721721  }
    722722  if (l < lmin)
    723     return (c1->unicode() > c2->unicode()) ? 1 : -1;
     723    return (c1->uc > c2->uc) ? 1 : -1;
    724724
    725725  if (l1 == l2) {
Note: See TracChangeset for help on using the changeset viewer.