Ignore:
Timestamp:
Nov 3, 2016, 9:38:58 PM (9 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r208364.
https://bugs.webkit.org/show_bug.cgi?id=164402

broke the build (Requested by smfr on #webkit).

Reverted changeset:

"DFG plays fast and loose with the shadow values of a Phi"
https://bugs.webkit.org/show_bug.cgi?id=164309
http://trac.webkit.org/changeset/208364

File:
1 edited

Legend:

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

    r208364 r208367  
    25612561};
    25622562
    2563 struct NodeComparator {
    2564     template<typename NodePtrType>
    2565     bool operator()(NodePtrType a, NodePtrType b) const
    2566     {
    2567         return a->index() < b->index();
    2568     }
    2569 };
     2563inline bool nodeComparator(Node* a, Node* b)
     2564{
     2565    return a->index() < b->index();
     2566}
    25702567
    25712568template<typename T>
    25722569CString nodeListDump(const T& nodeList)
    25732570{
    2574     return sortedListDump(nodeList, NodeComparator());
     2571    return sortedListDump(nodeList, nodeComparator);
    25752572}
    25762573
     
    25832580        iter != nodeMap.end(); ++iter)
    25842581        keys.append(iter->key);
    2585     std::sort(keys.begin(), keys.end(), NodeComparator());
     2582    std::sort(keys.begin(), keys.end(), nodeComparator);
    25862583    StringPrintStream out;
    25872584    CommaPrinter comma;
     
    25972594    T sortedList = nodeValuePairList;
    25982595    std::sort(sortedList.begin(), sortedList.end(), [](const V& a, const V& b) {
    2599         return NodeComparator()(a.node, b.node);
     2596        return nodeComparator(a.node, b.node);
    26002597    });
    26012598
Note: See TracChangeset for help on using the changeset viewer.