Changeset 2800 in webkit for trunk/JavaScriptCore/kjs/lexer.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/lexer.cpp

    r2772 r2800  
    118118
    119119  // read first characters
    120   current = (length > 0) ? code[0].unicode() : 0;
    121   next1 = (length > 1) ? code[1].unicode() : 0;
    122   next2 = (length > 2) ? code[2].unicode() : 0;
    123   next3 = (length > 3) ? code[3].unicode() : 0;
     120  current = (length > 0) ? code[0].uc : 0;
     121  next1 = (length > 1) ? code[1].uc : 0;
     122  next2 = (length > 2) ? code[2].uc : 0;
     123  next3 = (length > 3) ? code[3].uc : 0;
    124124}
    125125
     
    131131    next1 = next2;
    132132    next2 = next3;
    133     next3 = (pos + 3 < length) ? code[pos+3].unicode() : 0;
     133    next3 = (pos + 3 < length) ? code[pos+3].uc : 0;
    134134  }
    135135}
Note: See TracChangeset for help on using the changeset viewer.