Changeset 34092 in webkit for trunk/JavaScriptCore/profiler/Profile.cpp
- Timestamp:
- May 23, 2008, 4:07:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/profiler/Profile.cpp
r34090 r34092 36 36 namespace KJS { 37 37 38 const unsigned DEPTH_LIMIT = 1000; 39 38 40 Profile::Profile(const UString& title, ExecState* originatingGlobalExec, unsigned pageGroupIdentifier) 39 41 : m_title(title) 40 42 , m_originatingGlobalExec(originatingGlobalExec) 41 43 , m_pageGroupIdentifier(pageGroupIdentifier) 44 , m_depth(0) 42 45 { 43 46 // FIXME: When multi-threading is supported this will be a vector and calls … … 52 55 m_originatingGlobalExec = 0; 53 56 m_headNode->stopProfiling(); 57 m_depth = 0; 54 58 } 55 59 56 60 void Profile::willExecute(const CallIdentifier& callIdentifier) 57 61 { 62 if (++m_depth >= DEPTH_LIMIT) 63 return; 64 58 65 ASSERT(m_currentNode); 59 66 m_currentNode = m_currentNode->willExecute(callIdentifier); … … 77 84 78 85 m_currentNode = m_currentNode->didExecute(); 86 --m_depth; 79 87 } 80 88
Note:
See TracChangeset
for help on using the changeset viewer.