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/identifier.cpp

    r2776 r2800  
    5050    const UChar *d = r->dat;
    5151    for (int i = 0; i != length; ++i)
    52         if (d[i].unicode() != (unsigned char)s[i])
     52        if (d[i].uc != (unsigned char)s[i])
    5353            return false;
    5454    return s[length] == 0;
     
    6161    const UChar *d = r->dat;
    6262    for (int i = 0; i != length; ++i)
    63         if (d[i].unicode() != s[i].unicode())
     63        if (d[i].uc != s[i].uc)
    6464            return false;
    6565    return true;
     
    7474    const UChar *s = b->dat;
    7575    for (int i = 0; i != length; ++i)
    76         if (d[i].unicode() != s[i].unicode())
     76        if (d[i].uc != s[i].uc)
    7777            return false;
    7878    return true;
Note: See TracChangeset for help on using the changeset viewer.