Changeset 173214 in webkit for trunk/Source/JavaScriptCore/bytecode/CallEdgeProfile.cpp
- Timestamp:
- Sep 3, 2014, 11:58:24 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CallEdgeProfile.cpp
r173069 r173214 136 136 m_numCallsToPrimary = list.last().count; 137 137 138 ASSERT(!!m_otherCallees == (list.size() >= 2));139 138 if (m_otherCallees) { 140 139 m_otherCallees->m_processed.clear(); 141 for (unsigned i = list.size() - 1; i--;) 142 m_otherCallees->m_processed.append(CallEdge(list[i].key, list[i].count)); 140 141 // We could have a situation where the GC clears the primary and then log processing 142 // reinstates it without ever doing an addSlow and subsequent mergeBack. In such a case 143 // the primary could duplicate an entry in otherCallees, which means that even though we 144 // had an otherCallees object, the list size is just 1. 145 if (list.size() >= 2) { 146 for (unsigned i = list.size() - 1; i--;) 147 m_otherCallees->m_processed.append(CallEdge(list[i].key, list[i].count)); 148 } 143 149 } 144 150
Note:
See TracChangeset
for help on using the changeset viewer.