Changeset 72160 in webkit for trunk/JavaScriptCore/profiler/ProfileNode.cpp
- Timestamp:
- Nov 16, 2010, 7:03:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/profiler/ProfileNode.cpp
r65305 r72160 57 57 } 58 58 59 ProfileNode::ProfileNode(const CallIdentifier& callIdentifier, ProfileNode* headNode, ProfileNode* parentNode) 60 : m_callIdentifier(callIdentifier) 59 ProfileNode::ProfileNode(ExecState* exec, const CallIdentifier& callIdentifier, ProfileNode* headNode, ProfileNode* parentNode) 60 : m_exec(exec) 61 , m_callIdentifier(callIdentifier) 61 62 , m_head(headNode) 62 63 , m_parent(parentNode) … … 73 74 } 74 75 75 ProfileNode::ProfileNode(ProfileNode* headNode, ProfileNode* nodeToCopy) 76 : m_callIdentifier(nodeToCopy->callIdentifier()) 76 ProfileNode::ProfileNode(ExecState* exec, ProfileNode* headNode, ProfileNode* nodeToCopy) 77 : m_exec(exec) 78 , m_callIdentifier(nodeToCopy->callIdentifier()) 77 79 , m_head(headNode) 78 80 , m_parent(nodeToCopy->parent()) … … 88 90 } 89 91 90 ProfileNode* ProfileNode::willExecute( const CallIdentifier& callIdentifier)92 ProfileNode* ProfileNode::willExecute(ExecState* exec, const CallIdentifier& callIdentifier) 91 93 { 92 94 for (StackIterator currentChild = m_children.begin(); currentChild != m_children.end(); ++currentChild) { … … 97 99 } 98 100 99 RefPtr<ProfileNode> newChild = ProfileNode::create( callIdentifier, m_head ? m_head : this, this); // If this ProfileNode has no head it is the head.101 RefPtr<ProfileNode> newChild = ProfileNode::create(exec, callIdentifier, m_head ? m_head : this, this); // If this ProfileNode has no head it is the head. 100 102 if (m_children.size()) 101 103 m_children.last()->setNextSibling(newChild.get());
Note:
See TracChangeset
for help on using the changeset viewer.