Skip to content
  • timothy@apple.com's avatar
    Use member function pointers for the Profile::forEach function. · aac666e7
    timothy@apple.com authored
            Eliminating a few static functions and simplified things a little.
    
            Reviewed by Alexey Proskuryakov.
    
            * JavaScriptCore.exp: Change the symbol for forEach.
            * profiler/Profile.cpp:
            (KJS::Profile::forEach): Use a member function pointer.
            * profiler/Profile.h:
            (KJS::Profile::sortTotalTimeDescending): Pass a function pointer.
            (KJS::Profile::sortTotalTimeAscending): Ditto.
            (KJS::Profile::sortSelfTimeDescending): Ditto.
            (KJS::Profile::sortSelfTimeAscending): Ditto.
            (KJS::Profile::sortCallsDescending): Ditto.
            * profiler/ProfileNode.h:
            (KJS::ProfileNode::sortTotalTimeDescending): No longer static.
            (KJS::ProfileNode::sortTotalTimeAscending): Ditto.
            (KJS::ProfileNode::sortSelfTimeDescending): Ditto.
            (KJS::ProfileNode::sortSelfTimeAscending): Ditto.
            (KJS::ProfileNode::sortCallsDescending): Ditto.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    aac666e7