Changeset 29537 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jan 16, 2008, 1:50:19 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Geoffrey Garen and Anders Carlsson.

Remove uses of KJS_PURE_ECMA as we don't ever build with it defined,
and we have many features that are not included in the ECMA spec.

  • kjs/lexer.cpp: (KJS::Lexer::Lexer): (KJS::Lexer::setCode): (KJS::Lexer::nextLine): (KJS::Lexer::lex):
  • kjs/lexer.h:
  • kjs/string_object.cpp:
  • kjs/string_object.h:
Location:
trunk/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r29509 r29537  
     12008-01-16  Sam Weinig  <[email protected]>
     2
     3        Reviewed by Geoffrey Garen and Anders Carlsson.
     4
     5        Remove uses of KJS_PURE_ECMA as we don't ever build with it defined,
     6        and we have many features that are not included in the ECMA spec.
     7
     8        * kjs/lexer.cpp:
     9        (KJS::Lexer::Lexer):
     10        (KJS::Lexer::setCode):
     11        (KJS::Lexer::nextLine):
     12        (KJS::Lexer::lex):
     13        * kjs/lexer.h:
     14        * kjs/string_object.cpp:
     15        * kjs/string_object.h:
     16
    1172008-01-15  Sam Weinig  <[email protected]>
    218
  • trunk/JavaScriptCore/kjs/lexer.cpp

    r29075 r29537  
    8383  , code(0)
    8484  , length(0)
    85 #ifndef KJS_PURE_ECMA
    8685  , bol(true)
    87 #endif
    8886  , current(0)
    8987  , next1(0)
     
    111109  skipCR = false;
    112110  error = false;
    113 #ifndef KJS_PURE_ECMA
    114111  bol = true;
    115 #endif
    116112
    117113  // read first characters
     
    139135{
    140136  yylineno++;
    141 #ifndef KJS_PURE_ECMA
    142137  bol = true;
    143 #endif
    144138}
    145139
     
    223217        record8(current);
    224218        state = InDecimal;
    225 #ifndef KJS_PURE_ECMA
    226219        // <!-- marks the beginning of a line comment (for www usage)
    227220      } else if (current == '<' && next1 == '!' &&
     
    233226        shift(2);
    234227        state = InSingleLineComment;
    235 #endif
    236228      } else {
    237229        token = matchPunctuator(current, next1, next2, next3);
     
    466458    if (!done)
    467459      shift(1);
    468 #ifndef KJS_PURE_ECMA
    469460    if (state != Start && state != InSingleLineComment)
    470461      bol = false;
    471 #endif
    472462  }
    473463
  • trunk/JavaScriptCore/kjs/lexer.h

    r29075 r29537  
    130130    unsigned int length;
    131131    int yycolumn;
    132 #ifndef KJS_PURE_ECMA
    133132    int bol;     // begin of line
    134 #endif
    135133    bool error;
    136134
  • trunk/JavaScriptCore/kjs/string_object.cpp

    r29508 r29537  
    154154  toLocaleUpperCase     &stringProtoFuncToLocaleUpperCase DontEnum|Function       0
    155155  localeCompare         &stringProtoFuncLocaleCompare     DontEnum|Function       1
    156 #
    157 # Under here: html extension, should only exist if KJS_PURE_ECMA is not defined
    158 # I guess we need to generate two hashtables in the .lut.h file, and use #ifdef
    159 # to select the right one... TODO. #####
     156
    160157  big                   &stringProtoFuncBig               DontEnum|Function       0
    161158  small                 &stringProtoFuncSmall             DontEnum|Function       0
     
    894891}
    895892
    896 #ifndef KJS_PURE_ECMA
    897 
    898893JSValue* stringProtoFuncBig(ExecState* exec, JSObject* thisObj, const List&)
    899894{
     
    990985    return jsString("<a href=\"" + a0->toString(exec) + "\">" + s + "</a>");
    991986}
    992 
    993 #endif // KJS_PURE_ECMA
    994987
    995988// ------------------------------ StringObjectImp ------------------------------
  • trunk/JavaScriptCore/kjs/string_object.h

    r29508 r29537  
    106106  JSValue* stringProtoFuncLocaleCompare(ExecState*, JSObject*, const List&);
    107107
    108 #ifndef KJS_PURE_ECMA
    109108  JSValue* stringProtoFuncBig(ExecState*, JSObject*, const List&);
    110109  JSValue* stringProtoFuncSmall(ExecState*, JSObject*, const List&);
     
    120119  JSValue* stringProtoFuncAnchor(ExecState*, JSObject*, const List&);
    121120  JSValue* stringProtoFuncLink(ExecState*, JSObject*, const List&);
    122 #endif // KJS_PURE_ECMA
    123121
    124122  /**
Note: See TracChangeset for help on using the changeset viewer.