Changeset 174899 in webkit


Ignore:
Timestamp:
Oct 20, 2014 12:13:32 PM (10 years ago)
Author:
mark.lam@apple.com
Message:

[Follow up] Web Process crash when starting the web inspector after r174025.
<https://webkit.org/b/137340>

Reviewed by Geoffrey Garen.

Applied Geoff's feedback to clean up some code for better clarity after
r174856.

  • dfg/DFGFixupPhase.cpp:

(JSC::DFG::FixupPhase::insertCheck):

  • dfg/DFGInsertionSet.h:

(JSC::DFG::InsertionSet::insertOutOfOrder):

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r174897 r174899  
     12014-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
    1162014-10-20  Mark Lam  <mark.lam@apple.com>
    217
  • trunk/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp

    r174856 r174899  
    17431743            // The checked node is within the same bytecode. Hence, the earliest
    17441744            // 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;
    17471746        } else {
    17481747            // The checked node is from a preceding bytecode. Hence, the earliest
  • trunk/Source/JavaScriptCore/dfg/DFGInsertionSet.h

    r174856 r174899  
    121121        size_t targetIndex = insertion.index();
    122122        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            }
    131129        }
    132130        m_insertions.insert(entry, insertion);
Note: See TracChangeset for help on using the changeset viewer.