Changeset 174899 in webkit
- Timestamp:
- Oct 20, 2014 12:13:32 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r174897 r174899 1 2014-10-20 Mark Lam <mark.lam@apple.com> 2 3 [Follow up] Web Process crash when starting the web inspector after r174025. 4 <https://webkit.org/b/137340> 5 6 Reviewed by Geoffrey Garen. 7 8 Applied Geoff's feedback to clean up some code for better clarity after 9 r174856. 10 11 * dfg/DFGFixupPhase.cpp: 12 (JSC::DFG::FixupPhase::insertCheck): 13 * dfg/DFGInsertionSet.h: 14 (JSC::DFG::InsertionSet::insertOutOfOrder): 15 1 16 2014-10-20 Mark Lam <mark.lam@apple.com> 2 17 -
trunk/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp
r174856 r174899 1743 1743 // The checked node is within the same bytecode. Hence, the earliest 1744 1744 // position we can insert the check is right after the checked node. 1745 indexInBlock = indexOfNode(node, indexInBlock); 1746 indexInBlock++; 1745 indexInBlock = indexOfNode(node, indexInBlock) + 1; 1747 1746 } else { 1748 1747 // The checked node is from a preceding bytecode. Hence, the earliest -
trunk/Source/JavaScriptCore/dfg/DFGInsertionSet.h
r174856 r174899 121 121 size_t targetIndex = insertion.index(); 122 122 size_t entry = m_insertions.size(); 123 if (entry) { 124 do { 125 entry--; 126 if (m_insertions[entry].index() <= targetIndex) { 127 entry++; 128 break; 129 } 130 } while (entry); 123 while (entry) { 124 entry--; 125 if (m_insertions[entry].index() <= targetIndex) { 126 entry++; 127 break; 128 } 131 129 } 132 130 m_insertions.insert(entry, insertion);
Note: See TracChangeset
for help on using the changeset viewer.