Ignore:
Timestamp:
Aug 28, 2015, 7:04:36 PM (10 years ago)
Author:
[email protected]
Message:

[JSC] Get rid of DFG's MergeMode
https://bugs.webkit.org/show_bug.cgi?id=148245

Patch by Benjamin Poulain <[email protected]> on 2015-08-28
Reviewed by Mark Lam.

That code has become useless, the merge mode is always MergeToSuccessors.

(JSC::DFG::CFAPhase::performBlockCFA):

  • dfg/DFGInPlaceAbstractState.cpp:

(JSC::DFG::InPlaceAbstractState::endBasicBlock):

  • dfg/DFGInPlaceAbstractState.h:
  • dfg/DFGMergeMode.h: Removed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGInPlaceAbstractState.h

    r187587 r189138  
    3232#include "DFGBranchDirection.h"
    3333#include "DFGGraph.h"
    34 #include "DFGMergeMode.h"
    3534#include "DFGNode.h"
    3635
     
    7776    // MergeToSuccessors is passed, then this merges everything we have
    7877    // learned about how the state changes during this block's execution into
    79     // the block's data structures. There are three return modes, depending
    80     // on the value of mergeMode:
     78    // the block's data structures.
    8179    //
    82     // DontMerge:
    83     //    Always returns false.
    84     //
    85     // MergeToTail:
    86     //    Returns true if the state of the block at the tail was changed.
    87     //    This means that you must call mergeToSuccessors(), and if that
    88     //    returns true, then you must revisit (at least) the successor
    89     //    blocks. False will always be returned if the block is terminal
    90     //    (i.e. ends in Throw or Return, or has a ForceOSRExit inside it).
    91     //
    92     // MergeToSuccessors:
    93     //    Returns true if the state of the block at the tail was changed,
    94     //    and, if the state at the heads of successors was changed.
    95     //    A true return means that you must revisit (at least) the successor
    96     //    blocks. This also sets cfaShouldRevisit to true for basic blocks
    97     //    that must be visited next.
    98     bool endBasicBlock(MergeMode);
     80    // Returns true if the state of the block at the tail was changed,
     81    // and, if the state at the heads of successors was changed.
     82    // A true return means that you must revisit (at least) the successor
     83    // blocks. This also sets cfaShouldRevisit to true for basic blocks
     84    // that must be visited next.
     85    bool endBasicBlock();
    9986   
    10087    // Reset the AbstractState. This throws away any results, and at this point
Note: See TracChangeset for help on using the changeset viewer.