Ignore:
Timestamp:
Jul 2, 2008, 5:05:26 PM (17 years ago)
Author:
[email protected]
Message:

2008-07-02 Kevin McCullough <[email protected]>

Reviewed by Darin.

-Small cleanup in preparation for implementing Bottom-up.

  • profiler/CallIdentifier.h: Rename debug function to make it clear of its output and intention to be debug only. (KJS::CallIdentifier::operator const char* ): Implement in terms of c_str. (KJS::CallIdentifier::c_str):
  • profiler/ProfileNode.cpp: Impelment findChild() which will be needed by the bottom-up implementation. (KJS::ProfileNode::findChild):
  • profiler/ProfileNode.h: Added comments to make the collections of functions more clear. (KJS::ProfileNode::operator==): (KJS::ProfileNode::c_str):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/profiler/ProfileNode.cpp

    r34778 r34962  
    101101    m_children.append(child.release());
    102102}
    103        
     103
     104ProfileNode* ProfileNode::findChild(ProfileNode* node) const
     105{
     106    for (size_t i = 0; i < m_children.size(); ++i) {
     107        if (*node == m_children[i].get())
     108            return m_children[i].get();
     109    }
     110
     111    return 0;
     112}
     113
    104114void ProfileNode::insertNode(PassRefPtr<ProfileNode> prpNode)
    105115{
Note: See TracChangeset for help on using the changeset viewer.