Changeset 29537 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jan 16, 2008, 1:50:19 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r29509 r29537 1 2008-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 1 17 2008-01-15 Sam Weinig <[email protected]> 2 18 -
trunk/JavaScriptCore/kjs/lexer.cpp
r29075 r29537 83 83 , code(0) 84 84 , length(0) 85 #ifndef KJS_PURE_ECMA86 85 , bol(true) 87 #endif88 86 , current(0) 89 87 , next1(0) … … 111 109 skipCR = false; 112 110 error = false; 113 #ifndef KJS_PURE_ECMA114 111 bol = true; 115 #endif116 112 117 113 // read first characters … … 139 135 { 140 136 yylineno++; 141 #ifndef KJS_PURE_ECMA142 137 bol = true; 143 #endif144 138 } 145 139 … … 223 217 record8(current); 224 218 state = InDecimal; 225 #ifndef KJS_PURE_ECMA226 219 // <!-- marks the beginning of a line comment (for www usage) 227 220 } else if (current == '<' && next1 == '!' && … … 233 226 shift(2); 234 227 state = InSingleLineComment; 235 #endif236 228 } else { 237 229 token = matchPunctuator(current, next1, next2, next3); … … 466 458 if (!done) 467 459 shift(1); 468 #ifndef KJS_PURE_ECMA469 460 if (state != Start && state != InSingleLineComment) 470 461 bol = false; 471 #endif472 462 } 473 463 -
trunk/JavaScriptCore/kjs/lexer.h
r29075 r29537 130 130 unsigned int length; 131 131 int yycolumn; 132 #ifndef KJS_PURE_ECMA133 132 int bol; // begin of line 134 #endif135 133 bool error; 136 134 -
trunk/JavaScriptCore/kjs/string_object.cpp
r29508 r29537 154 154 toLocaleUpperCase &stringProtoFuncToLocaleUpperCase DontEnum|Function 0 155 155 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 160 157 big &stringProtoFuncBig DontEnum|Function 0 161 158 small &stringProtoFuncSmall DontEnum|Function 0 … … 894 891 } 895 892 896 #ifndef KJS_PURE_ECMA897 898 893 JSValue* stringProtoFuncBig(ExecState* exec, JSObject* thisObj, const List&) 899 894 { … … 990 985 return jsString("<a href=\"" + a0->toString(exec) + "\">" + s + "</a>"); 991 986 } 992 993 #endif // KJS_PURE_ECMA994 987 995 988 // ------------------------------ StringObjectImp ------------------------------ -
trunk/JavaScriptCore/kjs/string_object.h
r29508 r29537 106 106 JSValue* stringProtoFuncLocaleCompare(ExecState*, JSObject*, const List&); 107 107 108 #ifndef KJS_PURE_ECMA109 108 JSValue* stringProtoFuncBig(ExecState*, JSObject*, const List&); 110 109 JSValue* stringProtoFuncSmall(ExecState*, JSObject*, const List&); … … 120 119 JSValue* stringProtoFuncAnchor(ExecState*, JSObject*, const List&); 121 120 JSValue* stringProtoFuncLink(ExecState*, JSObject*, const List&); 122 #endif // KJS_PURE_ECMA123 121 124 122 /**
Note:
See TracChangeset
for help on using the changeset viewer.