Changeset 72160 in webkit for trunk/JavaScriptCore/profiler/ProfileNode.h
- Timestamp:
- Nov 16, 2010, 7:03:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/profiler/ProfileNode.h
r65478 r72160 38 38 namespace JSC { 39 39 40 class ExecState; 40 41 class ProfileNode; 41 42 … … 45 46 class ProfileNode : public RefCounted<ProfileNode> { 46 47 public: 47 static PassRefPtr<ProfileNode> create( const CallIdentifier& callIdentifier, ProfileNode* headNode, ProfileNode* parentNode)48 static PassRefPtr<ProfileNode> create(ExecState* exec, const CallIdentifier& callIdentifier, ProfileNode* headNode, ProfileNode* parentNode) 48 49 { 49 return adoptRef(new ProfileNode( callIdentifier, headNode, parentNode));50 return adoptRef(new ProfileNode(exec, callIdentifier, headNode, parentNode)); 50 51 } 51 static PassRefPtr<ProfileNode> create( ProfileNode* headNode, ProfileNode* node)52 static PassRefPtr<ProfileNode> create(ExecState* exec, ProfileNode* headNode, ProfileNode* node) 52 53 { 53 return adoptRef(new ProfileNode( headNode, node));54 return adoptRef(new ProfileNode(exec, headNode, node)); 54 55 } 55 56 56 bool operator==(ProfileNode* node) { return m_ callIdentifier == node->callIdentifier(); }57 bool operator==(ProfileNode* node) { return m_exec == node->m_exec && m_callIdentifier == node->callIdentifier(); } 57 58 58 ProfileNode* willExecute( const CallIdentifier&);59 ProfileNode* willExecute(ExecState* exec, const CallIdentifier&); 59 60 ProfileNode* didExecute(); 60 61 … … 62 63 63 64 // CallIdentifier members 65 const ExecState* exec() const { return m_exec; } 64 66 const CallIdentifier& callIdentifier() const { return m_callIdentifier; } 65 67 const UString& functionName() const { return m_callIdentifier.m_name; } … … 129 131 130 132 private: 131 ProfileNode( const CallIdentifier&, ProfileNode* headNode, ProfileNode* parentNode);132 ProfileNode( ProfileNode* headNode, ProfileNode* nodeToCopy);133 ProfileNode(ExecState* exec, const CallIdentifier&, ProfileNode* headNode, ProfileNode* parentNode); 134 ProfileNode(ExecState* exec, ProfileNode* headNode, ProfileNode* nodeToCopy); 133 135 134 136 void startTimer(); … … 148 150 static inline bool functionNameAscendingComparator(const RefPtr<ProfileNode>& a, const RefPtr<ProfileNode>& b) { return a->functionName() < b->functionName(); } 149 151 152 ExecState* m_exec; 150 153 CallIdentifier m_callIdentifier; 151 154 ProfileNode* m_head;
Note:
See TracChangeset
for help on using the changeset viewer.