Changeset 33388 in webkit for trunk/JavaScriptCore/profiler/FunctionCallProfile.cpp
- Timestamp:
- May 13, 2008, 2:18:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/profiler/FunctionCallProfile.cpp
r33382 r33388 66 66 } 67 67 68 void FunctionCallProfile::addChild( RefPtr<FunctionCallProfile>& child)68 void FunctionCallProfile::addChild(PassRefPtr<FunctionCallProfile> prpChild) 69 69 { 70 if (!child) 71 return; 70 ASSERT(prpChild); 72 71 72 RefPtr<FunctionCallProfile> child = prpChild; 73 73 for (StackIterator currentChild = m_children.begin(); currentChild != m_children.end(); ++currentChild) { 74 74 if ((*currentChild)->functionName() == child->functionName()) … … 76 76 } 77 77 78 m_children.append(child );78 m_children.append(child.release()); 79 79 } 80 80
Note:
See TracChangeset
for help on using the changeset viewer.