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

    r2799 r2800  
    506506    const UChar *c = str.data();
    507507    for (int k = 0; k < str.size(); k++, c++) {
    508       int u = c->unicode();
     508      int u = c->uc;
    509509      if (u > 255) {
    510510        char tmp[7];
     
    530530      const UChar *c = str.data() + k;
    531531      if (*c == UChar('%') && k <= len - 6 && *(c+1) == UChar('u')) {
    532         u = Lexer::convertUnicode((c+2)->unicode(), (c+3)->unicode(),
    533                                   (c+4)->unicode(), (c+5)->unicode());
     532        u = Lexer::convertUnicode((c+2)->uc, (c+3)->uc,
     533                                  (c+4)->uc, (c+5)->uc);
    534534        c = &u;
    535535        k += 5;
    536536      } else if (*c == UChar('%') && k <= len - 3) {
    537         u = UChar(Lexer::convertHex((c+1)->unicode(), (c+2)->unicode()));
     537        u = UChar(Lexer::convertHex((c+1)->uc, (c+2)->uc));
    538538        c = &u;
    539539        k += 2;
Note: See TracChangeset for help on using the changeset viewer.