Changeset 144026 in webkit for trunk/Source/JavaScriptCore/profiler/LegacyProfiler.cpp
- Timestamp:
- Feb 26, 2013, 1:47:57 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/profiler/LegacyProfiler.cpp
r139541 r144026 64 64 ASSERT_ARG(title, !title.isNull()); 65 65 66 if (!exec) 67 return; 68 66 69 // Check if we currently have a Profile for this global ExecState and title. 67 70 // If so return early and don't create a new Profile. 68 JSGlobalObject* origin = exec ? exec->lexicalGlobalObject() : 0;71 JSGlobalObject* origin = exec->lexicalGlobalObject(); 69 72 70 73 for (size_t i = 0; i < m_currentProfiles.size(); ++i) { … … 81 84 PassRefPtr<Profile> LegacyProfiler::stopProfiling(ExecState* exec, const String& title) 82 85 { 83 JSGlobalObject* origin = exec ? exec->lexicalGlobalObject() : 0; 86 if (!exec) 87 return 0; 88 89 JSGlobalObject* origin = exec->lexicalGlobalObject(); 84 90 for (ptrdiff_t i = m_currentProfiles.size() - 1; i >= 0; --i) { 85 91 ProfileGenerator* profileGenerator = m_currentProfiles[i].get();
Note:
See TracChangeset
for help on using the changeset viewer.