1. 16 Jan, 2003 4 commits
  2. 15 Jan, 2003 1 commit
    • darin's avatar
      Reviewed by Ken. · 13748990
      darin authored
      	- rolled in a change from the KJS folks
      
      	Fixes a bug where the date functions would not accept non-strings.
      	And provides a bit of a speedup.
      
              * kjs/date_object.h: Change parameter type for parseDate.
              * kjs/date_object.cpp:
              (DateObjectFuncImp::call): Always call toString, don't check the type.
              (KJS::parseDate): Take a UString parameter, not a String parameter.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      13748990
  3. 13 Jan, 2003 2 commits
    • darin's avatar
      * kjs/ustring.h: Fix spelling of occurrence. · b87b8515
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b87b8515
    • darin's avatar
      Reviewed by Maciej. · 60414e6b
      darin authored
      	- turned more recursion into iteration, and fixed some backwards stuff
      
              * kjs/grammar.y: Use the normal idiom for CaseClauses and FormalParameterList
      	rather than using append().
              * kjs/grammar.cpp: Regenerated.
      
              * kjs/nodes.h: Change ClauseListNode and ParameterNode to use the normal idiom,
      	and got rid of append methods. Also added friend declarations and calls to reverseList().
              * kjs/nodes.cpp:
              (StatListNode::ref): Iteration, not recursion.
              (StatListNode::deref): Iteration, not recursion.
              (StatListNode::execute): Iteration, not recursion.
              (StatListNode::processVarDecls): Iteration, not recursion.
              (CaseClauseNode::reverseList): Added.
              (ClauseListNode::ref): Iteration, not recursion.
              (ClauseListNode::deref): Iteration, not recursion.
              (ClauseListNode::processVarDecls): Iteration, not recursion.
              (CaseBlockNode::reverseLists): Added.
              (ParameterNode::ref): Iteration, not recursion.
              (ParameterNode::deref): Iteration, not recursion.
              (FuncDeclNode::reverseParameterList): Added.
              (FuncExprNode::reverseParameterList): Added.
              (SourceElementsNode::ref): Iteration, not recursion.
              (SourceElementsNode::deref): Iteration, not recursion.
              (SourceElementsNode::execute): Use variable name of n to match other functions.
              (SourceElementsNode::processFuncDecl): Ditto.
              (SourceElementsNode::processVarDecls): Ditto.
      
              * kjs/nodes2string.cpp:
              (SourceStream::operator<<): Used a switch statement for a bit of added clarity.
              (ElementNode::streamTo): Iteration, not recursion.
              (PropertyValueNode::streamTo): Iteration, not recursion.
              (ArgumentListNode::streamTo): Iteration, not recursion.
              (StatListNode::streamTo): Iteration, not recursion, and fixed order.
              (VarDeclListNode::streamTo): Iteration, not recursion.
              (ClauseListNode::streamTo): Used for statement to match other functions.
              (CaseBlockNode::streamTo): Used for statement to match other functions.
              (ParameterNode::streamTo): Iteration, not recursion.
              (SourceElementsNode::streamTo): Iteration, not recursion, and fixed order that has been
      	backwards since I changed how this works in nodes.cpp.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60414e6b
  4. 12 Jan, 2003 1 commit
    • darin's avatar
      Reviewed by John. · ffcf8970
      darin authored
      	- changes inspired by things I noticed reviewing diffs vs. KDE when preparing the tarball
      
              * kjs/function.cpp: (GlobalFuncImp::call): Use strtol when strtoll is
      	not available. Do #ifndef NDEBUG, not #if !NDEBUG.
              * kjs/function.h: Do #ifndef NDEBUG, not #if !NDEBUG.
              * kjs/internal.cpp:
              (InterpreterImp::initGlobalObject): Do #ifndef NDEBUG, not #if !NDEBUG.
              (KJS::printInfo): Remove case for ListType and remove default case that just
      	ends up suppressing the "missing case" warning and does no good.
              * kjs/interpreter.cpp: (Interpreter::evaluate): Do #ifndef NDEBUG, not #if !NDEBUG.
              * kjs/nodes.cpp:
              (Node::finalCheck): Fix accidentally-deleted code in an ifdef we never compile.
              (FunctionCallNode::evaluate): Remove bogus XXX comment. Maciej put this comment in,
              and together we determined it's not needed.
              (TypeOfNode::evaluate): Ditto.
              * kjs/object.cpp: Remove assert that refers to ListType.
              * kjs/value.h: Remove ListType.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ffcf8970
  5. 10 Jan, 2003 1 commit
    • darin's avatar
      JavaScriptCore: · 33188225
      darin authored
              * JavaScriptCore.pbproj/project.pbxproj: Add the year 2003, remove CFBundleIconFile,
      	bump marketing version to 0.8.1 and version to 52u to keep up with the branch,
      	remove CFHumanReadableCopyright, remove NSPrincipalClass.
      
              * English.lproj/InfoPlist.strings: Updated to match above changes.
      
      WebFoundation:
      
              * WebFoundation.pbproj/project.pbxproj: Add the year 2003, remove CFBundleIconFile,
      	bump marketing version to 0.8.1 and version to 52u to keep up with the branch,
      	remove NSHumanReadableCopyright, remove NSPrincipalClass.
      
              * English.lproj/InfoPlist.strings: Update to match above.
      
      WebCore:
      
              * WebCore.pbproj/project.pbxproj: Add the year 2003, remove CFBundleIconFile,
      	bump marketing version to 0.8.1 and version to 52u to keep up with the branch,
      	remove NSHumanReadableCopyright, remove NSPrincipalClass, remove SKIP_INSTALL
      	that was in the Info plist instead of project settings.
      
              * English.lproj/InfoPlist.strings: Update to match above.
      
      WebKit:
      
              * WebKit.pbproj/project.pbxproj: Add the year 2003, remove CFBundleIconFile,
      	bump marketing version to 0.8.1 and version to 52u to keep up with the branch,
      	remove CFHumanReadableCopyright, remove NSPrincipalClass.
      
              * English.lproj/InfoPlist.strings: Updated to match above changes.
      
      WebBrowser:
      
              * WebBrowser.pbproj/project.pbxproj: Add 2003 to copyright, bump versions
      	to 0.8.1 and 52u to keep up with the branch.
      
              * English.lproj/InfoPlist.strings: Update to match above.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33188225
  6. 09 Jan, 2003 1 commit
  7. 08 Jan, 2003 2 commits
  8. 05 Jan, 2003 5 commits
  9. 03 Jan, 2003 1 commit
  10. 02 Jan, 2003 2 commits
  11. 31 Dec, 2002 2 commits
  12. 30 Dec, 2002 1 commit
    • darin's avatar
      Reviewed by Don and Maciej. · 8e8091f7
      darin authored
      	- follow-on to my fix for 3134693 that fixes one more case of recursion and simplifies further
      
              * kjs/grammar.y: Remove SourceElementNode and just use a StatementNode instead.
      	Reverse SourceElements rule so the recursive rule comes first as in the original
      	KJS code (avoids actual parser recursion).
      
              * kjs/grammar.cpp: Regenerated.
              * kjs/grammar.cpp.h: Regenerated.
              * kjs/grammar.h: Regenerated.
      
              * kjs/nodes.h: Make processFuncDecl a virtual function in StatementNode so that we can
      	use a StatementNode instead of a SourceElementNode. Add a call to reverseList in BlockNode
      	to correct the order of the linked list in SourceElementsNode, to replace the technique
      	where we reversed it in the parser. Remove SourceElementNode class, and make the element in
      	SourceElementsNode be a StatementNode instead.
              * kjs/nodes.cpp: Remove SourceElementNode code.
              (StatementNode::processFuncDecl): Added empty function.
              (BlockNode::reverseList): Added. Used to make the SourceElements list ordered correctly.
              * kjs/nodes2string.cpp: Remove SourceElementNode code.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e8091f7
  13. 28 Dec, 2002 4 commits
    • kocienda's avatar
      Setting version to 47u · 42f65866
      kocienda authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      42f65866
    • kocienda's avatar
      Safari-46 build · fccdb286
      kocienda authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3197 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fccdb286
    • kocienda's avatar
      Corrected checkin date that I cut and pasted incorrectly. · c2318740
      kocienda authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3194 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2318740
    • kocienda's avatar
      Reviewed by Gramps and Ken. · 69335a5d
      kocienda authored
      	Checked in by Ken.
      
      	- fixed 3134693 -- carsdirect.com crash on used car search, due to large JavaScript array
      
      	The parser was using recursion to handle many types of lists.
      	This meant that we crashed out of stack space when any of the lists were extra big.
      	I applied the same sort of fix we had already applied a while back for argument lists for
      	all the other types of lists, including the list of ElementNode that was the reason for
      	the crash reported here.
      
              * kjs/grammar.y: Removed ElisionNode altogether and just use a count.
      	Use specific node types for PropertyNameAndValueList and PropertyName.
      
              * kjs/grammar.cpp: Regenerated.
              * kjs/grammar.cpp.h: Regenerated.
              * kjs/grammar.h: Regenerated.
      
              * kjs/nodes.h: Elide "ElisionNode", changing objects to keep elision counts instead.
      	Make the ObjectLiteralNode list field be PropertyValueNode, not just Node.
      	Make PropertyValueNode fields have specific types. Add new reverse list functions, calls
      	to those functions in the constructors, and friend declarations as needed so the class
      	that holds the head of a list can reverse the list during parsing.
              * kjs/nodes.cpp:
              (ElementNode::ref): Use iteration instead of recursion. Also elide "elision".
              (ElementNode::deref): Ditto.
              (ElementNode::evaluate): Use iteration instead of recursion, taking advantage of
      	the fact that the linked list is reversed. Also use the elision count rather than
      	an elision list.
              (ArrayNode::reverseElementList): Reverse the list so we can iterate normally.
              (ArrayNode::ref): Elide "elision".
              (ArrayNode::deref): Ditto.
              (ArrayNode::evaluate): Use elision count instead of elision list.
              (ObjectLiteralNode::reverseList): Reverse the list so we can iterate normally.
              (PropertyValueNode::ref): Use iteration instead of recursion.
              (PropertyValueNode::deref): Use iteration instead of recursion.
              (PropertyValueNode::evaluate): Use iteration instead of recursion, taking advantage
      	of the fact that the linked list is reversed.
              (ArgumentListNode::ref): Change code to match the other similar cases we had to revise.
              (ArgumentListNode::deref): Ditto.
              (ArgumentListNode::evaluateList): Ditto.
              (ArgumentsNode::reverseList): Ditto.
              (VarDeclListNode::ref): Use iteration instead of recursion.
              (VarDeclListNode::deref): Ditto.
              (VarDeclListNode::evaluate): Use iteration instead of recursion, taking advantage
      	of the fact that the linked list is reversed.
              (VarDeclListNode::processVarDecls): Ditto.
              (VarStatementNode::reverseList): Reverse the list so we can iterate normally.
              (FunctionBodyNode::FunctionBodyNode): Use BlockNode as the base class, removing
      	most of the FunctionBodyNode class.
      
              * kjs/nodes2string.cpp:
              (ElementNode::streamTo): Update for using a count for elision, and reverse linking.
              (ArrayNode::streamTo): Update for using a count for elision.
              (PropertyValueNode::streamTo): Update for reverse linking.
              (ArgumentListNode::streamTo): Update for reverse linking. This has been wrong for
      	a while, since we added the reverse a long time ago.
              (VarDeclListNode::streamTo): Update for reverse linking.
              (ParameterNode::streamTo): Update for reverse linking.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69335a5d
  14. 23 Dec, 2002 3 commits
    • kocienda's avatar
      Alexander 46u commit · 8724c85b
      kocienda authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8724c85b
    • kocienda's avatar
      Building Alex-45 · a193bff1
      kocienda authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3180 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a193bff1
    • darin's avatar
      Reviewed by Don and John. · 92285d33
      darin authored
      	- fixed 3134449 -- Date.UTC returns NaN (invalid date)
      
      	Did more testing of the date functions and made them behave like the other browsers.
      	There were three problems:
      
                  1) We did a validity check that other browsers don't do (hence the NaN).
                  2) We treated passed-in dates as local time even in Date.UTC (hence a wrong result
                     once I fixed the NaN).
                  3) The results of ToUTCString (and ToGMTString) weren't formatted quite the same
      	       as other browsers.
      
      	Also found a couple of silly but unrelated coding mistakes.
      
              * kjs/date_object.cpp:
              (timetUsingCF): Added. Has the guts of mktimeUsingCF, but without the CFGregorianDateIsValid
              check. Other browsers accept invalid dates. Also takes a time zone parameter.
              (mktimeUsingCF): Calls timetUsingCF with the current time zone.
              (timegmUsingCF): Calls timetUsingCF with the UTC time zone.
              (formatDate): Remove the includeComma flag.
              (formatDateUTCVariant): Added. For use instead of formatDate with the includeComma flag.
      	Puts the day before the month name.
              (DateProtoFuncImp::call): Use the new formatDateUTCVariant for ToGMTString and ToUTCString.
      	Without this change the date didn't match other browsers.
              (DateObjectImp::DateObjectImp): Use UTCPropertyName. Somehow I declared this and didn't use
      	it before.
              (DateObjectImp::construct): Pass -1 for is_dst literally instead of using invalidDate.
      	Changing this to invalidDate was just a mistake (although no real difference in compiled
      	code since invalidDate is just -1).
              (DateObjectFuncImp::call): Call timegm for the UTC case instead of mktime.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      92285d33
  15. 20 Dec, 2002 4 commits
    • sheridan's avatar
      alex-44 · 650f7017
      sheridan authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3170 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      650f7017
    • sheridan's avatar
      version 44u · c2069e55
      sheridan authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3158 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2069e55
    • sheridan's avatar
      alexander-43 · b0b73243
      sheridan authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3156 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b0b73243
    • trey's avatar
      JavaScriptCore: · 2bacd046
      trey authored
      	We now build with symbols the B&I.  Deployment builds are without symbols,
      	so it is easy to generate a non-huge app as a one-off.
      
              Reviewed by Darin
      
              * JavaScriptCore.pbproj/project.pbxproj:
      
      WebFoundation:
      
      	We now build with symbols the B&I.  Deployment builds are without symbols,
      	so it is easy to generate a non-huge app as a one-off.
      
              Reviewed by Darin
      
              * WebFoundation.pbproj/project.pbxproj:
      
      WebCore:
      
      	We now build with symbols the B&I.  Deployment builds are without symbols,
      	so it is easy to generate a non-huge app as a one-off.
      
              Reviewed by Darin
      
              * WebCore.pbproj/project.pbxproj:
      
      WebKit:
      
      	We now build with symbols the B&I.  Deployment builds are without symbols,
      	so it is easy to generate a non-huge app as a one-off.
      
              Reviewed by Darin
      
              * WebKit.pbproj/project.pbxproj:
      
      WebBrowser:
      
      	We now build with symbols the B&I.  Deployment builds are without symbols,
      	so it is easy to generate a non-huge app as a one-off.
      
              Reviewed by Darin
      
              * WebBrowser.pbproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2bacd046
  16. 19 Dec, 2002 3 commits
  17. 18 Dec, 2002 2 commits
    • sheridan's avatar
      Alexander-40 stamp · a5f80239
      sheridan authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3129 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5f80239
    • mjs's avatar
      Tools: · cc196b5c
      mjs authored
      	Reviewed by John.
      
      	- fixed 3131171 - Change Alex versions to satisfy both marketing and B&I requirements
      
              * Scripts/set-alex-version: New the script takes 3 different
      	versions, source version, marketing version and internal version.
      
      JavaScriptCore:
      
      	Reviewed by John.
      
      	- fixed 3131171 - Change Alex versions to satisfy both marketing and B&I requirements
      
              * English.lproj/InfoPlist.strings:
              * JavaScriptCore.pbproj/project.pbxproj:
      
      WebFoundation:
      
      	Reviewed by John.
      
      	- fixed 3131171 - Change Alex versions to satisfy both marketing and B&I requirements
      
              * English.lproj/InfoPlist.strings:
              * WebFoundation.pbproj/project.pbxproj:
      
      WebCore:
      
      	Reviewed by John.
      
      	- fixed 3131171 - Change Alex versions to satisfy both marketing and B&I requirements
      
              * English.lproj/InfoPlist.strings:
      
      WebKit:
      
      	Reviewed by John.
      
      	- fixed 3131171 - Change Alex versions to satisfy both marketing and B&I requirements
      
              * English.lproj/InfoPlist.strings:
      
      WebBrowser:
      
      	Reviewed by John.
      
      	- fixed 3131171 - Change Alex versions to satisfy both marketing and B&I requirements
      
              * English.lproj/InfoPlist.strings:
              * WebBrowser.pbproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3126 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cc196b5c
  18. 17 Dec, 2002 1 commit
    • darin's avatar
      JavaScriptCore: · 7894002d
      darin authored
              Reviewed by Trey.
      
              * JavaScriptCore.pbproj/project.pbxproj: Removed signature.
      
      WebFoundation:
      
              Reviewed by Trey.
      
              * WebFoundation.pbproj/project.pbxproj: Remove signature.
      
      WebCore:
      
              Reviewed by Trey.
      
              * WebCore.pbproj/project.pbxproj: Remove signature.
              * kwq/KWQColor.mm: Turn off inlining so we can build even on the
      	compiler that warns about static data in inline functions.
      
      WebKit:
      
              Reviewed by Trey.
      
              * WebKit.pbproj/project.pbxproj: Remove signature.
              * WebView.subproj/WebController.m: Turn off inlining so we can build even on the
      	compiler that warns about static data in inline functions.
      
      WebBrowser:
      
              Reviewed by Trey.
      
              * Scripting.subproj/Safari.scriptSuite: Change signature to sfri.
              * WebBrowser.pbproj/project.pbxproj: Change signature to sfri.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7894002d