Changeset 39554 in webkit
- Timestamp:
- Jan 2, 2009, 12:59:17 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r39553 r39554 1 2009-01-02 David Kilzer <[email protected]> 2 3 Bug 23080: Remove last vestiges of KJS references 4 5 <https://bugs.webkit.org/show_bug.cgi?id=23080> 6 7 Reviewed by Darin Adler. 8 9 Also updated Apple copyright statements. 10 11 * DerivedSources.make: Changed bison "kjsyy" prefix to "jscyy". 12 * GNUmakefile.am: Ditto. 13 * JavaScriptCore.pri: Ditto. Also changed KJSBISON to JSCBISON 14 and kjsbison to jscbison. 15 16 * JavaScriptCoreSources.bkl: Changed JSCORE_KJS_SOURCES to 17 JSCORE_JSC_SOURCES. 18 * jscore.bkl: Ditto. 19 20 * create_hash_table: Updated copyright and removed old comment. 21 22 * parser/Grammar.y: Changed "kjsyy" prefix to "jscyy" prefix. 23 * parser/Lexer.cpp: Ditto. Also changed KJS_DEBUG_LEX to 24 JSC_DEBUG_LEX. 25 (jscyylex): 26 (JSC::Lexer::lex): 27 * parser/Parser.cpp: Ditto. 28 (JSC::Parser::parse): 29 30 * pcre/dftables: Changed "kjs_pcre_" prefix to "jsc_pcre_". 31 * pcre/pcre_compile.cpp: Ditto. 32 (getOthercaseRange): 33 (encodeUTF8): 34 (compileBranch): 35 (calculateCompiledPatternLength): 36 * pcre/pcre_exec.cpp: Ditto. 37 (matchRef): 38 (getUTF8CharAndIncrementLength): 39 (match): 40 * pcre/pcre_internal.h: Ditto. 41 (toLowerCase): 42 (flipCase): 43 (classBitmapForChar): 44 (charTypeForChar): 45 * pcre/pcre_tables.cpp: Ditto. 46 * pcre/pcre_ucp_searchfuncs.cpp: Ditto. 47 (jsc_pcre_ucp_othercase): 48 * pcre/pcre_xclass.cpp: Ditto. 49 (getUTF8CharAndAdvancePointer): 50 (jsc_pcre_xclass): 51 52 * runtime/Collector.h: Updated header guards using the 53 clean-header-guards script. 54 * runtime/CollectorHeapIterator.h: Added missing header guard. 55 * runtime/Identifier.h: Updated header guards. 56 * runtime/JSFunction.h: Fixed end-of-namespace comment. 57 58 * runtime/JSGlobalObject.cpp: 59 (JSC::JSGlobalObject::reset): Renamed "kjsprint" debug function 60 to "jscprint". Changed implementation method from 61 globalFuncKJSPrint() to globalFuncJSCPrint(). 62 * runtime/JSGlobalObjectFunctions.cpp: 63 (JSC::globalFuncJSCPrint): Renamed from globalFuncKJSPrint(). 64 * runtime/JSGlobalObjectFunctions.h: Ditto. 65 66 * runtime/JSImmediate.h: Updated header guards. 67 * runtime/JSLock.h: Ditto. 68 * runtime/JSType.h: Ditto. 69 * runtime/JSWrapperObject.h: Ditto. 70 * runtime/Lookup.h: Ditto. 71 * runtime/Operations.h: Ditto. 72 * runtime/Protect.h: Ditto. 73 * runtime/RegExp.h: Ditto. 74 * runtime/UString.h: Ditto. 75 76 * tests/mozilla/js1_5/Array/regress-157652.js: Changed "KJS" 77 reference in comment to "JSC". 78 79 * wrec/CharacterClassConstructor.cpp: Change "kjs_pcre_" function 80 prefixes to "jsc_pcre_". 81 (JSC::WREC::CharacterClassConstructor::put): 82 (JSC::WREC::CharacterClassConstructor::flush): 83 84 * wtf/unicode/Unicode.h: Change "KJS_" header guard to "WTF_". 85 * wtf/unicode/icu/UnicodeIcu.h: Ditto. 86 * wtf/unicode/qt4/UnicodeQt4.h: Ditto. 87 1 88 2009-01-02 Oliver Hunt <[email protected]> 2 89 -
trunk/JavaScriptCore/DerivedSources.make
r38531 r39554 1 # Copyright (C) 2006 Apple Computer,Inc. All rights reserved.1 # Copyright (C) 2006, 2007, 2008 2009 Apple Inc. All rights reserved. 2 2 # 3 3 # Redistribution and use in source and binary forms, with or without … … 60 60 61 61 Grammar.cpp: Grammar.y 62 bison -d -p kjsyy $< -o $@ > bison_out.txt 2>&162 bison -d -p jscyy $< -o $@ > bison_out.txt 2>&1 63 63 perl -p -e 'END { if ($$conflict) { unlink "Grammar.cpp"; die; } } $$conflict ||= /conflict/' < bison_out.txt 64 64 touch Grammar.cpp.h -
trunk/JavaScriptCore/GNUmakefile.am
r39487 r39554 431 431 432 432 DerivedSources/Grammar.cpp: $(srcdir)/JavaScriptCore/parser/Grammar.y 433 $(BISON) -d -p kjsyy $(srcdir)/JavaScriptCore/parser/Grammar.y -o $@ > bison_out.txt 2>&1433 $(BISON) -d -p jscyy $(srcdir)/JavaScriptCore/parser/Grammar.y -o $@ > bison_out.txt 2>&1 434 434 $(PERL) -p -e 'END { if ($$conflict) { unlink "Grammar.cpp"; die; } } $$conflict ||= /conflict/' < bison_out.txt 435 435 cat $(GENSOURCES)/Grammar.hpp > $(GENSOURCES)/Grammar.h -
trunk/JavaScriptCore/JavaScriptCore.pri
r39487 r39554 42 42 parser/Keywords.table 43 43 44 KJSBISON += \44 JSCBISON += \ 45 45 parser/Grammar.y 46 46 … … 196 196 197 197 # GENERATOR 2: bison grammar 198 kjsbison.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.cpp199 kjsbison.commands = bison -d -p kjsyy ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_BASE}.tab.c && $(MOVE) ${QMAKE_FILE_BASE}.tab.c ${QMAKE_FILE_OUT} && $(MOVE) ${QMAKE_FILE_BASE}.tab.h $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.h200 kjsbison.depend = ${QMAKE_FILE_NAME}201 kjsbison.input = KJSBISON202 kjsbison.variable_out = GENERATED_SOURCES203 kjsbison.dependency_type = TYPE_C204 kjsbison.CONFIG = target_predeps205 addExtraCompilerWithHeader( kjsbison)206 198 jscbison.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.cpp 199 jscbison.commands = bison -d -p jscyy ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_BASE}.tab.c && $(MOVE) ${QMAKE_FILE_BASE}.tab.c ${QMAKE_FILE_OUT} && $(MOVE) ${QMAKE_FILE_BASE}.tab.h $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.h 200 jscbison.depend = ${QMAKE_FILE_NAME} 201 jscbison.input = JSCBISON 202 jscbison.variable_out = GENERATED_SOURCES 203 jscbison.dependency_type = TYPE_C 204 jscbison.CONFIG = target_predeps 205 addExtraCompilerWithHeader(jscbison) 206 -
trunk/JavaScriptCore/JavaScriptCoreSources.bkl
r39487 r39554 49 49 debugger/DebuggerCallFrame.cpp 50 50 </set> 51 <set append="1" var="JSCORE_ KJS_SOURCES">51 <set append="1" var="JSCORE_JSC_SOURCES"> 52 52 DerivedSources/JavaScriptCore/Grammar.cpp 53 53 wtf/dtoa.cpp -
trunk/JavaScriptCore/create_hash_table
r39056 r39554 6 6 # David Faure <[email protected]> 7 7 # Modified (c) 2004 by Nikolas Zimmermann <[email protected]> 8 # Copyright (C) 2007 Apple Inc. All rights reserved. 9 # 10 # Part of the KJS library. 8 # Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. 11 9 # 12 10 # This library is free software; you can redistribute it and/or -
trunk/JavaScriptCore/jscore.bkl
r38531 r39554 41 41 $(JSCORE_BYTECOMPILER_SOURCES) 42 42 $(JSCORE_DEBUGGER_SOURCES) 43 $(JSCORE_ KJS_SOURCES)43 $(JSCORE_JSC_SOURCES) 44 44 $(JSCORE_PCRE_SOURCES) 45 45 $(JSCORE_PARSER_SOURCES) -
trunk/JavaScriptCore/parser/Grammar.y
r39534 r39554 5 5 /* 6 6 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 7 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.7 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 8 8 * Copyright (C) 2007 Eric Seidel <[email protected]> 9 9 * … … 44 44 /* default values for bison */ 45 45 #define YYDEBUG 0 // Set to 1 to debug a parse error. 46 #define kjsyydebug 0 // Set to 1 to debug a parse error.46 #define jscyydebug 0 // Set to 1 to debug a parse error. 47 47 #if !PLATFORM(DARWIN) 48 48 // avoid triggering warnings in older bison … … 50 50 #endif 51 51 52 int kjsyylex(void* lvalp, void* llocp, void* globalPtr);53 int kjsyyerror(const char*);52 int jscyylex(void* lvalp, void* llocp, void* globalPtr); 53 int jscyyerror(const char*); 54 54 static inline bool allowAutomaticSemicolon(JSC::Lexer&, int); 55 55 -
trunk/JavaScriptCore/parser/Lexer.cpp
r39521 r39554 1 1 /* 2 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All Rights Reserved.3 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All Rights Reserved. 4 4 * Copyright (C) 2007 Cameron Zwarich ([email protected]) 5 5 * … … 50 50 51 51 // a bridge for yacc from the C world to C++ 52 int kjsyylex(void* lvalp, void* llocp, void* globalData)52 int jscyylex(void* lvalp, void* llocp, void* globalData) 53 53 { 54 54 return static_cast<JSGlobalData*>(globalData)->lexer->lex(lvalp, llocp); … … 467 467 m_buffer8.append('\0'); 468 468 469 #ifdef KJS_DEBUG_LEX469 #ifdef JSC_DEBUG_LEX 470 470 fprintf(stderr, "line: %d ", lineNo()); 471 471 fprintf(stderr, "yytext (%x): ", m_buffer8[0]); … … 500 500 } 501 501 502 #ifdef KJS_DEBUG_LEX502 #ifdef JSC_DEBUG_LEX 503 503 switch (m_state) { 504 504 case Eof: … … 574 574 break; 575 575 case Bad: 576 #ifdef KJS_DEBUG_LEX576 #ifdef JSC_DEBUG_LEX 577 577 fprintf(stderr, "yylex: ERROR.\n"); 578 578 #endif -
trunk/JavaScriptCore/parser/Parser.cpp
r39521 r39554 2 2 * Copyright (C) 1999-2001 Harri Porten ([email protected]) 3 3 * Copyright (C) 2001 Peter Kelly ([email protected]) 4 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved.4 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 5 5 * 6 6 * This library is free software; you can redistribute it and/or … … 32 32 using std::auto_ptr; 33 33 34 extern int kjsyyparse(void*);34 extern int jscyyparse(void*); 35 35 36 36 namespace JSC { … … 54 54 lexer.setCode(*m_source); 55 55 56 int parseError = kjsyyparse(globalData);56 int parseError = jscyyparse(globalData); 57 57 bool lexError = lexer.sawError(); 58 58 lexer.clear(); -
trunk/JavaScriptCore/pcre/dftables
r37832 r39554 9 9 # Originally written by Philip Hazel 10 10 # Copyright (c) 1997-2006 University of Cambridge 11 # Copyright (C) 2002, 2004, 2006, 2007, 2008 Apple Inc. All rights reserved.11 # Copyright (C) 2002, 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 12 12 # 13 13 # ----------------------------------------------------------------------------- … … 85 85 "128 (ASCII characters). These tables are used when no external tables are\n" . 86 86 "passed to PCRE. */\n\n" . 87 "const unsigned char kjs_pcre_default_tables[%d] = {\n\n" .87 "const unsigned char jsc_pcre_default_tables[%d] = {\n\n" . 88 88 "/* This table is a lower casing table. */\n\n", $pcre_internal{tables_length}); 89 89 -
trunk/JavaScriptCore/pcre/pcre_compile.cpp
r39164 r39554 7 7 Originally written by Philip Hazel 8 8 Copyright (c) 1997-2006 University of Cambridge 9 Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved.9 Copyright (C) 2002, 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 10 10 Copyright (C) 2007 Eric Seidel <[email protected]> 11 11 … … 487 487 488 488 for (c = *cptr; c <= d; c++) { 489 if ((othercase = kjs_pcre_ucp_othercase(c)) >= 0)489 if ((othercase = jsc_pcre_ucp_othercase(c)) >= 0) 490 490 break; 491 491 } … … 498 498 499 499 for (++c; c <= d; c++) { 500 if ( kjs_pcre_ucp_othercase(c) != next)500 if (jsc_pcre_ucp_othercase(c) != next) 501 501 break; 502 502 next++; … … 526 526 { 527 527 int i; 528 for (i = 0; i < kjs_pcre_utf8_table1_size; i++)529 if (cvalue <= kjs_pcre_utf8_table1[i])528 for (i = 0; i < jsc_pcre_utf8_table1_size; i++) 529 if (cvalue <= jsc_pcre_utf8_table1[i]) 530 530 break; 531 531 buffer += i; … … 534 534 cvalue >>= 6; 535 535 } 536 *buffer = kjs_pcre_utf8_table2[i] | cvalue;536 *buffer = jsc_pcre_utf8_table2[i] | cvalue; 537 537 return i + 1; 538 538 } … … 910 910 if (options & IgnoreCaseOption) { 911 911 int othercase; 912 if ((othercase = kjs_pcre_ucp_othercase(c)) >= 0) {912 if ((othercase = jsc_pcre_ucp_othercase(c)) >= 0) { 913 913 *class_utf8data++ = XCL_SINGLE; 914 914 class_utf8data += encodeUTF8(othercase, class_utf8data); … … 2056 2056 if (c > 127) { 2057 2057 int i; 2058 for (i = 0; i < kjs_pcre_utf8_table1_size; i++)2059 if (c <= kjs_pcre_utf8_table1[i]) break;2058 for (i = 0; i < jsc_pcre_utf8_table1_size; i++) 2059 if (c <= jsc_pcre_utf8_table1[i]) break; 2060 2060 length += i; 2061 2061 lastitemlength += i; … … 2510 2510 if (c > 127) { 2511 2511 int i; 2512 for (i = 0; i < kjs_pcre_utf8_table1_size; i++)2513 if (c <= kjs_pcre_utf8_table1[i])2512 for (i = 0; i < jsc_pcre_utf8_table1_size; i++) 2513 if (c <= jsc_pcre_utf8_table1[i]) 2514 2514 break; 2515 2515 length += i; -
trunk/JavaScriptCore/pcre/pcre_exec.cpp
r38205 r39554 7 7 Originally written by Philip Hazel 8 8 Copyright (c) 1997-2006 University of Cambridge 9 Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved.9 Copyright (C) 2002, 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 10 10 Copyright (C) 2007 Eric Seidel <[email protected]> 11 11 … … 251 251 while (length-- > 0) { 252 252 UChar c = *p++; 253 int othercase = kjs_pcre_ucp_othercase(c);253 int othercase = jsc_pcre_ucp_othercase(c); 254 254 UChar d = *subjectPtr++; 255 255 if (c != d && othercase != d) … … 404 404 c = *subjectPtr; 405 405 if ((c & 0xc0) == 0xc0) { 406 int gcaa = kjs_pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */406 int gcaa = jsc_pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */ 407 407 int gcss = 6 * gcaa; 408 c = (c & kjs_pcre_utf8_table3[gcaa]) << gcss;408 c = (c & jsc_pcre_utf8_table3[gcaa]) << gcss; 409 409 for (int gcii = 1; gcii <= gcaa; gcii++) { 410 410 gcss -= 6; … … 1049 1049 RRETURN_NO_MATCH; 1050 1050 int c = *stack.currentFrame->args.subjectPtr++; 1051 if (! kjs_pcre_xclass(c, stack.currentFrame->locals.data))1051 if (!jsc_pcre_xclass(c, stack.currentFrame->locals.data)) 1052 1052 RRETURN_NO_MATCH; 1053 1053 } … … 1070 1070 RRETURN; 1071 1071 int c = *stack.currentFrame->args.subjectPtr++; 1072 if (! kjs_pcre_xclass(c, stack.currentFrame->locals.data))1072 if (!jsc_pcre_xclass(c, stack.currentFrame->locals.data)) 1073 1073 RRETURN; 1074 1074 } … … 1084 1084 break; 1085 1085 int c = *stack.currentFrame->args.subjectPtr; 1086 if (! kjs_pcre_xclass(c, stack.currentFrame->locals.data))1086 if (!jsc_pcre_xclass(c, stack.currentFrame->locals.data)) 1087 1087 break; 1088 1088 ++stack.currentFrame->args.subjectPtr; … … 1123 1123 RRETURN_NO_MATCH; 1124 1124 int dc = *stack.currentFrame->args.subjectPtr++; 1125 if (stack.currentFrame->locals.fc != dc && kjs_pcre_ucp_othercase(stack.currentFrame->locals.fc) != dc)1125 if (stack.currentFrame->locals.fc != dc && jsc_pcre_ucp_othercase(stack.currentFrame->locals.fc) != dc) 1126 1126 RRETURN_NO_MATCH; 1127 1127 NEXT_OPCODE; … … 1187 1187 1188 1188 if (stack.currentFrame->locals.fc <= 0xFFFF) { 1189 int othercase = md.ignoreCase ? kjs_pcre_ucp_othercase(stack.currentFrame->locals.fc) : -1;1189 int othercase = md.ignoreCase ? jsc_pcre_ucp_othercase(stack.currentFrame->locals.fc) : -1; 1190 1190 1191 1191 for (int i = 1; i <= min; i++) { -
trunk/JavaScriptCore/pcre/pcre_internal.h
r36612 r39554 7 7 Originally written by Philip Hazel 8 8 Copyright (c) 1997-2006 University of Cambridge 9 Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved.9 Copyright (C) 2002, 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 10 10 11 11 ----------------------------------------------------------------------------- … … 341 341 pcre_tables.c module. */ 342 342 343 #define kjs_pcre_utf8_table1_size 6344 345 extern const int kjs_pcre_utf8_table1[6];346 extern const int kjs_pcre_utf8_table2[6];347 extern const int kjs_pcre_utf8_table3[6];348 extern const unsigned char kjs_pcre_utf8_table4[0x40];349 350 extern const unsigned char kjs_pcre_default_tables[tables_length];343 #define jsc_pcre_utf8_table1_size 6 344 345 extern const int jsc_pcre_utf8_table1[6]; 346 extern const int jsc_pcre_utf8_table2[6]; 347 extern const int jsc_pcre_utf8_table3[6]; 348 extern const unsigned char jsc_pcre_utf8_table4[0x40]; 349 350 extern const unsigned char jsc_pcre_default_tables[tables_length]; 351 351 352 352 static inline unsigned char toLowerCase(unsigned char c) 353 353 { 354 static const unsigned char* lowerCaseChars = kjs_pcre_default_tables + lcc_offset;354 static const unsigned char* lowerCaseChars = jsc_pcre_default_tables + lcc_offset; 355 355 return lowerCaseChars[c]; 356 356 } … … 358 358 static inline unsigned char flipCase(unsigned char c) 359 359 { 360 static const unsigned char* flippedCaseChars = kjs_pcre_default_tables + fcc_offset;360 static const unsigned char* flippedCaseChars = jsc_pcre_default_tables + fcc_offset; 361 361 return flippedCaseChars[c]; 362 362 } … … 364 364 static inline unsigned char classBitmapForChar(unsigned char c) 365 365 { 366 static const unsigned char* charClassBitmaps = kjs_pcre_default_tables + cbits_offset;366 static const unsigned char* charClassBitmaps = jsc_pcre_default_tables + cbits_offset; 367 367 return charClassBitmaps[c]; 368 368 } … … 370 370 static inline unsigned char charTypeForChar(unsigned char c) 371 371 { 372 const unsigned char* charTypeMap = kjs_pcre_default_tables + ctypes_offset;372 const unsigned char* charTypeMap = jsc_pcre_default_tables + ctypes_offset; 373 373 return charTypeMap[c]; 374 374 } … … 414 414 but are not part of the public API and so not exported from the library. */ 415 415 416 extern int kjs_pcre_ucp_othercase(unsigned);417 extern bool kjs_pcre_xclass(int, const unsigned char*);416 extern int jsc_pcre_ucp_othercase(unsigned); 417 extern bool jsc_pcre_xclass(int, const unsigned char*); 418 418 419 419 #endif -
trunk/JavaScriptCore/pcre/pcre_tables.cpp
r34858 r39554 7 7 Originally written by Philip Hazel 8 8 Copyright (c) 1997-2006 University of Cambridge 9 Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved.9 Copyright (C) 2002, 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 10 10 11 11 ----------------------------------------------------------------------------- … … 51 51 character. */ 52 52 53 const int kjs_pcre_utf8_table1[6] =53 const int jsc_pcre_utf8_table1[6] = 54 54 { 0x7f, 0x7ff, 0xffff, 0x1fffff, 0x3ffffff, 0x7fffffff}; 55 55 … … 57 57 first byte of a character, indexed by the number of additional bytes. */ 58 58 59 const int kjs_pcre_utf8_table2[6] = { 0, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc};60 const int kjs_pcre_utf8_table3[6] = { 0xff, 0x1f, 0x0f, 0x07, 0x03, 0x01};59 const int jsc_pcre_utf8_table2[6] = { 0, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc}; 60 const int jsc_pcre_utf8_table3[6] = { 0xff, 0x1f, 0x0f, 0x07, 0x03, 0x01}; 61 61 62 62 /* Table of the number of extra characters, indexed by the first character … … 64 64 0x3d. */ 65 65 66 const unsigned char kjs_pcre_utf8_table4[0x40] = {66 const unsigned char jsc_pcre_utf8_table4[0x40] = { 67 67 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 68 68 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -
trunk/JavaScriptCore/pcre/pcre_ucp_searchfuncs.cpp
r34858 r39554 7 7 Originally written by Philip Hazel 8 8 Copyright (c) 1997-2006 University of Cambridge 9 Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved.9 Copyright (C) 2002, 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 10 10 11 11 ----------------------------------------------------------------------------- … … 61 61 */ 62 62 63 int kjs_pcre_ucp_othercase(unsigned c)63 int jsc_pcre_ucp_othercase(unsigned c) 64 64 { 65 65 int bot = 0; -
trunk/JavaScriptCore/pcre/pcre_xclass.cpp
r34858 r39554 7 7 Originally written by Philip Hazel 8 8 Copyright (c) 1997-2006 University of Cambridge 9 Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved.9 Copyright (C) 2002, 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 10 10 11 11 ----------------------------------------------------------------------------- … … 65 65 c = *subjectPtr++; 66 66 if ((c & 0xc0) == 0xc0) { 67 int gcaa = kjs_pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */67 int gcaa = jsc_pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */ 68 68 int gcss = 6 * gcaa; 69 c = (c & kjs_pcre_utf8_table3[gcaa]) << gcss;69 c = (c & jsc_pcre_utf8_table3[gcaa]) << gcss; 70 70 while (gcaa-- > 0) { 71 71 gcss -= 6; … … 75 75 } 76 76 77 bool kjs_pcre_xclass(int c, const unsigned char* data)77 bool jsc_pcre_xclass(int c, const unsigned char* data) 78 78 { 79 79 bool negated = (*data & XCL_NOT); -
trunk/JavaScriptCore/runtime/Collector.h
r38849 r39554 2 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 3 3 * Copyright (C) 2001 Peter Kelly ([email protected]) 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 5 5 * 6 6 * This library is free software; you can redistribute it and/or … … 20 20 */ 21 21 22 #ifndef KJSCOLLECTOR_H_23 #define KJSCOLLECTOR_H_22 #ifndef Collector_h 23 #define Collector_h 24 24 25 25 #include "JSImmediate.h" … … 285 285 } // namespace JSC 286 286 287 #endif /* KJSCOLLECTOR_H_*/287 #endif /* Collector_h */ -
trunk/JavaScriptCore/runtime/CollectorHeapIterator.h
r38137 r39554 1 1 /* 2 * Copyright (C) 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 26 26 #include "config.h" 27 27 #include "Collector.h" 28 29 #ifndef CollectorHeapIterator_h 30 #define CollectorHeapIterator_h 28 31 29 32 namespace JSC { … … 84 87 85 88 } // namespace JSC 89 90 #endif // CollectorHeapIterator_h -
trunk/JavaScriptCore/runtime/Identifier.h
r39551 r39554 1 1 /* 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * This library is free software; you can redistribute it and/or … … 19 19 */ 20 20 21 #ifndef KJS_IDENTIFIER_H22 #define KJS_IDENTIFIER_H21 #ifndef Identifier_h 22 #define Identifier_h 23 23 24 24 #include "JSGlobalData.h" … … 142 142 } // namespace JSC 143 143 144 #endif // KJS_IDENTIFIER_H144 #endif // Identifier_h -
trunk/JavaScriptCore/runtime/JSFunction.h
r38826 r39554 1 1 /* 2 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 3 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved.3 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 4 * Copyright (C) 2007 Cameron Zwarich ([email protected]) 5 5 * Copyright (C) 2007 Maks Orlovich … … 99 99 } 100 100 101 } // namespace kJS101 } // namespace JSC 102 102 103 103 #endif // JSFunction_h -
trunk/JavaScriptCore/runtime/JSGlobalObject.cpp
r39320 r39554 1 1 /* 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2008 Cameron Zwarich ([email protected]) 4 4 * … … 331 331 putDirectFunctionWithoutTransition(exec, new (exec) PrototypeFunction(exec, d()->prototypeFunctionStructure.get(), 1, Identifier(exec, "encodeURIComponent"), globalFuncEncodeURIComponent), DontEnum); 332 332 #ifndef NDEBUG 333 putDirectFunctionWithoutTransition(exec, new (exec) PrototypeFunction(exec, d()->prototypeFunctionStructure.get(), 1, Identifier(exec, " kjsprint"), globalFuncKJSPrint), DontEnum);333 putDirectFunctionWithoutTransition(exec, new (exec) PrototypeFunction(exec, d()->prototypeFunctionStructure.get(), 1, Identifier(exec, "jscprint"), globalFuncJSCPrint), DontEnum); 334 334 #endif 335 335 -
trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
r39320 r39554 2 2 * Copyright (C) 1999-2002 Harri Porten ([email protected]) 3 3 * Copyright (C) 2001 Peter Kelly ([email protected]) 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 5 5 * Copyright (C) 2007 Cameron Zwarich ([email protected]) 6 6 * Copyright (C) 2007 Maks Orlovich … … 421 421 422 422 #ifndef NDEBUG 423 JSValue* globalFunc KJSPrint(ExecState* exec, JSObject*, JSValue*, const ArgList& args)423 JSValue* globalFuncJSCPrint(ExecState* exec, JSObject*, JSValue*, const ArgList& args) 424 424 { 425 425 CStringBuffer string; -
trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.h
r37938 r39554 1 1 /* 2 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 3 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved.3 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 4 * Copyright (C) 2007 Cameron Zwarich ([email protected]) 5 5 * Copyright (C) 2007 Maks Orlovich … … 48 48 JSValue* globalFuncUnescape(ExecState*, JSObject*, JSValue*, const ArgList&); 49 49 #ifndef NDEBUG 50 JSValue* globalFunc KJSPrint(ExecState*, JSObject*, JSValue*, const ArgList&);50 JSValue* globalFuncJSCPrint(ExecState*, JSObject*, JSValue*, const ArgList&); 51 51 #endif 52 52 -
trunk/JavaScriptCore/runtime/JSImmediate.h
r39540 r39554 1 1 /* 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2006 Alexey Proskuryakov ([email protected]) 4 4 * … … 20 20 */ 21 21 22 #ifndef KJS_JS_IMMEDIATE_H23 #define KJS_JS_IMMEDIATE_H22 #ifndef JSImmediate_h 23 #define JSImmediate_h 24 24 25 25 #include <wtf/Assertions.h> … … 478 478 } // namespace JSC 479 479 480 #endif 480 #endif // JSImmediate_h -
trunk/JavaScriptCore/runtime/JSLock.h
r38087 r39554 1 1 /* 2 * Copyright (C) 2005, 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2005, 2008, 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * This library is free software; you can redistribute it and/or … … 19 19 */ 20 20 21 #ifndef KJS_JSLock_h22 #define KJS_JSLock_h21 #ifndef JSLock_h 22 #define JSLock_h 23 23 24 24 #include <wtf/Assertions.h> … … 100 100 } // namespace 101 101 102 #endif // KJS_JSLock_h102 #endif // JSLock_h -
trunk/JavaScriptCore/runtime/JSType.h
r38087 r39554 1 1 /* 2 * This file is part of the KDE libraries 3 * Copyright (C) 2006 Apple Computer, Inc 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 3 * 5 4 * This library is free software; you can redistribute it and/or … … 20 19 */ 21 20 22 #ifndef KJS_JSTYPE_H23 #define KJS_JSTYPE_H21 #ifndef JSType_h 22 #define JSType_h 24 23 25 24 namespace JSC { -
trunk/JavaScriptCore/runtime/JSWrapperObject.h
r38440 r39554 1 1 /* 2 2 * Copyright (C) 2006 Maks Orlovich 3 * Copyright (C) 2006, 200 8Apple Inc. All rights reserved.3 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 4 * 5 5 * This library is free software; you can redistribute it and/or … … 20 20 */ 21 21 22 #ifndef KJS_JSWrapperObject_h23 #define KJS_JSWrapperObject_h22 #ifndef JSWrapperObject_h 23 #define JSWrapperObject_h 24 24 25 25 #include "JSObject.h" … … 58 58 } // namespace JSC 59 59 60 #endif // KJS_JSWrapperObject_h60 #endif // JSWrapperObject_h -
trunk/JavaScriptCore/runtime/Lookup.h
r39056 r39554 1 1 /* 2 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 3 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved.3 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 4 * 5 5 * This library is free software; you can redistribute it and/or … … 19 19 */ 20 20 21 #ifndef KJS_lookup_h22 #define KJS_lookup_h21 #ifndef Lookup_h 22 #define Lookup_h 23 23 24 24 #include "CallFrame.h" … … 274 274 } // namespace JSC 275 275 276 #endif // KJS_lookup_h276 #endif // Lookup_h -
trunk/JavaScriptCore/runtime/Operations.h
r38440 r39554 1 1 /* 2 * This file is part of the KDE libraries3 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 3 * Copyright (C) 2002, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 4 * 5 5 * This library is free software; you can redistribute it and/or … … 20 20 */ 21 21 22 #ifndef _KJS_OPERATIONS_H_23 #define _KJS_OPERATIONS_H_22 #ifndef Operations_h 23 #define Operations_h 24 24 25 25 #include "JSImmediate.h" -
trunk/JavaScriptCore/runtime/Protect.h
r38137 r39554 1 1 /* 2 * Copyright (C) 2004, 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2004, 2008, 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * This library is free software; you can redistribute it and/or … … 20 20 21 21 22 #ifndef protect_h23 #define protect_h22 #ifndef Protect_h 23 #define Protect_h 24 24 25 25 #include "JSCell.h" … … 152 152 } // namespace JSC 153 153 154 #endif // protect_h154 #endif // Protect_h -
trunk/JavaScriptCore/runtime/RegExp.h
r39083 r39554 1 1 /* 2 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. 4 4 * 5 5 * This library is free software; you can redistribute it and/or … … 19 19 */ 20 20 21 #ifndef KJS_REGEXP_H22 #define KJS_REGEXP_H21 #ifndef RegExp_h 22 #define RegExp_h 23 23 24 24 #include "UString.h" … … 76 76 } // namespace JSC 77 77 78 #endif // KJS_REGEXP_H78 #endif // RegExp_h -
trunk/JavaScriptCore/runtime/UString.h
r38473 r39554 1 1 /* 2 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 4 * 5 5 * This library is free software; you can redistribute it and/or … … 20 20 */ 21 21 22 #ifndef _KJS_USTRING_H_23 #define _KJS_USTRING_H_22 #ifndef UString_h 23 #define UString_h 24 24 25 25 #include "Collector.h" -
trunk/JavaScriptCore/tests/mozilla/js1_5/Array/regress-157652.js
r11995 r39554 117 117 printStatus(summary); 118 118 119 // KJSdoesn't run out of memory, so we don't expect an abnormal exit code119 // JSC doesn't run out of memory, so we don't expect an abnormal exit code 120 120 //expectExitCode(3); 121 121 var IN_RHINO = inRhino(); -
trunk/JavaScriptCore/wrec/CharacterClassConstructor.cpp
r38544 r39554 1 1 /* 2 * Copyright (C) 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 158 158 while (unicodeCurr <= hi) { 159 159 // Spin forwards over any characters that don't have two cases. 160 for (; kjs_pcre_ucp_othercase(unicodeCurr) == -1; ++unicodeCurr) {160 for (; jsc_pcre_ucp_othercase(unicodeCurr) == -1; ++unicodeCurr) { 161 161 // if this was the last character in the range, we're done. 162 162 if (unicodeCurr == hi) … … 165 165 // if we fall through to here, unicodeCurr <= hi & has another case. Get the other case. 166 166 UChar rangeStart = unicodeCurr; 167 UChar otherCurr = kjs_pcre_ucp_othercase(unicodeCurr);167 UChar otherCurr = jsc_pcre_ucp_othercase(unicodeCurr); 168 168 169 169 // If unicodeCurr is not yet hi, check the next char in the range. If it also has another case, 170 170 // and if it's other case value is one greater then the othercase value for the current last 171 171 // character included in the range, we can include next into the range. 172 while ((unicodeCurr < hi) && ( kjs_pcre_ucp_othercase(unicodeCurr + 1) == (otherCurr + 1))) {172 while ((unicodeCurr < hi) && (jsc_pcre_ucp_othercase(unicodeCurr + 1) == (otherCurr + 1))) { 173 173 // increment unicodeCurr; it points to the end of the range. 174 174 // increment otherCurr, due to the check above other for next must be 1 greater than the currrent other value. … … 215 215 addSorted(m_matchesUnicode, m_charBuffer); 216 216 if (m_isCaseInsensitive) { 217 int other = kjs_pcre_ucp_othercase(m_charBuffer);217 int other = jsc_pcre_ucp_othercase(m_charBuffer); 218 218 if (other != -1) 219 219 addSorted(m_matchesUnicode, other); -
trunk/JavaScriptCore/wtf/unicode/Unicode.h
r35900 r39554 1 1 /* 2 * This file is part of the KDE libraries3 2 * Copyright (C) 2006 George Staikos <[email protected]> 3 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. 4 4 * 5 5 * This library is free software; you can redistribute it and/or … … 20 20 */ 21 21 22 #ifndef KJS_UNICODE_H23 #define KJS_UNICODE_H22 #ifndef WTF_UNICODE_H 23 #define WTF_UNICODE_H 24 24 25 25 #include <wtf/Platform.h> … … 33 33 #endif 34 34 35 #endif 36 // vim: ts=2 sw=2 et 35 #endif // WTF_UNICODE_H -
trunk/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h
r37532 r39554 2 2 * Copyright (C) 2006 George Staikos <[email protected]> 3 3 * Copyright (C) 2006 Alexey Proskuryakov <[email protected]> 4 * Copyright (C) 200 7Apple Inc. All rights reserved.4 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 5 5 * 6 6 * This library is free software; you can redistribute it and/or … … 21 21 */ 22 22 23 #ifndef KJS_UNICODE_ICU_H24 #define KJS_UNICODE_ICU_H23 #ifndef WTF_UNICODE_ICU_H 24 #define WTF_UNICODE_ICU_H 25 25 26 26 #include <stdlib.h> … … 217 217 } } 218 218 219 #endif 219 #endif // WTF_UNICODE_ICU_H -
trunk/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h
r38594 r39554 2 2 * Copyright (C) 2006 George Staikos <[email protected]> 3 3 * Copyright (C) 2006 Alexey Proskuryakov <[email protected]> 4 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 5 * 5 6 * This library is free software; you can redistribute it and/or … … 20 21 */ 21 22 22 #ifndef KJS_UNICODE_QT4_H23 #define KJS_UNICODE_QT4_H23 #ifndef WTF_UNICODE_QT4_H 24 #define WTF_UNICODE_QT4_H 24 25 25 26 #include <QChar> … … 523 524 } } 524 525 525 #endif 526 #endif // WTF_UNICODE_QT4_H
Note:
See TracChangeset
for help on using the changeset viewer.