Reviewed by Darin, with help from Eric, Maciej.
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Feb 2006 07:43:10 +0000 (07:43 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Feb 2006 07:43:10 +0000 (07:43 +0000)
commitb09c80e98d2a1250f81fb9b709b1600b18b25c2b
tree55b5c1b36fcc40a0d1d0d5fe50fd55d7727088dd
parent4ff6a97be116690760b61fb8fb62d30eb3181e1b
    Reviewed by Darin, with help from Eric, Maciej.

        - More changes to support super-accurate JS iBench. Doesn't work on
        Windows. (Doesn't break Windows, either.) I've filed [http://bugzilla.
        opendarwin.org/show_bug.cgi?id= 7399] about that.

        * kjs/interpreter.cpp:
        (KJS::Interpreter::evaluate): Print line numbers with exception output
        * kjs/testkjs.cpp: Changed " *" to "* " because Eric says that's the
        way we roll with .cpp files.
        (StopWatch::StopWatch): New class. Provides microsecond-accurate
        timings.
        (StopWatch::~StopWatch):
        (StopWatch::start):
        (StopWatch::stop):
        (StopWatch::getElapsedMS):
        (TestFunctionImp::callAsFunction): Added missing return statement.
        Fixed up "run" to use refactored helper functions. Removed bogus
        return statement from "quit" case. Made "print" output to stdout
        instead of stderr because that makes more sense, and PERL handles
        stdout better.
        (main): Factored out KXMLCore unit tests. Removed custom exception
        printing code because the interpreter prints exceptions for you. Added
        a "delete" call for the GlobalImp we allocate.
        (testIsInteger): New function, result of refacotring.
        (createStringWithContentsOfFile): New function, result of refactoring.
        Renamed "code" to "buffer" to match factored-out-ness.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/interpreter.cpp
JavaScriptCore/kjs/testkjs.cpp